February 13, 201213 yr Hello, I would add a new portal row button on each row when i'll click on it it must add a new portal row under the row the button is placed. Any suggestions? Thanks,
February 13, 201213 yr Your request is not clear. If you are expecting a portal within a portal, then you will be disappointed because that is not possible. Perhaps a list view with a wide body part and a portal in the body part? Please provide a bit more of what you are hoping to design.
February 13, 201213 yr Author No it is not a portal in a portal. Just a portal to one table. What i'm trying to establish is when you press the green button there must be add a new record underneath it. I'll enclosed to file. user : admin no password WeekPlanning.zip
February 13, 201213 yr You don't need a button to add a portal row. Just turn on Allow Create in the relationship. However, if you'd rather not have that on, then the script would look like this (not real code): Set $parentID, ParentKeyID go to child table new record set foreignParentID field, $parentID go to original layout
February 13, 201213 yr Author I don't think you onderstand me. I'll make for example 5 rows then i'll would like to add a new one between te first two.
February 13, 201213 yr I see. Cannot do that. This isn't Excel, there's no insert row. You can, however, sort the portal so that the "new" row ends up in the proper location in the list.
February 13, 201213 yr Author I know how can i sort the portal so the rows ends up in the proper location? Did you see my file i'll included ?
February 13, 201213 yr OK, looked at the file. imho, you shouldn't store text values in your join table, but rather IDs. Also, your interface leaves holes in your join table. You are not creating proper join records, if you intend for the personnel to be related to the project. I would approach this using a side-by-side portal. The first portal would have the list of projects. Select a project and populate a global field (or $$var). The second portal would show all related personnel for that projectID.
Create an account or sign in to comment