How can I set a value form from Been Shell Form?

Confluence User - 20 Nov, 2020

Hi!

I need to change the value of a field in a form cause it's not correct when 2 activities are assignees at the same time (if one of them  is submitted first, the second one can not see the new values)

I was able to obtain the data from the DB, but I don't know how to put the correct value (DB value) into the form field. 

In other words, I need to change the value of shkactivitiesdata Table in the form, been shell form, or something like that!

data;beanshell;forms

2


20 Nov, 2020
confluenceUser
confluenceUser

Hi, assuming you are using 2 separate forms, as long as you use the same table name for both you should be able to share data for similar field names.

20 Nov, 2020
confluenceUser
confluenceUser

Hi! No, is the same table and the same form.

Well, here a better explanation:

When someone opens Activity 1 and change things, click submit, and then another person (or the same, really doesn't matter) opens the Activity 2 the things changes by the Activity 1 are no visually in the Activity 2 form (but are ok in DB), then when Activity 2 is submitted all the information typed in Activity 1  is deleted! that's the reason I need to check DB information when Activity Form is open!

The actual way to do that is to update directly the shkActivityData table, but sometimes it generates a deadlock and I need to find another way!



RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print