LVA Posted May 31, 2004 Posted May 31, 2004 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
RalphL Posted May 31, 2004 Posted May 31, 2004 The button must be completely inside the protal row. We need to see your script to determine if there is a problem with it.
LVA Posted May 31, 2004 Author Posted May 31, 2004 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
MoonShadow Posted May 31, 2004 Posted May 31, 2004 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.
LVA Posted May 31, 2004 Author Posted May 31, 2004 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)
Ugo DI LUCA Posted May 31, 2004 Posted May 31, 2004 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
Fitch Posted June 1, 2004 Posted June 1, 2004 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.
Newbies JerSchneid Posted June 24, 2004 Newbies Posted June 24, 2004 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
Recommended Posts
This topic is 7458 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