dataprovider not defined ???

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

dataprovider not defined ???

Postby Odysseus » Thu Jun 24, 2004 11:49 am

I'm probably overlooking something, but it beats the ... out of me why this piece of code is not working, or more specific not working under all circumstances.
THis is the code:

if(ce_type == 'exam')
{
elements.ce_timeout.visible = true;
elements.time_out_lbl.visible = true;
}
else
{
ce_timeout = null
elements.ce_timeout.visible = false;
elements.time_out_lbl.visible = false;
}
ce_type is a dataprovider & an element (combobox)

attached to the combo (on datachange) it does exactly what I want. However I want the element ce_timeout & his label also disappeared when an existing record is edited. So I attach the same code to the on show method of the same form & then I get the error
'ce_type is not defined'.

I fail to see why at the showstage the dataprovider is not there ?

Anyone

TIA
Odysseus

Citizen of Old Europe
Odysseus
 
Posts: 205
Joined: Wed Sep 10, 2003 9:34 pm
Location: Belgium

Postby Jan Blok » Mon Jul 05, 2004 12:53 pm

Are you sure there is a record? (BTW which version of Servoy are you using?)
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 27 guests