Page 1 of 1
Open new form
Posted: Fri Oct 05, 2012 12:33 pm
by forgot
Hello.
Is it possible open new form in corrent window from javascript? New form have to open directly in data view without show browse state.
--
Maxim
Re: Open new form
Posted: Fri Oct 05, 2012 12:53 pm
by zazzium
Re: Open new form
Posted: Mon Oct 08, 2012 9:54 am
by forgot
Thank you. Works
I start using openForm(pFormID, pRecordID);
For sample openForm("1506d32d1cbea5", "1506d34ed868b4");
where "1506d32d1cbea5" - form ID - I get it from mySQL
"1506d34ed868b4" - new ID for record.
I open new form only for input some data, not for open existing DB record.
And I find some issue.
For my form Default SQL Statement for dropdown doesn’t work.
I copy properly worked dropdown from other form.
--
Maxim
Re: Open new form
Posted: Mon Oct 08, 2012 11:47 am
by zazzium
if u want to insert a new record with openForm use -1 for the id ( openForm("1506d32d1cbea5", "-1");)
and if u need the forms id u dont need to search it from the database, just open the form, and u can get the id from the url (..f=the_form_id...)
if u use -1 id for a new record, the Default SQL problem should be resolved.
Re: Open new form
Posted: Mon Oct 08, 2012 12:57 pm
by forgot
It helps.
Thank you!
Re: Open new form
Posted: Tue Oct 09, 2012 4:57 am
by admin
You can also get the zzsys_form_id from the url eg. &f=1506d32d1cbea5
Steven