Default Tab based on condition

jwillet1

Registered User.
Local time
Today, 09:00
Joined
Nov 8, 2013
Messages
35
I have a, hopefully, quick question. I have a "view" form, attached as the first attachment, that allows users to view current test vehicles or enter a new one. Attached as the second picture are tabs on the new vehicle form that opens when either the "new vehicle" button or the blue vehicle number hyperlink is clicked. What I want is, if the "new vehicle" button is clicked to default to the "Vehicle Information" tab and if a hyperlink is clicked to default to the "Vehicle Test Data" tab.

Is there anyway to do this?
 

Attachments

  • Test vehicle view.png
    Test vehicle view.png
    10.5 KB · Views: 84
  • Form tab.png
    Form tab.png
    1.8 KB · Views: 73
Use the OpenForm's OpenArgs method.. Then in the On Load method you can check what argument was passed and set the tab based on that..
 
I understand how i can set the tab control on load, how do find what the openform openargs value is so i can set tab based on that.

I tried to run the event and read the openargs value, but, at least if i did it right, both methods to call the form show openargs as blank.
 

Users who are viewing this thread

Back
Top Bottom