How to insert a dialog box which prompt the user enter the general information in the SDI application?

Im using the SDI application to build a system and now i would like to insert a dialog box which allow the user to enter the general information about themselves and then it will be saved into a text file. How to insert the dialog box and show the dialog box at the beginning of the program.

Hi Lee,
The easyest way to achieve this is to declare an object of your dialog box derived class (e.g. CUserInfo, public CDialog) into the InitInstance method of the main application class.
Depending on the behavior you want you can place the code before dispatching the commands from command line (in which case the main frame of the SDI application will not be shown), or after, in which case the UserInfo dialog box will be shown over the main application window as modal.
The code snipped bellow can be more helpfull:
BOOL CSDIApp::InitInstance()
AfxEnableControlContainer();
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
//prompt user for data
CUserInfo dlg;
if (dlg.DoModal() == IDOK)
//do something here with the data
else
return FALSE;//i.e. quit the application if the user presses the 'Cancel' button
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized, so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
Hope this helps,
Silvius
Silvius Iancu

Similar Messages

  • How to create conditional dialog box

    Hi Everyone
    I am creating a database application in APEX 4.0. In that application a page requires a dialog box, which has to appear when a user clicks on Submit button.
    It has to consider validations and appear after validations and submit button is clicked. Here the Submit button submits the entire page after validations by updating the database table.
    Please help me out how to create a dialog box which has to appear by the click of Submit button.
    Thanks in advance
    Regards
    Sandeep

    Hi Kiran
    Thanks for responding,
    Sorry for providing the complete details.
    Provided link is much more helpful, but its not meeting my needs. My requirement is to just show a popup box after the user clicks on submit button.
    Saying 'Thank you for answering' if he is done with all questions or if he has more questions to answer pop up with different message 'You have more questions to answer'.
    In both the cases page as to get submitted when clicked on Submit button.
    Thanks in advance
    Regards
    Sandeep

  • How do i resize the Dialog box which executes while baGetFolder command.

    Dear friends
    I am very new to director and working for the project which is already developed by some other vendor. in this project i have to implement the below mentioned requirment so can anyone pls help me upon this will be greatfull.
    How to resize the dialog box which appears while the command baGetfolder triggers. Actualluy the problem i am facing is the title of the dialog box extends its width so the title appears incompleted with "....", how can i solve this problem?. It is very urgent requirment and eagely waiting for yours reply.
    thanks in advance

    Hi sean wilson,
    Thank you veru much for your great help. The title of the dialog box is now adjusted into two lines after changed the" flag" value to 1. Your suggestion is very helpful and excellent. I hope you will be here to help those people who are struggling with technical problems. Once again i wish to thankyou much.
    Thanks and Regards
    E.VenkateshKumar
    Chennai
    India.

  • I need the dialog box (which contains page selection etC) HOW TO MAKE IT?

    hi
    i have done an requirement in smartforms.
    i need the dialog box (which contains output device name, page selection etc) when i take the print (smartforms).
    And now i already can see a dialog box .but still it doesn't have the page selection.
    I mean if the smartforms which have 5 pages,and what i need is just print the page 1 and page 3 . so I need the page selection
    which can help me on this issue. 
    Would anyone know something about it  and give me some advice . I will be appericate it.

    Hi,
    Just check with the control parameters of the function module, if you have changed any of it.
    If you have changed it then try to give the no-dialog field of the control parameter table as space.
    If the dialog box which gives you the Output device name and others appears then just below the output device name you have the column for the page selection.Just pass the values of the pages separating them with comma(like 2, 5 will print second and fifth pages) and it prints only those pages.
    Regards
    Sarves

  • Portal 7.3 masthead customization - How to remove Logoff dialog box "Are you sure you want to logoff?"

    Portal 7.3 masthead customization - How to remove Logoff dialog box "Are you sure you want to logoff?"
    I have recently upgraded our portal to 7.3 sps10 and we are using the Ajax framework
    I have a requirement to Remove the Logoff Dialog box "Are you sure you want to logoff?"
    I am able to Import masthead.war into NWDS and get the project ready for development with the appropriate jar and libraries.
    I am able to deploy the project also. I need help finding How to turn this dialog box off and just log the user off. I was able to accomplish this in Classic frame work page HeaderiView.jsp.
    I have looked at afpmasthead.org.sj and masthead.jsp. I am not a js/jsp developer.
    I can see the logoff dialog box being created but I am having trouble finding the logoff code.
    Please advise me on the code changes required to remove the  Logoff dialog box "Are you sure you want to logoff?" from the Ajax framework.
    Any help on this matter would be greatly appreciated.
    Thank you
    Sarah

    Thank you Troy for your Helpful Threads.
    Problem Solution:
    Followed the thread on How to download and change AFP Masthead on SAP Portal 7.3
    Located the file which contains the logoff code from thread http://scn.sap.com/thread/3265584
    The File with the Logoff coding in it is a Javascript file afpmasthead.js
    Identified logoff code without dialog box using this thread https://scn.sap.com/thread/3307601
    NovaDialogBox.performLogout();    (perform logoff)
    I was able to remove the Logoff dialog box Do you really want to logoff? And replace it with logging the user off.
    afpmasthead.js  All the code is on 1 line,  To fix this go to -->Source -->Format
    Comment out the following lines of code and replace with logoff code
    logoffLinkElement.onmouseup= function(aS) {
    logoffLinkElement.onmouseup= function(aS) {
    NovaDialogBox.performLogout();
    Sarah

  • How to launch a dialog box programmatically

    I'm working on my first ADF form and my first Java program (the backing bean) and I need some help with how to launch a dialog box from the backing bean instead of a button.
    Here is the background of what I am doing: I created an ADF form whereby a user chooses an Excel spreadsheet from their local drive and submits it. The backing bean reads through the spread sheet fields, does some validations, etc. then writes out a fixed length file on the weblogic server. This part works fine. But I wanted to add a dialog in after the spreadsheet is read but before the file is written that displays the number of records that were read and give them the option to hit OK to continue or Cancel which will stop execution of the form and maybe display a cancelled msg. Not sure how to do this part. How can I invoke the dialog from the code? Do I still need to have a button to get an action listener, but just not display it on the form? I'm a bit confused on this part. Any advice or examples would be appreciated. Thanks.

    here popup involves
    http://subu-jdeveloper11gadf.blogspot.in/2012/06/checking-application-module-dirtiness.html
        public void DisqualifyListener(DialogEvent dialogEvent) {
            // Add event code here...
            DialogEvent.Outcome outcome = dialogEvent.getOutcome();
            if (outcome == DialogEvent.Outcome.ok)
               RichPopup popup = this.getPp1();
               RichPopup.PopupHints hints = new RichPopup.PopupHints(); //empty hints renders dialog in center of screen
                popup.show(hints);
        }Edited by: ADF7 on Jun 26, 2012 8:57 AM

  • How to make a dialog box for a user to choose a file from disk

    Hi there
    Is it possible to make a dialog box, for a photoshop user, to choose a txt file, to be process by my javascript ?
    I have a txt file with all the names and locations of psd files i want to process by photoshop. I have ex. 100 out of a folder with 250 images.
    If anyone have a shot "code sample" how to select a file - i will be happy.
    /T

    Here is an example of selecting a text file...
    var dlg=
    "dialog{text:'Script Interface',bounds:[100,100,500,220],"+
    "testFile:EditText{bounds:[10,40,310,60] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
    "Browse:Button{bounds:[320,40,390,61] , text:'<<' },"+
    "statictext0:StaticText{bounds:[10,10,240,27] , text:'Please select Text File' ,properties:{scrolling:undefined,multiline:undefined}},"+
    "Process:Button{bounds:[10,80,190,101] , text:'Process' },"+
    "button2:Button{bounds:[210,80,390,101] , text:'Cancel' }};"
    var win = new Window(dlg,'test');
    win.center();
    win.testFile.enabled=false;
    win.Browse.onClick = function() {
    selectedFile = File.openDialog("Please select TEXT file.","TEXT File:*.txt");
      if(selectedFile != null) win.testFile.text =  decodeURI(selectedFile.fsName);
    win.Process.onClick = function() {
    if(win.testFile.text == '') {
      alert("No text file has been selected!");
      return;
    win.close(1);
    selectedFile.execute();
    win.show();

  • How to add FONT DIALOG box to my notepad application

    hai friends.......
    i am developing a notepad application like windows notepad. for that application i want add FONT dialog box.could you please tell me how to add font dialog box to my application.
    thank you.........

    Start by going through the Swing tutorials linked from the topic listing page of the [_Swing forum_|http://forums.sun.com/forum.jspa?forumID=57]. When you are confident of being capable of displaying a dialog with the components you need, correctly layed out, check out the API for GraphicsEnvironment#getAllFonts and Font@canDisplyUpTo.
    Any Swing related questions you might have along the way should be posted in the Swing forum.
    db

  • HT1589 This doesn't work in Windows 8. Anybody know how to get this dialog box in Windows 8?

    This doesn't work in Windows 8. Anybody know how to get this dialog box in Windows 8?

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • How does "Select Recipients dialog box" in iBot get Dynamically populated?

    Hello,
    The OBIEE security setup in my company is using LDAP.
    When I am trying to create the iBot, the "Select Recipients dialog box" dynamically pulls users from LDAP - but how does this happen? I am asking because I see some users but not others. Now, I am confused - is it really pulling from the LDAP? If yes, then how does this randomness happen. The users I don't see in the "Select Recipients dialog box" list, can they still get my iBot if I just add their LDAP name?
    Thanks,
    Manju

    If you are using LDAP security you are also probably also using the SA System Subject Area. If you are not, then you should set it up. Check this thread: Re: [BI Delivers] How to send mail to NOT BI users

  • Compressor 4 insert DVD dialog box does not come up after rendering

    Does anyone know what I might be doing wrong when after rendering a DVD project, the process looks like its finished rendering but the insert DVD dialog box never comes up. 
    Very frustrating, but probably something dumb...
    Thanks

    Everything looks good in the Batch Window.
    I'm guessing permissions or preferences, assuming it's not hardware.
    Run Compressor Repair to flush things out…make sure the Trash Preferences box is checked.
    Run Disk Utlity, select your boot drive and Repair Permissions.
    If that doesn't do it, in Job Action, change output device to Hard Drive and se whether it will make a disk image.
    Good luck.
    Russ

  • Is there a LabVIEW function that will pop-up a dialog box to prompt the user if he is sure he wants to do when a boolean switch is pressed?

    I want to prompt the user by asking, "Are you sure you want to do this?" when the user presses a switch.  If the user clicks "Yes" then the switch changes state, if the user clicks "No" then the switch retains the current state.  Does such a thing exist or do I have to invent it?  I am new to LabVIEW.
    Thanks.

    You can use an event structures filter event on mouse down for something like this.  Pop up a dialog and invert the logic for the output and sent it to the Discard? modifier on the right side.  See example for assistance.
    Attachments:
    Untitled 1.vi ‏24 KB

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

  • Hello. I just know the muse and I need an organization of customers in alphabetical order. The problem is that you will always get new customers. I need to know how to insert a new customer (square) and it already comes in alphabetical order on the page.

    Hello.
    I just know the muse and I need an organization of customers in alphabetical order. The problem is that you will always get new customers. I need to know how to insert a new customer (square) and it already comes in alphabetical order on the page. The site will be like in the link below, and each client will be a window of these: http://www.connary.com/. I look back.
    A hug, Murilo.

    I believe you are referring to thumbnail image rectangles as customers on page ? not exactly customer database ?
    You can add rectangle with different effects with mouse rollover state and regarding adding new ones , you would need to do that manually in design mode .
    Thanks,
    Sanjit

  • How to get the user entered data?

    Hi all,
    I have created an HTMLB DynPage component.
    In That i have created my input screen with textboxes using response.write method.
    i have added one onConfirm event on which the data whould validate.
    so onConfirm method im trying to get the data with request.getParameter method which returns null...
    how to do...how to get the user entered data to do my validations...can anyone plz advice.
    Thanks,
    Viswes

    Hi
    inputfield or textbox component entered directly using response.write(...) are not htmlb , but html.
    to create portal input field (ie HTMLB), you should do something like
    this in the doProcessBeforeOutput member function
    InputField field1 = new InputField("Id1");
    field1.setSize(8); // 8 characters
    this.getForm().addComponent(field1);
    and in doProcessAfterInput member function
    InputField field1 =
    (InputField) this.getComponentByName("Id1");
    you can then manipulate the content of the field.
    Hope this help,
    Guillaume

Maybe you are looking for

  • "Open sql" report no data sourced defined in windows

    when I want to import data from sql database, the Open sql window report error "There are no data sourced defined. Please create one to continue", but I have defined the odbc data source using windows 's odbc administrator, why the error? chuliang

  • Report problem directly in iTunes has been disabled?

    I had understood that it was possible to report a problem on a purchase directly from within iTunes, by going to my account, history then selcting the ourchase that had the problem. However the "Report a Problem"link now just boots me off to the Appl

  • MusicMatch Playli

    I dragged my playlist from MusicMatch to my MuVo Tx FM and the order of the playlist was not maintained. Is there some way to maintain the order. If I use MediaSource to create playlists and download it, is the order maintained? Thanks, Scott

  • Apex_util.prepare_url from PL/SQL (outside APEX)

    Hello there, I have to create a job that sends emails with a link to a page with SSP actived and that requires authentification. I've read those threads from Dan and Omar and I wonder if this is still possible in APEX 4.2.1? Re: apex_util.prepare_url

  • Drawings for a specific project

    Hello PS Gurus please advise to look up all drawings for a specific project. we are looking for a way to look up drawings not related to looking up by change numbers. an you please advise a method and transaction for this. Thanks & regards PY