Swing input form example?

Anyone have example code for a swing input form containing a JComboBox, JTextFields, and a submit button?

look 'ere:
http://java.sun.com/docs/books/tutorial/uiswing/mini/fifthexample.html
or 'ere:
http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

Similar Messages

  • Error in Simple Input Form Example for CE 7.1?

    Hi @,
    I am trying to execute Simple Input form example in sdn for CE 7.1. But its not working as per the functionality.
    Can anyone suggest what is the issue ?
    Regards,

    hi,
    This particular example is given in the sdn and is for ce 7.1 but its not working .
    Regards

  • Simple Input Form Example

    Hi all,
    I am trying out this example.
    [Simple Input Form|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/837d9290-0201-0010-1381-e633fe17cb14]
    In the method onActionSave(),
    //@@begin onActionSave(ServerEvent)
    this.checkMandatory(IPrivateForm.IContextElement.NAME);
    A Simple Input Form 25
    SAP Online Help
    this.checkDateInPast(IPrivateForm.IContextElement.BIRTHDAY);
    this.checkDesired(IPrivateForm.IContextElement.E_MAIL_ADDRESS);
    wdComponentAPI.getMessageManager().raisePendingException();
    wdComponentAPI.getMessageManager().reportSuccess(
    "The sample form data was successfully saved!");
    It states that if there is any error, raisePendingException() would stop the flow of the codes.
    However when i am running the application, the application still calls the reportSuccess method.
    What could be wrong here?

    Hi,
    The raisePendingException() method checks if any exceptions were reported to the exception manager and are still stored in the exceptions manager. If there is at least one exception still stored, this method does not return, but raises a framework internal exception instead to return to the framework error handler.
    So probably there are no exceptions reported to messagemanager in your functions checkmandatory() etc.
    Try writing foll code
    wdComponentAPI.getMessageManager().reportException("Some Message");
    just before the raisePendingException() statement and see if it works.
    Best Regards,
    Mayuresh

  • Dynamic Input form with PLAN and Actual Confusion (YEAR-row / MONTH-Column)

    Hi Guru's,
    Assume that
    Row Axis: YEAR
    Column Axis: MONTH
    Page Axis: VERSION
    From the VERSION dimension, we re able to get Budget Year and the latest Actual Month.
    For example, As u see below, the budget year is 2014 and we retreive + or - 2 years of budget year which is 2014.
    And the latest actual month is Jun.
    So is it possible to make a dynamic report that can retreive actual data for the budget year and latest actual month of selected VERSION and also rest of the cells should be inputtable.
    By the way, we have a dimension which named as for the PLAN , ACTUAL etc.
    So what do you suggest for that case?  Is there any way to handle without VBA?
    Thanks to all in adv.
    MONTH / YEAR
    Jan
    Feb
    Mar
    Apr
    May
    Jun
    Jul
    Aug
    Sep
    Oct
    Nov
    Dec
    2012
    2013
    2014
    2015
    2016

    Hi Sadi,
    I agree Vadim, you do not need extra dimension for time. You can "report" in Bex analyzer with this format but BPC reporting/input schedules is not dynamic enough. Because you can not use property in axis but in Bex it is possible. Maybe you can change input form design because where is other contex in your form, 2012.01 what, price or stocks or sth? You have to specify account and entity. I think  it is useless design to input data. I added figure for sales model. In this figure, you can manage actual / budget with "if" and "today" excel formulas. And you can easily link your olap member in column axis. I think it will help you.
    Best regards
    Haşim.

  • ActiveSync Input Form -- To take AD Resource name from Database column

    Hi All,
    My authorative source is a database table called dbTable.
    I am using an input form to provision into Active Directory. The Active Directory resource name is stored in a dbTable column. I first tried to hardcode the name of AD and do the provisioning, it worked. But wen I tried to take the name of the AD from my dbTable column using
    <Field name='waveset.resources'>
    <Comments>Add the AD account user inducted.</Comments>
    <Expansion>
    <block trace='true'>
    <filterdup>
    <appendAll>
    <ref>waveset.resources</ref>
    <list>
    <ref>activeSync.resourceNm</ref>
    </list>
    </appendAll>
    </filterdup>
    </block>
    </Expansion>
    <Disable>
    <block trace='true'>
    <neq>
    <ref>feedOp</ref>
    <s>create</s>
    </neq>
    </block>
    </Disable>
    </Field>
    It didnt work.
    Plz, can anyone tell me how to bring the name of the AD resource in my input form for provisioning into that AD.
    I need help. Plz treat it as urgent coz i can't move further without this being solved.

    Hello, first try to trace the value, using <ref>activeSync.resourceName</ref> should work,
    also read the example in Identity Manager documentation (PDFs) called: "Example: Disabling Accounts through ActiveSync Capable Adapters"
    Regards,
    Edgar Torres

  • Using rich text editor in new asset type input form

    Hey everyone,
    I'm currently trying to create assets based on a newly created asset type (which I of course, created). However, the STORAGE property I declared in the asset definition file is to support formatted text, which would normally be pasted from word documents. Note that I'm using the Basic Asset Model.
    Thus, I need a rich-text editor to be used in the content input form. So, after looking at the tags reference in the developer's documentation, I thought that I could use EWEBEDITPRO to achieve my goal but there's always an error mentionning that the component can't be launched. I supposedly have to configure two parameters, one of them being the path for ewebeditpro.js. I looked for that but haven't found it. On the other hand, I looked at the Oracle WebCenter Sites Property File document and that one stated that EWEBEDITPRO is deprecated and not supported (?!?!).
    So in short, what can I use, as a rich-text/html editor?? Thanks in advance for any reply!
    Edited by: DigitalSelf on May 24, 2012 2:26 PM

    Thanks. From what I've read in the developer's guide, CKEditor was available with assets built from the Flex model. However, I'm currently having a hard time trying to display the content of an attribute with content input through the CKEditor, because it's stored in a blob. Although I've found several examples showing how to read the content of a blob, none of them worked for me...

  • Web app: How can I make a web app input form post directly to a sub category

    Please, how can I go about this? Some of the ideas coming to my head is to  replace the section I require with the  generated webapp input form code with this:
    <input type="radio" name="CAT_Category" value="{module_category, ID} onclick="javascript: return false;" >2013 /> // Not tested because am not sure of the markup
    Am I on point ? Or is there any other way I can get this done.

    I Trickster, pardon me if am not clear enough. But this is it. I have many BC Categories setup for different web apps. If you use the module {module_categorylist} only. BC will populate all the categories on the BC site, instead of a specific category  relevant to the web app. If it is {module_categorylist, categoryID}, you are telling BC to use the the categories in a specific category.
    When you say that you want to assign a web app item to a sub-category... do you mean the built in BC categories . I want to do this via the web app input form not through the admin.
    Do you have a top-level category that contains all the relevant sub categories that the user could use to classify/categorize the web app item upon submission?  Yea I have a top category that the user could use. It is this top-level category ID, I have used with the categorylist module.
    If you don't want the user to choose the sub-category themselves, how do you plan to derive the sub-category anyway? Thanks again Trickster. You have provided the solution to that with the hidden input field code you shared earlier. The sub-category has been pre setup as usual in BC and the sub-category ID would be used as you instructed in the code. This is intended for another web app that won't require users selecting a category. This is the example you shared:
    <input type="hidden" name="CAT_Category" value="my category ID"/>
    Using my example above I was able to test and have it working (using {module_categorylist} with the SELECT element) on a web app input form and when I submitted the new web app item it was classified in the category I chose. Yes Trickster, it works for me too that way. the web app item was classified perfectly, but if you go to your the web app item submitted at the admin-end, you will discover in that the category the user selected in the front-end is not selected, even though the item was classified
    I have highlighted it here: http://screencast.com/t/dwiXzBFXp
    The option selected  by the user is not captured. It often defaults to the 2012, even when the user selected 2013 and the item has been classified as 2013.
    I hope am more clearer. Thanks for all the effort.

  • How to Create an Input Form using a Transient View Object?

    I would like to use a Transient View Object to store data from input forms across a multiple-page enrollment process.
    My question is how to I create the input form using the Transient View Object on the .jspx page? Do I drag/drop an ADF creation form onto the page? Or, use a regular ADF form? Do I need to create the initial row progammatically?
    Just looking for some general directions or set of instructions? I've looked at the SRDemo example (Globals Transient View Object), but I'm not sure how they created the page at design time?
    thanks

    Well following the SRDemo example, this seems to work:
    1. Create Transient View Object
    2. Add to Application Module as a Data control
    3. Add to .jspx page as an ADF Form (not as an ADF Create Form)
    4. Add following code to Application Module containting Transient VO instance:
    protected void prepareSession(Session session) {
    super.prepareSession(session);
    insertTransientViewObjRows();
    private void insertTransientViewObjRows() {
    ViewObject transientvo = getViewObj1();
    transientvo.clearCache();
    transientvo.insertRow(transientvo.createRow());
    }

  • Use data input form in workflow

    Greetings,
    I need to input some fixed asset information from FI-AA master data in a data input form and route through a workflow process before finally update the asset master data. Does anyone does something similar before? Is it technically possible? Is there any guide available here.
    Thanks
    Steve

    Hi,
    you can put several table controls / alv grids on one dynpro.
    find example in :
    SE38 - environment - reuse library
    Andreas

  • Filtering in case of mxn relationship in BPC Input Form

    Hi all,
    I have COST_CENTER in the context bar and COST_ELEMENT in the rows.ACCOUNT_TYPE is a property of COST_CENTER and NUMBER is a property of COST_ELEMENT referring the first 3 numbers of COST_ELEMENT.
    In addition, COST_ELEMENT has account types,too (like cost center) but 1 cost element may have more then 1 account type. For example 730xxxxxx has 3 account types( 1 , 2 ,3 ) plz see the table below.. So ACCOUNT_TYPE can not be a property of COST_ELEMENT.
    Lets say the user selects CostCenterA  and the ACCOUNT_TYPE of CostCenterA is 2. Then what I want is to go the table above and find the COST_ELEMENTS having ACCOUNT_TYPE 2 ( in this case 730,740) then filter the COST_ELEMENTS in rows having the property of NUMBER as 730 and 740.
    I tried a combination of epmcontextmember,dimensionproperty and dimensionoverride but failed.

    Hi Vadim,
    I realized that I was very close in the previous thread, you know
    It works now, thanks.
    Details:
    1-I created the table above in input form.
    2-Read the acount_type of cost center via epmcontextmember and via vlookup I fetch 730 and 740 and write them to 2 cells lets say Cell 1 and Cell 2. Then into another two cells namely D1 and D2 I write ="NUMBER="&Cell1 ="NUMBER="&Cell2 (If there were 3 numbers then I would write to 3 cells and I have to write epmdimensionoverride in step 3 by considering the maximum number of cells.In this case it is 2).
    3- Write the formula =EPMDimensionOverride("000","COST_ELEMENT",CONCATENATE(D1,",",D2))

  • Web User Input Form - in terms for DQ & DI

    Hi All,
    Thanks a lot for your excellent contribution on these topics.
    I have one question
    Is there a web user input form available for Business SMEs or User to input their rules/metadata which will get converted to equivalent code snippets into DI or DQ components automatically.
    If so, apart from Data Services Management console and Metadata reporting console, what are the other web services available to cater to this, kindly give us more insight on to this please.
    Regards
    Chandra

    Look at the top of this forum. There is a header that describes what this forum is for:
    This forum is dedicated to all other development-related questions which are not directly addressed by other forums. This includes Business Objects SDKs, products, or technologies which do not fall under BusinessObjects Enterprise, BusinessObjects Edge, Crystal Reports Server, or Crystal Reports (for example Desktop Intelligence SDK, Universe Designer SDK, Portal Integration Kits, Java User Function Libraries, and other third party technologies or development languages).
    Does any of the above relate to your query? If not, you're in the wrong forum and you'll have to find a corect forum to post to.
    - Ludek

  • Convert dynamic form to dynamic input form

    Hi All,
    I am using Jdeveloper 11.1.2.4.
    As a part of a requirement, I have created a dynamic form built out of a read only view object.
    On a user event (button press), I want to convert the form into an input form to allow the user to make suitable change to data and save to the database.
    At this stage I have programmatic access to the table name which is being used to create the dynamic form.
    Please suggest on how to convert the dynamic form into input form.
    Best Regards,
    Ankit Gupta

    <cfupdate> process data from the form scope. You are
    not putting your
    role datum into the form scope. You need to scope the
    variable in your
    cfset(s).
    <cfset form.roleColumn = form.role=>
    But I am not sure this would work well. It is probably better
    if you
    write your own SQL. <cfinsert> and <cfupdate> are
    for very basic
    database operations. Once you start putting other processing
    requirements in, such as this, they quickly become
    inadequate.
    Try replacing your <cfupdate> with a <cfquery>
    tag something like this.
    <cfquery datasource="my_DSN">
    UPDATE my_table
    SET lastName = '#form.lastName#',
    firstName = '#form.firstName#',
    #form.role# = true
    WHERE key = value
    </cfquery>
    I made my best guesses at how this SQL would look based on
    the examples
    you have provided. You'll have to finish it off based on your
    actual
    requirements.
    Mikelaskowski wrote:
    > Thanks,
    > I really like your solution. It definatly sounds a lot
    easier.
    > I am still having a little trouble though. I am probably
    missing something
    > silly (especially in my cfupdate tag) as I am a little
    new at this stil.
    >
    > When I used your code in my action page I get the
    following error:
    > Error Occurred While Processing Request
    > Variable PRESIDENT is undefined. <--when president is
    selected in the role
    > field. It changes nicely when another is selected.
    >
    > Here is my current code on my action page:
    >
    >
    > Thanks Again!!!
    >
    > <CFSET lastFirst = lastName & ", " &
    firstName>
    > <CFSET roleColumn = Evaluate(role)>
    > <cfupdate datasource="my_DSN"
    tablename="my_table">
    > <html>
    > <head>
    > <title>Title</title>
    > </head>
    > <body>
    > <cfoutput>The role is #roleColumn#<br>
    > The value is #lastFirst#</cfoutput>
    > </body>
    > </html>
    >

  • Multiple reports in same sheet used as input form

    Hi,
    I am using the Excel EPM Add-In and I would like to use different reports in the same sheet, going with the same connection to the same Planning Book and Data View in APO DP. I would like to use them all as an input form (I already checked 'Use as Input Form in the sheet options). When I try to upload adapted data from the first report, this works well, but when I try this from the second report, I get the error 'There is no data to save'.
    Can anyone help me on this issue?
    Kind regards,
    Kristof

    Hello Hassan,
    I'm not sure if I completely understand your question, but I suppose you always have to do the following steps:
    - Log on to the system (your usual SAP user and pw)
    - Create a report:
    - Choose the characteristics you want to see and always take the Key Figures (Row Axis) and Time (Column Axis) into the report (in the example, I only took the Product characteristic)
    - Click on the dimensions you have chosen and select what you want to see in your report (I often take 'All members')
    - Press 'OK', normally you should now see the data you chose.
    Kind regards,
    Kristof

  • Files and Input Forms

    Hello,
    I have a form that has a single input form of type "file". I want to write a servlet that, when a file, is selected and the form submitted to be able to get at the contents of the file.
    For example, user browses for an XML file and presses the submit form button. Within my servlet I want to be able to access the contents of the xml file that is in the request.
    Thanks,
    Esc

    sorry to correct, but if you need the content of the uploaded file in your application, you need the MultiParser object.
    Thatfor get the com.oreilly.servlet package (free, use google to find a download site).
    The basic code would look like:
    MultipartParser Parser = new MultipartParser(request, 50 * 1024); // 50k Filesize Limit
                        Part Part;
                        while ((Part = Parser.readNextPart()) != null )
                            // returns true if the Part is a File
                            if (Part.isFile())
    // cast the Part to a FilePart to handle it
                                FilePart FilePart = (FilePart) Part;
                                String FileName = FilePart.getFileName();
                                String ContentType = FilePart.getContentType();
    long size = FilePart.writeTo(FileToUpload);

  • Creation of input form without basemembers

    Hi,
    We are on SAP BPC NW10,SP10.
    Last week we faced a data loss issue in production system.How ever we could recover as we had backups for the data.
    Now analyzing the root cause for the data loss.During the suspected period there were no "Clear" or "Copy" jobs.
    Checked the logs for these process chains in BW back end and in UJFS as well.There are no exact logs in SM37 also.
    So we are assuming that data was not cleared with (Clear and Copy)DMPs.
    Only possibility I am assuming is some users might have cleared the data with input forms accidentally.
    But this is huge data(around 25,000 entries)which is not accepted by the management.
    Is there any other possibility for data loss?
    Can we clear the data on higher nodes in input forms?
    (I mean if we select top node Organization and top node Term,any functionality or Macro can clear the data for base members?)
    Thanks for anticipated help,
    Manohar
    NB:Audit logs are not turned on as they are consuming lot of space.

    Hi Manohar,
    It looks bit strange to me that Audit logs are not turned on.
    As s practice it is  advised to turn on the Audit logs at least in Production system.
    please cross check in UJD_STATUS table for the suspected period.
    "Audit logs are not turned on as they are consuming lot of space."--  It is advised to archive the data Audit logs by setting the frequency of purge  so that the performance will be improved while you query the audit logs.
    Thanks,
    Dinesh.V

Maybe you are looking for

  • Win 2012 Bit locker Infra and MBAM 2.5

    I am trying to implement a Bit locker infra that can store keys to AD. Long back I have done the same in a Win 2003 AD, by extending schema, running scripts, configure group policies etc. No I am trying to do in a Win 2012 R2 AD infra. Most of my cli

  • Java Studio Enterprise 8 errormsg: "Exception occurred in recuest processor

    Hello I recieve this error msg when I try to resolve imports in my code. The detailed message is: Annotation: Exception occurred in Request Processor javax.jmi.reflect.InvalidObjectException: Object with MOFID AC2E9F5C-7F2D-11DA-A8AB-0AC5FB43AA77:000

  • HT201303 I need to know how to reset my secutiy questions

    Im trying to download music and it ask me to answer the secutiry questions. I have forgotten them. I have gone to manage acccount but do not see a place to change or reset questions.

  • SMC server not available

    Hi guys, I've got an issue with my SunOS sundev 5.10 Generic_118833-22 sun4u sparc SUNW,Sun-Fire-V240 with the SMC. It doesn't want to start any more I don't know why. I've tried to restart it but nothing change I check the toolbox which seems to be

  • LovCriteria Mapping

    Hello All, I need to add a new LovMapping Criteria to the Lov so that when the user types a key word ,so that i need the Lov to search against the new item. Please let me know. Steps followed 1. Created new item using the VO substitution 2. Added the