btocakci
asked on
what are ModelFieldNames for?
hi. i am new with axapta. i shodul edit a report. i mean i should add some columns to report. i am adding the data of columns no problem but i have problem with the column headings. i cant show them on the report and i think that this problem has a relationship between modelfieldname. i want to write "FirstDiscount" on the column heading. what sould i do. hope you help.
ASKER
i tried writing FirstDiscount in the label but it didnt work. also there isnt any control named showlabel on label part. there is only one field in label part and it is the name of label. and i think this is not a simple report. i am working on SalesQuatationConfirmation report and all the headers have a modelfieldname. how can i specify my own ModelFieldName?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
thank you dude :) how couldnt i think this. as i said i am new in axapta :) anyway. is there anyway to set the column width? because according to colum header text it may be look as follows
a kind of
column header
-----------------
this is better than that
a kind of column header
-------------------------- --
anyway if you know help me. if you dont nevermind :)
a kind of
column header
-----------------
this is better than that
a kind of column header
--------------------------
anyway if you know help me. if you dont nevermind :)
Do not worry, you will get used to AX soon ... and you will always find out new things (I still do after 7 years) :-)
The column width is set through the field WIDTH on the data field itself. (enter 10char for example). That should do the trick (because through the modelFieldName mechanism, the header "inherits" the width from the column).
Hope this helps, otherwise, ask again :-)
Have fun with AX and welcome to the club!!!
The column width is set through the field WIDTH on the data field itself. (enter 10char for example). That should do the trick (because through the modelFieldName mechanism, the header "inherits" the width from the column).
Hope this helps, otherwise, ask again :-)
Have fun with AX and welcome to the club!!!
ASKER
thanks it helped :) i tried body column width before but as i said i only set the body column width. and it didnt work as usual :)
now i set header and body column witdh at the same time with equal values. and now it is working. i hope i work on this area as long as you are. 7 year experience in axapta is very great :)
thank you for your wellcome greetings for the club. sounds like fight club :)
now i set header and body column witdh at the same time with equal values. and now it is working. i hope i work on this area as long as you are. 7 year experience in axapta is very great :)
thank you for your wellcome greetings for the club. sounds like fight club :)
modelfieldNames are for aligning controls on reports and "inheriting" certain properties like the font.
Usually, on a simple report, you would not use this, but insert the text you want to show as a caption into the controls LABEL property (make sure SHOWLabel = Yes).
Hope this helps,
Agrippine