cancel
Showing results for 
Search instead for 
Did you mean: 

How to highlight a field?

leon_laikan
Participant
0 Kudos

Hi,

I have made a form containing option buttons, edit text with calendar, and edit text with combo box.

My form only serves to pass parameters to various stored procedures and to run crystal reports which use these parameters.

When I run my form, I notice that the "From" field is highlighted yellow.

I would like to highlight the Warehouse/Project field instead.

This is because all the fields (in boxes) are optional.

So, if the user does not change the defaults, the default parameters are used.

However, the Warehouse/Project field is mandatory, and the user has to pick up a value from the combo box.

So, I think it's a good idea to have this field highlighted rather.

----

Can anybody suggest how I can achieve this?

Thanks

Leon Lai

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

Hi Leon,

Two options.

1. In the screen painter/B1Studio, set the Tab Order (this is similar to VS tab order)

2. After your form finished initializing, set the oForm.ActiveItem property to the Warehouse textbox UID

Regards

Edy

leon_laikan
Participant
0 Kudos

Hi Edy

Thanks for your reply.

Unfortunately, I am still much a beginner and am not familiar with Screen Painter yet.

All my objects are done by code (gathered from SDK samples, forum, etc)

So, can I sort of "change my tab order" if I don't use screen painter?

Best Regards,

Leon Lai

---------

Sorry,

I think you have already provided the answer:

2. After your form finished initializing, set the oForm.ActiveItem property to the Warehouse textbox UID


I am trying it now


Thanks


-----------


Hi Edy

It works!

Best Regards

Leon


Former Member
0 Kudos

hi,

Small suggestions from my side...

i think in combo box u have loaded some values..

load one more value like  --slect-   --select--

at the form loading select this value in combo box..

like

combo.select(0,value)

have  a look on below image..may be u can get an idea...

leon_laikan
Participant
0 Kudos

Hi Srinivas,

That's another idea. Thanks for the tip

Best Regards,

Leon Lai

Answers (0)