Caption dynamic?
brauz
Member Posts: 14
Hi everybody,
I'm would like to change the Caption property on an Report 205 (Order Confirmation) at run time for the Order Number...
Anybody knows if this it's posible??
Thanks
I'm would like to change the Caption property on an Report 205 (Order Confirmation) at run time for the Order Number...
Anybody knows if this it's posible??
Thanks
0
Comments
-
Instead of "STRSUBSTNO(Text004,CopyText)" in the textbox, put a variable and in the "OnPreReport"-trigger fill it up with the value you want.
(I hope I understood your question correctly)Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks kriki for your reply, but I think than it's no useful for me.
My problem is that I'm printing this document as pdf, and the name that it suggests when I will save the file is the CaptionML value of the report and I would like to change for a field of the record that will be printed.0 -
You could try to use the System Table 2000000001 Object to modify the name of the object, before printing to PDF.
recObject.SETRANGE(Type,recObject.Type::Report); recObject.SETRANGE(ID,205); IF recObject.FIND('-') THEN BEGIN recObject.Name := 'New Name'; recObject.MODIFY; IF CONFIRM(recObject.Name) THEN; END;No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Thanks,
This code seems to be a very good, but I don't know how it works. I put in the OnPrereport trigger, and works correctly, change de recObject.name y show it, but the filename still being the original CaptionML value. I try to change recObject.caption but it seems be a Flowfield, and I can't change it.
Perhaps this cannot be done.
Greetings0 -
Try to remove the Caption-property in the report. Maybe then the object-name will be used instead.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Once again thanks Luc for your reply, you are a resources man...

I trying with your last suggestion but the report still giving the old name ](*,)
I'm begining to think that navision not permit this. Caption on the report is not a property that could access from C/AL Symbol Menu
greetings0 -
What about overriding the CaptionML property to a name you desire? Make sure you make the change in the language you are actually using the database with (Tools --> Language...)Kristopher Webb
Microsoft Dynamics NAV Developer0 -
He wants to change it using C/AL, because it changes for every order. And this property can't be modified at run-time.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
