Newbies rototheg Posted February 7, 2005 Newbies Share Posted February 7, 2005 This problem is related to a script, portal and value list, so I hope I'm posting to the correct forum. I have a layout where I'm using a pop-up menu (field name: StandardInfoRelatedPages) to populate three fields in a portal. The pop-up menu is populated by a value list. The value list is kind of complicated because each "value" actually contains three bits of information, which are a title/headline, URL and description (for example: My Site^http://www.mysite.com^Generic description). These bits are separated by a "^" character. Once a value is selected in the list, you may click a button that triggers a script that parses the value list and fills in the title/headline, URL and description portal fields (from the database named RelatedPages) with the appropriate information. This process works correctly the first time it is performed. However, if I try to add another value from the value list, the new value replaces the first value instead of filling in the second row of the portal. I have tried setting the Go to Portal Row script step to "Next" at the end of the script, but it doesn't appear to be making any difference. I have included the text of the script below to make the problem clearer. Is there anything I'm missing? Any help would be greatly appreciated. Set Field [ RelatedPages::Title, Left(StandardInfoRelatedPages, (Position(StandardInfoRelatedPages, "^", 1, 1) - 1)) ] Set Field [ RelatedPages::Link, Middle(StandardInfoRelatedPages, Position(StandardInfoRelatedPages, "^", 1, 1) + 1, Position(StandardInfoRelatedPages, "^", 1, 2) - Position(StandardInfoRelatedPages, "^", 1, 1) - 1) ] Set Field [ RelatedPages::Description, Right(StandardInfoRelatedPages, Length(StandardInfoRelatedPages) - Position(StandardInfoRelatedPages, "^", Length(StandardInfoRelatedPages), -1)) ] Set Field [ StandardInfoRelatedPages, "" ] Go to Portal Row [ Next ] Link to comment Share on other sites More sharing options...
This topic is 6623 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
Already have an account? Sign in here.Sign In Now