- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to add one more dropdown list in SQLServerSelect dialog
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @vasanthakumarmk,
Below would be the sample snippet that could help you with:
//populate servers list listServers = SQLRTGetServers( TRUE );//Replace with your function call
if(svServer = "" ) then
ListGetFirstString( listServers, svServer );
endif;
CtrlSetList( DLG_SQLSELECT, COMBO_SERVERS, listServers );
CtrlSetText( DLG_SQLSELECT, COMBO_SERVERS, svServer );
ListDestroy( listServers );
hDlg = CmdGetHwndDlg(DLG_SQLSELECT);
SdGeneralInit(DLG_SQLSELECT, hDlg, 0, szSdProduct);
szTitle = GetDialogTitle(DLG_ASK_TEXT);
SdSetDlgTitle(DLG_SQLSELECT, hDlg, szTitle);
if(szMsg != "") then
CtrlSetText(DLG_SQLSELECT, SD_STA_MSG, szMsg);
endif;
The sample script file of SQLServerSelect dialog you could find on \\Script\isrt\Src\SQLServerSelectDlg.rul .You can play around with the same script file by replacing with your functions.
Hope it helps,
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @vasanthakumarmk ,
Glad that you could get things working.
CtrlSetText( DLG_SQLSELECT, COMBO_SERVERS, svServer );
doesn't help with setting default value before calling your function or whenever needed?
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
See the below link for adding dialog controls:
See the below link for processing the control from the script:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @vasanthakumarmk,
Below would be the sample snippet that could help you with:
//populate servers list listServers = SQLRTGetServers( TRUE );//Replace with your function call
if(svServer = "" ) then
ListGetFirstString( listServers, svServer );
endif;
CtrlSetList( DLG_SQLSELECT, COMBO_SERVERS, listServers );
CtrlSetText( DLG_SQLSELECT, COMBO_SERVERS, svServer );
ListDestroy( listServers );
hDlg = CmdGetHwndDlg(DLG_SQLSELECT);
SdGeneralInit(DLG_SQLSELECT, hDlg, 0, szSdProduct);
szTitle = GetDialogTitle(DLG_ASK_TEXT);
SdSetDlgTitle(DLG_SQLSELECT, hDlg, szTitle);
if(szMsg != "") then
CtrlSetText(DLG_SQLSELECT, SD_STA_MSG, szMsg);
endif;
The sample script file of SQLServerSelect dialog you could find on \\Script\isrt\Src\SQLServerSelectDlg.rul .You can play around with the same script file by replacing with your functions.
Hope it helps,
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi Jenifer,
Thank you so much for your help. Really appreciate your help. Its working now.
One more small doubt -> How do I have one default value in combobox ?
Regards,
Vasanth
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @vasanthakumarmk ,
Glad that you could get things working.
CtrlSetText( DLG_SQLSELECT, COMBO_SERVERS, svServer );
doesn't help with setting default value before calling your function or whenever needed?
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
One more small doubt -> How do I have one default value in combobox ?