Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7458 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

The button must be completely inside the protal row. We need to see your script to determine if there is a problem with it.

Posted

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

Posted

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. crazy.gif 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. smile.gif

Posted

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)

Posted

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

tongue.gif

Posted

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.

  • 4 weeks later...
  • Newbies
Posted

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 smile.gif

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.