Re: Going crazy with dgText

2010-11-15 Thread Bob Sneidar
Ok so is the stack with the datagrid the mainstack of the standalone? Wouldn't 
the fact that you cannot modify a standalone interfere with DataGrid operations 
in this configuration? If this is the case, then you need to have the mainstack 
be a dummy stack (some use it for a splash screen) which then calls the actual 
stack which is attached as a data file to your main stack in your standalone 
settings. This is a common issue when creating standalones. 

Just another shot in the dark. 

Bob


On Nov 14, 2010, at 12:53 PM, Éric Miclo wrote:

 Hello,
 
 I've a little script that populates a dataGrid with a tab delimited text 
 (titles are located in the first line).
 In the IDE everything works fine but once the application is built the 
 dataGrid is always empty.
 I've tried everything I could think of but didn't get it.
 
 Here is the script (located in the preOpenStack handler of a one card stack):
 
  if the cParamétrageDesItems of this stack is not empty then
set the dgData of group Paramétrage items to empty
dispatch ResetList to group Paramétrage items
put the cParamétrageDesItems of this stack into itemListWithTitle
set the dgText [true] of group Paramétrage items to itemListWithTitle
dispatch ResetList to group Paramétrage items
set the cParamétrageDesItems of this stack to empty
  end if
 
 If someone has an idea why it doesn't work once built I'd be very happy.
 
 Thanks , best regards,
 
 ÉrIC Miclo
 
 -- My NeXT computer will Be a Mac too! --
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with dgText

2010-11-15 Thread Éric Miclo
Hello,

I use a splash screen as startup stack and the datagrid used to work some times 
ago. Yes, the splash startup stack needs a dummy stack to be sure everything 
works fine. I created it as a substack of the splash stack.
I've just found out half an hour ago that the dummy stack was no more there. I 
don't know how I managed to delete that stack but one thing is sure: the 
datagrid can't work that way.
So I added the dummy stack again and everything works like a charm.

Thanks you all for your advices and help.

Warmest regards,

ÉrIC

Le 15 nov. 2010 à 19:04, Bob Sneidar a écrit :

 
 Ok so is the stack with the datagrid the mainstack of the standalone? 
 Wouldn't the fact that you cannot modify a standalone interfere with DataGrid 
 operations in this configuration? If this is the case, then you need to have 
 the mainstack be a dummy stack (some use it for a splash screen) which then 
 calls the actual stack which is attached as a data file to your main stack in 
 your standalone settings. This is a common issue when creating standalones. 
 
 Just another shot in the dark. 
 
 Bob
 
 
 On Nov 14, 2010, at 12:53 PM, Éric Miclo wrote:
 
 Hello,
 
 I've a little script that populates a dataGrid with a tab delimited text 
 (titles are located in the first line).
 In the IDE everything works fine but once the application is built the 
 dataGrid is always empty.
 I've tried everything I could think of but didn't get it.
 
 Here is the script (located in the preOpenStack handler of a one card stack):
 
 if the cParamétrageDesItems of this stack is not empty then
   set the dgData of group Paramétrage items to empty
   dispatch ResetList to group Paramétrage items
   put the cParamétrageDesItems of this stack into itemListWithTitle
   set the dgText [true] of group Paramétrage items to itemListWithTitle
   dispatch ResetList to group Paramétrage items
   set the cParamétrageDesItems of this stack to empty
 end if
 
 If someone has an idea why it doesn't work once built I'd be very happy.
 
 Thanks , best regards,
 
 ÉrIC Miclo
 
 -- My NeXT computer will Be a Mac too! --
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 

-- My NeXT computer will Be a Mac too! --



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with dgText

2010-11-15 Thread Bob Sneidar
Yay! I finally got one right. :-)

Bob


On Nov 15, 2010, at 10:31 AM, Éric Miclo wrote:

 Hello,
 
 I use a splash screen as startup stack and the datagrid used to work some 
 times ago. Yes, the splash startup stack needs a dummy stack to be sure 
 everything works fine. I created it as a substack of the splash stack.
 I've just found out half an hour ago that the dummy stack was no more there. 
 I don't know how I managed to delete that stack but one thing is sure: the 
 datagrid can't work that way.
 So I added the dummy stack again and everything works like a charm.
 
 Thanks you all for your advices and help.
 
 Warmest regards,
 
 ÉrIC

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Going crazy with dgText

2010-11-14 Thread Éric Miclo
Hello,

I've a little script that populates a dataGrid with a tab delimited text 
(titles are located in the first line).
In the IDE everything works fine but once the application is built the dataGrid 
is always empty.
I've tried everything I could think of but didn't get it.

Here is the script (located in the preOpenStack handler of a one card stack):

  if the cParamétrageDesItems of this stack is not empty then
set the dgData of group Paramétrage items to empty
dispatch ResetList to group Paramétrage items
put the cParamétrageDesItems of this stack into itemListWithTitle
set the dgText [true] of group Paramétrage items to itemListWithTitle
dispatch ResetList to group Paramétrage items
set the cParamétrageDesItems of this stack to empty
  end if

If someone has an idea why it doesn't work once built I'd be very happy.

Thanks , best regards,

ÉrIC Miclo

-- My NeXT computer will Be a Mac too! --

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with dgText

2010-11-14 Thread zryip theSlug
On Sun, Nov 14, 2010 at 9:53 PM, Éric Miclo eric.mi...@wanadoo.fr wrote:
 Hello,

 I've a little script that populates a dataGrid with a tab delimited text 
 (titles are located in the first line).
 In the IDE everything works fine but once the application is built the 
 dataGrid is always empty.
 I've tried everything I could think of but didn't get it.

 Here is the script (located in the preOpenStack handler of a one card stack):

  if the cParamétrageDesItems of this stack is not empty then
    set the dgData of group Paramétrage items to empty
    dispatch ResetList to group Paramétrage items
    put the cParamétrageDesItems of this stack into itemListWithTitle
    set the dgText [true] of group Paramétrage items to itemListWithTitle
    dispatch ResetList to group Paramétrage items
    set the cParamétrageDesItems of this stack to empty
  end if

 If someone has an idea why it doesn't work once built I'd be very happy.

