DevExpress Greed Cell value is empty.

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
KapacRus
Posts: 30
Joined: Wed Apr 04, 2012 8:51 am
Location: Russia, Samara

DevExpress Greed Cell value is empty.

Post by KapacRus » Mon May 14, 2012 1:30 pm

Hi!
I have a little problem with getting a cell value in the Greed control.
Image
As you can see from the screenshot the cell normally recognized, but its AccessibleValue is empty.
I attach a sempleapp fo you.
DXWindowsApplication1.zip
Ranorex 3.2.3
DevExpress 2011 vol2
You do not have the required permissions to view the files attached to this post.

KapacRus
Posts: 30
Joined: Wed Apr 04, 2012 8:51 am
Location: Russia, Samara

Re: DevExpress Greed Cell value is empty.

Post by KapacRus » Wed May 16, 2012 4:51 am

up.
I would like to hear some sort of answer, because this functionality is very important to me.

sham526
Posts: 34
Joined: Wed Jul 07, 2010 7:12 am
Location: Hyderabad(INDIA)

Re: DevExpress Greed Cell value is empty.

Post by sham526 » Wed May 16, 2012 10:03 am

Expand the Cell and you might get some text field which holds the value.

KapacRus
Posts: 30
Joined: Wed Apr 04, 2012 8:51 am
Location: Russia, Samara

Re: DevExpress Greed Cell value is empty.

Post by KapacRus » Wed May 16, 2012 10:13 am

sham526 wrote:sham526
The cell does not contain within itself text fields.
Image

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: DevExpress Greed Cell value is empty.

Post by Support Team » Wed May 16, 2012 3:50 pm

Hi,

Thank you for the application, but this app is not running because there are some missing dlls. Would it be possible to prepare us an application to help with this issue or at least please post us a Ranorex Snapshot of the app.

How to create a Snapshot

http://www.ranorex.com/forum/invokeremo ... t1002.html

Thanks in advance.

Regards,
Peter
Ranorex Team

KapacRus
Posts: 30
Joined: Wed Apr 04, 2012 8:51 am
Location: Russia, Samara

Re: DevExpress Greed Cell value is empty.

Post by KapacRus » Thu May 17, 2012 6:43 am

Sorry for this problem with dll. Here is a link to the working app.
http://dl.dropbox.com/u/13579347/Debug.zip

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: DevExpress Greed Cell value is empty.

Post by Support Team » Fri May 18, 2012 3:45 pm

Hi,

Thanks for the link!
I checked it and it seems that the values were somehow not properly set. I also checked it with the ACC Explorer (Microsoft accessibility Explorer) and it also wasn't able to recognize the row values, but I was able to get the value after I entered a new value to a row, so it seems that the values were somehow not correctly set at the beginning.

Regards,
Markus
Ranorex Support Team

KapacRus
Posts: 30
Joined: Wed Apr 04, 2012 8:51 am
Location: Russia, Samara

Re: DevExpress Greed Cell value is empty.

Post by KapacRus » Mon May 21, 2012 7:09 am

The value is set correctly. We use the assignment of property DiplayText processing events CustomDrawCell. Here is a link to the full project with source code.
http://dl.dropbox.com/u/13579347/DXWind ... ation1.zip

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: DevExpress Greed Cell value is empty.

Post by Support Team » Mon May 21, 2012 3:26 pm

Hi,

Thanks for the files!
We will analyze them and come back to you as soon as we have found something.

Regards,
Markus
Ranorex Support Team

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: DevExpress Greed Cell value is empty.

Post by Support Team » Tue May 22, 2012 10:10 am

Hi,

I checked your project and as I wrote the values were not properly set, you just set the the DisplayText but you didn't set the real text value of the cells they were empty and these values are the values which we are getting via MSAA.
var lst = new List<MyData>();
            lst.Add(new MyData { Field1 = "", Field2 = "", Field3 = "" });
            lst.Add(new MyData { Field1 = "", Field2 = "", Field3 = "" });
            lst.Add(new MyData { Field1 = "", Field2 = "", Field3 = "" });
            myDataBindingSource.DataSource = lst;
If you set them to a value you will see it with Spy.

Regards,
Markus
Ranorex Support Team

tonn
Posts: 1
Joined: Tue May 22, 2012 11:53 am

Re: DevExpress Greed Cell value is empty.

Post by tonn » Tue May 22, 2012 12:04 pm

Hi,

I work with KapacRus. There is situation in our project where we can't set all values for grid on initialization because it takes to much time, and we use CustomDrawCell (or CustomDrawNodeCell withTreeList) for yeld initialization. There isn't way to set "real text value" from handler of CustomDrawCell event.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: DevExpress Greed Cell value is empty.

Post by Support Team » Wed May 23, 2012 5:20 pm

Hi,

There are two possibilities how you can get the values.
First: You have to re-implement MSAA for the specific element to enable Ranorex to get the specific value via the MSAA element, for detailed information take a look at the following link.
Second: You can use the InvokeRemotely functionality to get the values of your table. There is an older blog which describes how you can manage this with Ranorex.
There are also many forum posts about how to invoke WinForm methods.

I hope this will help you solve the issue.

Regards,
Markus
Ranorex Support Team

KapacRus
Posts: 30
Joined: Wed Apr 04, 2012 8:51 am
Location: Russia, Samara

Re: DevExpress Greed Cell value is empty.

Post by KapacRus » Mon May 28, 2012 8:55 am

And if there are step by step examples or better examples of the project with a call invokeRemotely? From http://www.ranorex.com/blog/transfering ... et-control not very clear how it all works.

KapacRus
Posts: 30
Joined: Wed Apr 04, 2012 8:51 am
Location: Russia, Samara

Re: DevExpress Greed Cell value is empty.

Post by KapacRus » Mon May 28, 2012 12:32 pm

Now I get an error serializing:

Code: Select all

Ranorex.ActionFailedException: Action 'invokeremotely' failed on element '{Unknown:_treeList}'. ---> System.Runtime.Serialization.SerializationException: Failed to serialize return data from remote process.

Code: Select all

 public void ColapseAllNode(string number, string entery)
 {
    string processId = Helpers.MultiUsers.GetProcessIdByNumber(number, entery);   
    Ranorex.Adapter.DefaultSearchTimeout = 1200000;
    Ranorex.Control control = FormMethods.TreeContainerGetXpath(processId).Replace("$processid", "'" + processId+ "'");
    control.InvokeRemotely(Helpers.Testing.ColapseAll);
}

Code: Select all

public static object ColapseAll(System.Windows.Forms.Control control, object input)
{
  (control as DevExpress.XtraTreeList.TreeList).CollapseAll();
   return null;  
}

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: DevExpress Greed Cell value is empty.

Post by Support Team » Wed May 30, 2012 10:22 am

Hello,

unfortunately we are not able to reproduce that issue. You could assist us with providing us a sample project including the (DX) treelist and also a sample Ranorex Project with the invoke-remotely code!

Thank you!

Kind regards,
Roland (E)
Ranorex Support Team