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

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

  • 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

  • How to create a simple input form in BPC 10.0 and the details are below

    Hi Experts,
    I would like to know how to create attached input form and what are the dimension would require to use in order to populate correct report
    Please provide your comments and the sample report has been attached.
    MGA Index
    Column
    Head Count Planning Required
    Approver authority
    Asset
    Row_Cost Center
    Business Development
    Finance
    Procurement -
      C&P
    Legal
    HSS &  Environment
    Petroleum Engg
    Drilling
    Subsurface
    Thanks in advance.
    Regards,
    SK.

    Hello,
    The new update of Muse allows you to use the Webforms widget with a non Business Catalyst host as well.
    However, Captcha is something which currently cannot be used via Muse without using Business Catalyst as host.
    This document might be of some help : http://forums.adobe.com/docs/DOC-3581
    Regards,
    Sachin

  • IWDMessageManager in WDJ Tutorial #3(Simple Input Form), p.23

    Prior to typing in any of the code shown on page 25 of WDJ Tutorial #3, the generated Java code looks like this for the checkDateInPast method:
      //@@begin javadoc:checkDateInPast()
      /** Declared method. */
      //@@end
      public void checkDateInPast( java.lang.String fieldName )
        //@@begin checkDateInPast()
        //@@end
    When I type in the first line of the code to be added, the result looks like this:
      //@@begin javadoc:checkDateInPast()
      /** Declared method. */
      //@@end
      public void checkDateInPast( java.lang.String fieldName )
        //@@begin checkDateInPast()
        IWDMessageManager msgMgr =
          wdComponentAPI.getMessageManager();
        //@@end
    But right away I get this error message:
    "IWDMessageManager cannot be resolved or is not a type."
    I have checked back carefully on previous pages and don't see anything I've neglected to do.
    Can someone suggest what might be going on here, either an error in the tutorial or an error in something I've done ????
    Thanks
    Dave

    Yes - that did it, thanks.
    Before you answered I found another way - I looked back at the Java for the views in previous tutorials and found these statements:
    import com.sap.tc.webdynpro.progmodel.api.*;
    import com.sap.tc.webdynpro.progmodel.gci.*;
    import com.sap.tc.webdynpro.progmodel.context.*;
    When I added these, the error message went away also - obviously because the IWDMessageManager is included in progmodel.api.*
    But while you're around let me ask you the following question:
    When I do it your way (ctrl-shift-o), how does NWDS know to add just the line for the MessageManager:
    "import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;"
    Thanks.
    Dave

  • b Simple Parameter Form & Page Parameter /b

    Hello,
    <br>
    i have a problem with a simple Parameter Form:
    I have one page; on this page i have a simple Parameter Form and an OmniPortlet (the pageParameter is 'Field1' and is mapped to both portlets!)
    <br>
    now my problem: when i type my parameter in the simple param form it is displayed in the url (http://mypage<b>&Field1=10000</b>).<br> the omniportlet displays the right data. all right so far!
    <br>
    but now i type a new parameter in the simple parameter form and now the url looks like this: http://mypage&Field1=10000<b>&Field1=20000</b><br>The parameter shouldn't be added to the old url, but a new url should be created with <i>one</i> new parameter.
    <br>
    Where is the problem? i cant find any solution?
    <br>
    Thanks for your help!

    Hi,
    There is a step you are missing.
    Open the page properties for the page where the Simple Parameter form and the Omniportlet resides.
    Go to the Events Tab.
    Here you will see "Portlet Events". There will be a list of portlets that are added on this page. Click on the "Simple Parameter Form".
    Under this you will find a link called "Submit". When you click on this link, it opens options on the right hand side of the page.
    Here, under the heading "When this event is raised:" Click the Radio Button "Go to page:" and then click on the button for the LOV on the right side of the box, a pop-up opens, select this page itself. (For Example, if the name of the page is PAGE01 (where we have added this Simple Parameter Form and the OmniPortlet), under the Page Group PG01, then click on the link called Return Object for PAGE01 under PG01 from the pop-up).
    After doing the above step do this:
    Right Below this, you will find another heading called "Page Input" which will have the list of page parameters. From the first drop down list select "Event Output" and from the second drop down list select "Parameter 1" (If there is only one parameter. But if you have more than one parameter, select the "Event Output" & "Parameter 2" respectively, and so on). Make sure that you match the correct page parameter with the Parameter drop down otherwise your results will vastly vary or there might be no result.
    We are pretty much done.
    Now just click on the buttons "Apply" then "Ok"
    Test your page. It will not add &Field1=<value>&Field1=<value>...... any number of times you run this.
    I hope I was of some help to you.
    Regards,
    Saabir.

  • How to combine data from different input forms outside a nested iView

    Hi,
    i try to combine data from different input forms in a single one.
    Because of space reasons in Flex compiling i already use nested iViews. Within these nested iViews its possible to use the 'combine' function to do this.
    But in the main iView I cant compose these function with other elements. I need to do this because of using these model in Guided Procedures with output parameters. These parameters I only get with a 'endPoint'. Unfortunatly its not possible to combine data from different input forms into the 'endPoint'.
    Is there any solution?
    Thanx
    Mathias

    Hi Scott,
    i tried this already and i also tried to map all parameters in the endpoint by drawing lines from the other forms and assign the 'empty parameters' by a formula.
    And when i create a collable object in GP and assign the VC iView, only the parameters of the parent-form (the form who trigger the event) are shown as output-parameters.
    Maybe any other ideas? I cant believe that such a simple thing is not possible?!?!
    In my opinion, thats a bug, that I'am not able to use the combine-operator in the main VC-iView. Whats your mind?
    greets
    mathias

  • 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.

  • Preventing input form from showing existing record

    Hello,
    I'm creating a series of web pages to collect info from a user. On the first page, create.jsp, I have a CommandLink bound to the Create binding action. It forwards to the input form on its own page, form.jsp. The defaults (sequence number, creation date) from the model layer appear nicely in the form. If the user follows the page flow, the record is committed and everything is swell.
    The problem is that users can enter "form.jsp" directly into their location bar in their web browser, and the input page will display the first record in the table. I cannot use an authorization scheme to prevent access because any general user of the web should be able to input their info. (In other words, you can't be logged-in before creating your login.)
    How can I disable this? Or, is there a hook in the processing lifecycle that I can use to determine if a user has created a new row before displaying the input form?
    I'm using JDev 10.1.3 production, ADF Faces, ADF BC.
    Thanks,
    -Anthony

    I figured this out myself, actually this was quite simple.- just set the 'immediate' property on the component (button) to 'true'.

  • 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

  • Make an input form in pdk-struts

    Hi
    I have an application that uses ADF BC4J as model and jsp as view. One of the pages has an master/detail input from.
    I have installed struts-pdk and I can build and deploy simple text pages, which are visible as portlets in the portal. Linking between these pages, within the application also works.
    How can I make an input form(either using struts-pdk or something else!) in the portal???
    And how do I combine the input form to my existing ADF model???

    You need to start with a table in a sheet that has some columns with headers  Once you create a new tab you can then create an input form for the table. This is in Numbers for iOS, not Mac OS X.

Maybe you are looking for