Record not saved [message #414490] |
Wed, 22 July 2009 06:21 |
gozuhair
Messages: 206 Registered: January 2008
|
Senior Member |
|
|
Dear All
I have a customer master form and when i open it individually and try to save some records then its working fine but when i call this form through another form by using call_form builtin then its work fine for a few records but after saving 4 or 5 records its working abnormal and saves nothing and at the same time when i open this form individually and input the same records then its save the record successfully,kindly advice.
Regards
|
|
|
|
|
Re: Record not saved [message #414722 is a reply to message #414490] |
Thu, 23 July 2009 05:34 |
blaxmi
Messages: 36 Registered: May 2008 Location: Hyderabad
|
Member |
|
|
Hi,
Are you calling the customer master form from another form?
It is better to use new_form instead of call_form b'cos call_form will opens the required form and as well as it will keep the previous form. where as the new_form will only opens the required form and the previous form will be closed.
I hope this resolves your problem.
|
|
|
Re: Record not saved [message #414738 is a reply to message #414490] |
Thu, 23 July 2009 06:04 |
gozuhair
Messages: 206 Registered: January 2008
|
Senior Member |
|
|
First of all thanks for the reply,I have written the following code in key next item trigger into my form.
DECLARE
a_value_chosen BOOLEAN;
BEGIN
a_value_chosen := Show_lov('RO_CUST');
IF NOT a_value_chosen THEN
Message('Enter a Valid Customer and Then Procced.');
bell;
call_form('\\server\Software\Service\Ro\forms\ro_cust.fmx',
no_hide);
RAISE form_trigger_failure;
END IF;
END;
go_item('ro_cust_nm');
I didnt use any parameter in this but facing the problem at the time of saving..
I cant use new_form in this because my user requirement is that if he cancel the lov then customer master form automatically open and when he saves the customer master form then system directly goto the previous form.
Please advice
|
|
|
|
|
|
Re: Record not saved [message #414940 is a reply to message #414490] |
Fri, 24 July 2009 01:58 |
gozuhair
Messages: 206 Registered: January 2008
|
Senior Member |
|
|
No,i didnt define any environmental variable,could you please tell me how can i define these variable,i have also searched forum regarding temp ot tmp environment variable, but didnt find any suitable link.
|
|
|
|
|
|
|
|
|
|
|
|