Jump to content
Server Maintenance This Week. ×

How to Create a New Record in a Portal?


Enuma

This topic is 5804 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a table related to its child,(that holds related data),the relation is built by auto generated serial(like usual)

The portal works all fine and always create a new records as its past on is filled.

But i want to create a button that creates new rows without being needed filling past records.

Will help alot in IWP!!!!!

Link to comment
Share on other sites

I'm not exactly sure what you mean, but one way to create a new related record is to grab the parent record's ID:

Set Variable( $id; ID )




... then go to a layout based on the child records; create a new record; and set the foreign key to the variable: 




Set Field( Parent ID ; $id )

... then go back to the original layout and you're done!

Link to comment
Share on other sites

This topic is 5804 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.