Hi all,
I'm pretty frustrated, I do not know if i can describe my problem properly, but I will try to.
I wanted to use DataStore as instance variable on my window.
If I tried that and run application from PB everything woked smoothly.
But as soon as I tried deploy and run exe my app did not work.
Whne I inserted line into datastore I got -1 back.
my_datastore.insertrow(0) returned -1.
Nothing helped, I tried to reset datastore before insertrow, still nothing. It only worked properly when it was executed from PB.
I tried to use invisible DataWindow istead of DataStore and it wokrs. (From PB and from exe).
There are no childdw, nothing fancy only grid dw with SQL as datasource.
Is there somethin what I could miss, or is DataStore unusable?
Best Regards.
Ales
PS. Using latest PB 21 IDE and Runtime.
I think, that DataStore should work as DataWindow control, so you do not have to reference DataWindow in PBR file. I hope that make sense, because how it works now is not too much intuitive.
A.
The reason datawindow objects referenced by a datawindow control are included but datastores are not is that the DWC reference is a property and a DS is usually assigned in script. If you create a datastore object and assign the datawindow object to that, it should be included.
Should be included:: Yes!
Will be included: No. :-(