3 Replies Latest reply on Dec 20, 2015 2:53 PM by siplus

    Script action varies



      I have a script within a portal. An action button is on each line and it runs a script that copies the record ID of that entry in the related file then creates an action using the data from within that record. It works fine , however when this button is selected on the 4th and 5th lines of the portal, a large white field comes up on the screen ( the record ID field is very small) with the cursor flashing expecting an entry to be made. If I select the 'entry' key a message appears indicating "This action cannot be performed because this field is not modifiable". If I insert a pause script command and work through each portal line activating the script, apart from the 4th and 5th lines, the script properly selects the appropriate record ID. This action is the first line of the script which requires the record ID to be copied. I've checked on the portal file and a record ID is there. I've shown the record ID in the portal to ensure it is there. My concern is why does this action not work on the 4th and 5th lines of the portal when it works on the 1,2,3,6,7,8 & 9 lines.

      A real mystery to me.

        • 1. Re: Script action varies
          I have a script within a portal.

          You cannot have a script within a portal.

          Maybe you have a BUTTON within a portal; and a script associated with the button?

          But what is the script? Can you show it? Can you print the script to PDF or capture it in a screen shot?

          • 2. Re: Script action varies

            Yes, I indicated I had a button but I should have rephrased it better. I'd been playing around with all the known (to me) options to detect the reason for this issue. Included in this search for an answer I have now just moved the button from its location which was immediately at the end of a field in the portal to another location following the next field on the same portal line. Bingo, the script from that button now works on every line. I tested it again and moved it back to its previous location and again it faults on the 4th and 5th lines. There are no other fields in that line, hidden or open to view so while the problem has been solved it doesn't explain why a button activating a script in a portal will work on only some lines.

            My immediate issue is solved but no answer is obvious.

            Thank you for your response.

            • 3. Re: Script action varies

              The error you're getting probably comes from trying to modify a calculation field by inserting a value into it.


              +1 for the Picasso-like description of the problem.