Portal navigation on a layout works in this order:
1) Go to portal
2) Go to portal row
3) Go to field in the portal
In script form that usually looks like:
Go To Object [ object name of your portal ]
Go To Portal Row [ first ]
Go To Field [ portalTable::yourField ]
Alternatively for step 3, if you need to set a value you can use Set Field instead of Go To Field to set the field in the row directly.
Am not trying to navigate to a object on the layout. Am navigating to the related record of a portal row. this dont work properly since the layout is showing a found set and not only the value I selected.
So, I need to use the search field on the "go to layout" to show only the portal row selected, and thats why I need to put the Name value of the selected portal row in a varible, so I can insert this into the search field on the "go to layout"
So grab the ID of the record in your selected portal row, then find for that:
Enter Find Mode
Go To Layout
Trying this, but I cant find a function for get(TheSelectedPortalRow)
You don't need that. Clicking a button that is in the portal row will place the context where you need it to be to grab the ID of the portal row where the button was pressed.
Hehe, okey, understand! not so hard afterall, Thanks alot mike
but the found set am getting show more than one record. how could that be? there should be only one
You are not grabbing and searching on the primary key of the portal table? Or you have duplicate primary keys.
A primary key should be unique for every record of each table. make sure you are getting the portal table's primary key, and searching the primary key field in that table when you go to the other layout.