May 31, 200421 yr I have two files people and contact. Both files are related. On people I have a contact portal with the fields id , name and number. The related fields on both files are ID. I have these 3 fields on the portal and on the field number I have a button that copies the ID that
May 31, 200421 yr The button must be completely inside the protal row. We need to see your script to determine if there is a problem with it.
May 31, 200421 yr Author The button is completely inside the portal row because on the first row it works. Follows the script: if id = "" Show message "Please fill in ID Field" end if Copy Select id Paste Select ID::number
May 31, 200421 yr I'm afraid I have no idea why you are manipulating your IDs (which your relationship is based upon between people and contacts). They are already related on the ID or they wouldn't appear in the portal. If you could explain a bit more, it might make sense to me. I would really question how you're handling this. Having said that ... When something appears on the first portal row but not subsequent rows, it usually indicates that the item (not displaying or not working) is considered part of the layout and is probably not totally within your portal. Try resizing it again (as Ralph indicated). This is especially important on the left top edge of a portal - don't go near it with portal items, or you'll have this problem. If the resize of the button doesn't do it, then we'll need to figure out what you are doing with your IDs. I just don't 'get' it.
May 31, 200421 yr Author Solved the problem ! It workes like this: Set Field _gPortalRow, Status(currentPortalRoW) Copy(Select, Num) Go To Portal row (Select, _gPortalRow) Paste (Select, ID::Num)
May 31, 200421 yr LVA said: Solved the problem ! It workes like this: Set Field _gPortalRow, Status(currentPortalRoW) Copy(Select, Num) Go To Portal row (Select, _gPortalRow) Paste (Select, ID::Num) I have trouble figuring out what "Paste (Select, ID::Num)" is suppose to do, but may be a structure as : SetField[YourPortalRelationship::Num,ID] would be easier I think
June 1, 200421 yr I agree, use Set Field and save yourself some trouble. Also, in your first example script, after the show message, you should go to the id field and exit the script.
June 24, 200421 yr Newbies I think the reason your script was originally not working is that if you have any actions in your script BEFORE referencing the portal row you're currently on, then the row you're currently on will be lost. So you have to do exactly what you did: Save that row then do what you need to do, then use the saved row number! Good job
Create an account or sign in to comment