Hi Éric,

Assuming the cParamétrageDesItems property is not empty and the
datagrid library is included:

1) First, try to remove the lines - dispatch ResetList to group
Paramétrage items
The resetList command is useful if you have to reset a dg after a
change in a template. The refresh of the data is took in care when you
set new datas with the dgText or dgData properties.
However in some case, when the indexes are not properly set, reset the
datagrid with a resetList could result of an empty dg.
If the indexes are empty, the problem could be the preOpenControl of
the datagrid was not executed.
You can check the indexes by using the dgIndexes property of a datagrid.

2) Try to populate the dg with the pFirstLineContainsHeaders parameter
set to false. When set to true the data will be mapped by matching the
names of the column in the datagrid and the first line of the data.
If by setting the pFirstLineContainsHeaders to false, you get data,
this could be a problem in the columns names.


Best regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with dgText

2010-11-14 Thread Éric Miclo

Le 14 nov. 2010 à 23:11, zryip theSlug a écrit :

 On Sun, Nov 14, 2010 at 9:53 PM, Éric Miclo eric.mi...@wanadoo.fr wrote:
 Hello,
 
 I've a little script that populates a dataGrid with a tab delimited text 
 (titles are located in the first line).
 In the IDE everything works fine but once the application is built the 
 dataGrid is always empty.
 I've tried everything I could think of but didn't get it.
 
 Here is the script (located in the preOpenStack handler of a one card stack):
 
  if the cParamétrageDesItems of this stack is not empty then
set the dgData of group Paramétrage items to empty
dispatch ResetList to group Paramétrage items
put the cParamétrageDesItems of this stack into itemListWithTitle
set the dgText [true] of group Paramétrage items to itemListWithTitle
dispatch ResetList to group Paramétrage items
set the cParamétrageDesItems of this stack to empty
  end if
 
 If someone has an idea why it doesn't work once built I'd be very happy.
 
 Hi Éric,
 
 Assuming the cParamétrageDesItems property is not empty and the
 datagrid library is included:
 
 1) First, try to remove the lines - dispatch ResetList to group
 Paramétrage items
 The resetList command is useful if you have to reset a dg after a
 change in a template. The refresh of the data is took in care when you
 set new datas with the dgText or dgData properties.
 However in some case, when the indexes are not properly set, reset the
 datagrid with a resetList could result of an empty dg.
 If the indexes are empty, the problem could be the preOpenControl of
 the datagrid was not executed.
 You can check the indexes by using the dgIndexes property of a datagrid.
 
 2) Try to populate the dg with the pFirstLineContainsHeaders parameter
 set to false. When set to true the data will be mapped by matching the
 names of the column in the datagrid and the first line of the data.
 If by setting the pFirstLineContainsHeaders to false, you get data,
 this could be a problem in the columns names.
 
 
 Best regards,
 -- 
 -Zryip TheSlug- wish you the best! 8)
 http://www.aslugontheroad.co.cc

Hi,

Thanks for you advices, but I've tried different solutions including the one 
you've just proposed (and tried them again just now) and nothing is working 
once the application is built.
Inside the IDE everything works perfectly.

I've tried to set the columns names first but after the app is built it hangs 
when setting the dgText.

I've tried every combination of syntax with no success.

The datagrid template stack is not encrypted or password protected, neither is 
it a substack of an encrypted or password protected stack.

Before setting the dgText I did put an answer itemListWithTitle and 
itemListWithTitle contained the right data.

adding an answer dgindexes... shows that indexes are empty, but only in the 
built application.

What's strange is that it is working in the IDE and only there.

And the same thing happens with version 4.0.0 and 4.5.1.

I don't understand what's happening.

Thanks once again, best regards,

ÉrIC

 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

-- My NeXT computer will Be a Mac too! --

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with dgText

2010-11-14 Thread zryip theSlug
On Sun, Nov 14, 2010 at 11:39 PM, Éric Miclo eric.mi...@wanadoo.fr wrote:

 Hi,

 adding an answer dgindexes... shows that indexes are empty, but only in the 
 built application.


Interesting. It means that the indexes are not existing. The data is
probably set but it is not properly drawn because the indexes are
missing. I encountered this, months ago but not understood why. I not
found the time to investigate further, but could be interesting to
understand.

Try to refresh the indexes by using the command RefreshIndex:
send RefreshIndex to grp Paramétrage items

What happens?


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Going crazy with dgText

2010-11-14 Thread zryip theSlug
On Mon, Nov 15, 2010 at 12:18 AM, zryip theSlug zryip.thes...@gmail.com wrote:
 On Sun, Nov 14, 2010 at 11:39 PM, Éric Miclo eric.mi...@wanadoo.fr wrote:

 Hi,

 adding an answer dgindexes... shows that indexes are empty, but only in 
 the built application.


 Interesting. It means that the indexes are not existing. The data is
 probably set but it is not properly drawn because the indexes are
 missing. I encountered this, months ago but not understood why. I not
 found the time to investigate further, but could be interesting to
 understand.

 Try to refresh the indexes by using the command RefreshIndex:
 send RefreshIndex to grp Paramétrage items

 What happens?

Hum should do nothing as we have to send the indexes to the command, sorry.

Instead, try a:
send refreshList to grp Paramétrage items


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution