Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Populate table fields on insert in view cluster

former_member382625
Participant
0 Likes
1,967

Hello,

I have created 2 tables. Each of these tables has a field created by.

Now, I created maintenance view for these tables and view cluster for these tables. (I did not include created by field in these view since I dont want those to be shown to user).

Whenever data is entered in the view cluster, I want the created by to be updated. How can I achieve this?

If I implement event in the view cluster would these fields be available?

Thanks and Regards,

Neha

1 ACCEPTED SOLUTION
Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
1,141

Hello Neha,

I think you will have to add the CREATED_BY field in the maintenance view but you can hide it from appearing on the screen by entering 'H' in column 'P' on the View Fields tab.

Regards,

Akshat

4 REPLIES 4
Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
1,142

Hello Neha,

I think you will have to add the CREATED_BY field in the maintenance view but you can hide it from appearing on the screen by entering 'H' in column 'P' on the View Fields tab.

Regards,

Akshat

Read only

0 Likes
1,141

Hi Akshat,

Thanks for the response. So, I should implement an event in view cluster now to ensure these checks?

Best Regards,

Neha

Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
1,141

Yes, I believe so. But, you don't mean 'checks', right? Rather, you mean setting those fields in the event.

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,141

Goto SE54,

Enter you view Cluster name

goto the TMG

From the menu Environment--> Modification--> Events

Click on the New Entries Button

Event Number 05 TEST_SAVE Click on the button Just beside this field 'FORM Routine'

It will ask to create a new Sub-routine in a Include.

Say yes in a New Include.

A blank Include will be open for Editing.

Enter the code as follows.

FORM TEST_SAVE.

Break-Point.------> You can write your code. This will be triggered when ever user saves some data.

ENDFORM.

This should solve your problem..