Getting grid row ID via script

Getting grid row ID via script

pxedust
Contributor Contributor
806 Views
4 Replies
Message 1 of 5

Getting grid row ID via script

pxedust
Contributor
Contributor

I've been searching the forums and while I see the question has been asked, the answers are other ways to achieve what the OP is attempting without the need for that ID, and a reference to it being rowID, which doesn't work.

 

Is the system-assigned ID for a grid row available?

 

 

0 Likes
807 Views
4 Replies
Replies (4)
Message 2 of 5

philipfrench
Collaborator
Collaborator

Could you write a few words to explain what you are trying to do, that needs script to know the grid rowID?

 

I have written a lot of scripting related to grids, and I never needed the rowID. I suspect there may be an easier way to achieve what you want.

 

0 Likes
Message 3 of 5

pxedust
Contributor
Contributor

Hey, long time no chat! 🙂

 

Several fields in the grid are being passed to the next workspace (ECO or task, depending). The short answer is that the row ID, if available, allows identifying the source of the information without requiring user input in a comments field. For example, if we're creating 2 dozen new products out of the project the resulting ECOs have no automated means to determine which ECO corresponds to its originating grid line. The user would need to manually do that instead of just pulling up the ECO in one window and the grid in another when they do those first edits of the ECO to provide scope. 

0 Likes
Message 4 of 5

philipfrench
Collaborator
Collaborator

Can you add a column to the grid to hold the link (RO picklist) to the Eco generated, or a column to store the ECO ID (from the sequencer I hope you're using to name the ECO) ?

 

Or just add a column to store a number/string that you generate yourself? Effectively your own row id? 

 

I suspect I have not understood your case properly. 

 

As an absolute last resort you could perhaps call the grid API using the script, but don't be surprised if you end up deadlocking and timing out.

 

 

 

 

 

 

0 Likes
Message 5 of 5

pxedust
Contributor
Contributor

The additional columns are the next best option, but they'd need to wait till our next round of updates. The ability to just grab the row ID since it already exists would have been quick and easy. Thank you for confirming that getting to it isn't, however - I spent a good deal of time digging for it. 🙂

0 Likes