Ukyo Posted October 4, 2009 Posted October 4, 2009 Dear Professionals, New row for entering portal data is defaulted to be at the very bottom of the list. Is there a way to keep it at the very top?
IdealData Posted October 4, 2009 Posted October 4, 2009 (edited) This is the way that portals behave for data entry, however, depending on the sorting for the relationship or the portal the new record will finally display in the correct place. A technique to maintain data entry at the top of the portal is to have a "parallel" set of GLOBAL fields above the portal and use a script to write the new record (in the related table) once the globals have been entered. Use a button to fire the script. Edited October 4, 2009 by Guest
Ukyo Posted October 4, 2009 Author Posted October 4, 2009 So you mean to place the global fields above the portal frame and make it look as if it's the empty top most portal row. Enter data in the global fields then script to set the actual empty fields in the portal? In this case, is there a way to not show that empty portal row at the bottom?
IdealData Posted October 5, 2009 Posted October 5, 2009 Yes. You must change the relationship settings to NOT ALLOW CREATION via the relationship - then the empty bottom row will disappear. Your script to write the new record must, therefore, go to another layout based on the target table of the relationship, and use the SET FIELD script command to write the fields, roughly like this.. Go To Layout (target table) New record Set field (first data field, using first global field) Set field (second data field, using second global field) . . Go to layout (original layout) Global fields have a nice "property" about them - they are accessible from all tables without a relationship! HTH
Ukyo Posted October 5, 2009 Author Posted October 5, 2009 Hi IdealData, Thanks so much for your help. It's working fine and my staffs are all happy with it. I can head home now... Thanks again!
Recommended Posts
This topic is 5528 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 accountSign in
Already have an account? Sign in here.
Sign In Now