Service Portal :: Data Table From Instance Definition and widget-form

ggg
Giga Guru

I have Data Table From Instance Definition (table = incident) and widget-form on a page.

the incident displays in the form widget.

I would like the Data Table From Instance Definition to display in a different widget on the page.

How do I tell Data Table From Instance Definition to display in that other widget?

 

1 ACCEPTED SOLUTION

Hi,

If the form has the fields, then you don't nee dto add any code. The widget will take care of the update. I already checked this.

How did you add a field to the form? You need to add a field to the Service portal view as that is the view that gets rendered in the from widget.

And any changes to any of the fields that are displayed in the form will be updated by the widget itself. The code that i give is to update any other fields that are not on the form.

Mark the comment as a correct answer and also helpful if this helps.

View solution in original post

19 REPLIES 19

the problem is:

I put a gs.info(input._fields) and it is UNDEFINED.

If i put a gs.info after the if (input._fields) statement code does NOT go into that if statement >> that is why i don't know how this is working.

I added an else and put in a gs.info and code will go into the ELSE .

my ultimate goal is to add another piece of data to the input / data object so that it is saved with the record. (this piece of data is not entered on the form)

still cannot figure out how to do this.

do you have any insights?

 

 

 

Hi,

When you place the code, did you submit the form?

Because the code enters into that if block after you submit the form, because only then the record is saved.

Adding another field to input or data object, i don'tthink it will work. If you have any additional fields, then i suggest you can add your own code in that if block after the saveRecord line.

Mark the comment as a correct answer and helpful if it answers your question.

When you place the code, did you submit the form? yes, there is a save button at the bottom of the widget-form. I click that.

Because the code enters into that if block after you submit the form, because only then the record is saved. >> this is the problem. code is not entering that if block.

Adding another field to input or data object, i don'tthink it will work. If you have any additional fields, then i suggest you can add your own code in that if block after the saveRecord line. >> this is the problem. code is not entering that if block.

I appreciate your help with this.

If you have this set up in your instance would you please try and let me know if you enter that if block?

thanks!!

 

Let me setup in PDI and revert back.

Could you tell me the widgets that you have cloned?