Beginners question
Paul Witmond
Hello,I have a beginners question.
I have created a new tab on the business partner master data. On this tab we have created an UDF (U_acctcode) and a new item for the description.
My question :
How can we fill the discription with the correct data ?
The UDF is filled with a formtted search
Michael Egloff
Hello Paul,you can set the description of the label like this:
label.Value = "My Description";
where label stands for the variable you created.
Paul Witmond
Hi Michaeal,It's not working as I think it should
I have created a new tab on the business parter master data COR_ZP1
On this tab I have placed an UDF ZP_KSTN wich is the default cost account for the business parter. This is working fine
But i have created another field (not an UDF) named KSTN_DESCR wich must be filled with the correct account descrition.
All I want is the correct way to fill this field based on the cost account
I can't just use : KSTN_DESCR.value="description"
What should I use ?
Regards,
Paul
Michael Egloff
Hello Paul,can you please describe how you created this second field (with the modul newItem, with the optimizer) or better, put the customize rules here into the forum (attach the *.cocu file).
Paul Witmond
Hi,Please see the attachmnent.
Regards,
Paul
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-file-uploads/paul-witmond/bp_customize.cocu]bp_customize.cocu[/url]
Michael Egloff
Hej Paul,when you create a new textfield with the newitem modul and you don't provide a udf field to store the value, this field will only be an information and can't be saved or changed by the user.
if you want to fill a value to this field, you have to make a new rule in the optimzer on which you react on the event formdataload, calculate your value there and write it directly into the field
TextEdit.GetFromUID(pVal.Form, "your Field ID").Value = "your new Value";
Paul Witmond
Thanks :DThis is what we needed.
Regards,
Paul
0
Please sign in to leave a comment.
Comments
0 comments