Trying to make Radial button to act as boolean check box

sarabi98
Member Posts: 13
I have a tabular type form with a field to Import Documents. The pushAction property for this is set to RunObject - which runs the Form Documents.
I have a request to change the check box option on those to look like a radial button. Is this possible?
I added a radial button to the form. But I realised that I need to add 2 columns, one that is yes and one that is no. So now I have 2 Columns
No Documents Imported and Import Document.
I am trying to set it so that when the user click on Import Document radial button the pushaction property is triggered.
I have kind of managed this with C/AL code. However, the problem is that when the user clicks on a Radial Button for Import Document all the records get checked. How can I avoid that?
Thanks for any help
NP
I have a request to change the check box option on those to look like a radial button. Is this possible?
I added a radial button to the form. But I realised that I need to add 2 columns, one that is yes and one that is no. So now I have 2 Columns
No Documents Imported and Import Document.
I am trying to set it so that when the user click on Import Document radial button the pushaction property is triggered.
I have kind of managed this with C/AL code. However, the problem is that when the user clicks on a Radial Button for Import Document all the records get checked. How can I avoid that?
Thanks for any help
NP
0
Comments
-
I am not 100% sure about what it is you are trying to do but this is how I see it.
Yes, you can use a radial button (option button) instead of a checkbox. Just remember to set OptionValue = Yes for one of the buttons and OptionValue = No for the other button.
I can't understand why all records gets checked if you check one record unless you are using a variable as SourceExpr. Are you using a variable as SourceExpr or a field from a table?
Regards
Claus0 -
Yes I have set the SourceExpr to go to the Documents table. The field I am calling is View Document which I created in the table.0
-
-
Stick to your table field as a Boolean and a Check Box on the form and add code to the OnValidate or OnAfterValidate Trigger of the Checkbox Control to run the report.
IF (MyFlag <> xrec.MyFlag) AND (Myflag = TRUE)THEN
MyReport.RUN;
Or if you keep 2 the option Buttons code on form control
IF (MyFlag <> xrec.MyFlag) AND (Myflag = MyFlag::PrintRecord)THEN
MyReport.RUN;
The only way I can see that all records get checked is if the field is a flowfilter or a variable and not a table field, or it's your code.Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions