When i create an cr object with a special category, there are a spel code that creates zdemand obj and stores inside the ID value of the cr, and in the cr obj stores on a field called "zdemand" the id of zdemand obj. On the detail form (detail_cr.htmpl) if i put a field of zdemand obj, the data is displayed, but if i edit and save, the changes are lost. I understand that when i edit a cr ticket only the cr data is saved. So i need to draw a button with this URL wich contains the related zdemand row and open on another window for the fillup of these fields.
All this i must to done of this way because the customer have a looooooots custom fields, and is to many to put all this "zfields" on the cr object. So i decided to create a new object that i can use to extend the cr ticket.
You request:
bop_sinfo -da cr | find "zdemand"
zdemand SREL -> zdemand.id
bop_sinfo -dafq zdemand
Factory zdemand < zdemand >
Rel Attr = id
Common Name = string1
Func Group =
Display Name = zdemand
Display Group =
REST Operations = CREATE READ UPDATE
Schema Name = zdemand
Producers = zdemand
Attributes:
id INTEGER UNIQUE
producer_id LOCAL STRING(20)
persistent_id LOCAL STRING(60)
persid SREL -> cr.persistent_id
string1 STRING(250)
last_mod_dt DATE ON_CI {NOW}
last_mod_by SREL -> cnt.id ON_NEW {USER} ON_CI {USER}