I dont really quite follow what you want, but if you are talking about create a new related record try something like:
Set Variable [ $ID; pkParentID ]
Go tot Layout [ Child ]
New Record / Request
Set Field [ fkParentID; $ID ]
Go to Layout [ Original ] // Only if you want to go back to parent layout.
Thanks a lot that you have replied me. Your suggestion may help.
Still I am trying to explain my need.
I have table_1 and table_2.
I created a layout_1 linked with table_1. Hence when I hit new record, this layout will create a new record in table_1.
I want to create new record in table_2 from layout_1.
Please help how I should approach.
Please refrain from abstract information. Provide us with real names. You still havent said whether or not the two tables is or rather should be related or not.
Yah. These two tables are related.
Sorry, I should mention earlier.
Then my earlier script will work. Another option is to turn on 'Allow creation of record' on the child side or the relationship.
To add to Mr Vodka's suggestion. With the allow creation of records via this relationship option. You can place a portal to table 2 on a table 1 layout. Then, creating new related records can be as simple as typing in data into the bottom blank row of the portal.
Thanks!! Mr. Vodka, I do not have any layout for table_2, i.e., [child] in your script. Hence I could not use this script.
Mr. Phil, yah, I tried with portal right now. It is working good. Can you please suggest anything, if I try MULTIPLE portal to table 2 on a table 1 layout, still it should as it works. Is it possible anyway?
Each time you create a table a new layout referring to that table and with the same name is automatically created. Thus, you should have a table to use with Mr. Vodka's script unless you have deleted it. If you have, you can simply add it back by creating a new layout that refers to it. You don't even have to put any fields on it.
Not sure what you mean by "MULTIPLE portal". Do you mean a portal with multiple rows of data? If so, then yes it will work. Just enter data in the empty row at the bottom of the list. If you mean multiple portals, then yes as well--providing each portal's relationship has the "allow create..." option enabled.
Hello Mr. Vodka! I have worked again on your script. It is working fine, as I used with the layout for table_2.
Thanks to Mr. Phil, too. You have guided me to look into the script again.
Now I need to display the records of table_2 in layout_1. How can I recall the all field-values of a specific record
in table_2, from layout_1 of table_1 and display in layout_1 ?
I need to display several records from table_2 in different tab spaces of layout_1. Please help me.
Use a portal as Phil stated earlier. A portal will display the related records.
Please help to print the current layout in landscape format from one printer and in protrait format from another printer simultaneously on one click. What script should I write behind the command button?
This could be a simple as:
Where the restored settings specify the options you describe. Add the script step to your script, then click the specify button to select printer options such as page orientation.
I tried what you suggested in the following script.
Enter Browse Mode 
Go to Layout ["Letter" (Certificate)]
Print Setup [Restore; No dialog]
Print [Restore]............................................. for printer one
Go to Layout ["Address" (Certificate)]
Print Setup [Restore; No dialog]
Print [Restore]............................................. for printer two
Go to Layout [original layout]
First print is supposed to be done by printer one and
second print is supposed to be done by printer two, but
both prints are being done by printer two only.
What is wrong with this script ????????
How can I copy a value from a field created by a portal entry and store in a field of a related table ?