Retreiving value back from formhandler to jhtml form

I want to ask that what to use to get value from formhandler back to jhtml page and to find whether it contain null or not,and on the basis of which print some value....which is inunicode....
What to use if we have to get values from a form which is in chinese and to process this values.....
Thanks in advance....

Below I have tried to give you solution that you want. It would be helpful if you explain your exact requirement?
[1] define your attibute formhandler
//your XXXFormHandler.java
package a.b.c;
public class XXXFormHandler extends GenericFormHandler{
     String name;
     String successURL;
     String errorURL;
     //anyogher property(ies)
     //getters and setters
     //handler method
     public boolean handleDoIt(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)throws ServletException, IOException{
          preDoIt(pRequest,pResponse);
          //your operation goes here
          postDoIt(pRequest,pResponse);
          return return checkFormRedirect(getSuccessURL(), getErrorURL(), pRequest, pResponse);
     void preDoIt(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)throws ServletException, IOException{
          if(getName()==null||getName().IsEmpty()){
               addFormException(new DropletException("name should not be null"));
          //other varification goes here
     void postDoIt(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)throws ServletException, IOException{
               //code you want to do after handle method operation goes here
     //other code .............     
[2] make component config/a/b/c/XXXFormHandler.properties:
$class=a.b.c.XXXFormHandler
$scope=request
[3]use dsp:form in page1.jsp
page1.jsp:
<dsp:form action="" method="post">
     //print error message
     <dsp:droplet name="Switch">
          <dsp:param name="value" bean="XXXFormHandler.formError"/>
          <dsp:oparam name="true">
               <dsp:droplet name="ProfileErrorMessageForEach">
                    <dsp:param name="array" bean="XXXFormHandler.formExceptions"/>
                    <dsp:oparam name="outputStart">
                         <ul>
                    </dsp:oparam>
                    <dsp:oparam name="output">
                         <tr><td><li><font color="red"><dsp:valueof param="message"/></font></li></td></tr>
                    </dsp:oparam>
                    <dsp:oparam name="outputEnd">
                         </ul>
                    </dsp:oparam>
               </dsp:droplet>
          </dsp:oparam>
     </dsp:droplet>
     <dsp:input type="text" bean="XXXFormHandler.name">
     //set error/success urls
     <dsp:input type="hidden" bean="XXXFormHandler.successURL" value="page1.jsp"/>
     <dsp:input type="hidden" bean="XXXFormHandler.errorURL" value="page2.jsp"/>
     <dsp:input type="submit" bean="XXXFormHandler.doIt" value="Send"/>
</dsp:form>-RMishra
Edited by: RMishra on Apr 8, 2013 6:46 PM

Similar Messages

  • Can you get values back from a stored procedure via OUTPUT parameters?

    Can you get values back from calling a stored procedure via OUTPUT parameters/variables? I call the SP via a SQL statement from a script either in a WF or DF.
    I thought I read some reference that DI could not get the values from OUTPUT parameters but I could not find it again (don't know if it is in any of the documentation or referred to in a forum.
    I did try a couple of tests but it did not reutrn any values via OUTPUT. But before I give up I thought I'd see if you could and maybe I needed to change something.

    This isn't exactly an answer to your question, but I'll point out that, given that you're resorting to a SQL script in the first place, there's no reason you can't also turn the output parameters into a regular result or record set. (The following uses T-SQL, although I think it's pretty generic.)
    declare @param1 int, param2 varchar(100), @return int;
    exec @return = proc @param1 = @param1 output, @param2 = @param2 output;
    select @param1 as param1, @param2 as param2;
    That is, to get from output parameters to a "regular" output from the SQL script isn't much of a leap...
    Jeff Prenevost
    BI Consultant
    Ann Arbor, MI

  • Passing parameter value back from Child region [BTF] to Parent

    Hello,
    I am using Jdev 11.1.1.6. I have a use-case where I need to pass value back from child taskflow to parent.
    Let me elaborate the use-case:
    I have a main page which is implemented as BTF with fragment. This main page contains a child region [again a BTF with fragment].
    I am passing a parameter value from parent page to it's region using taskflow input parameter. Now value for one of the parameter changes inside child/region taskflow and I need to make this value available to main page taskflow.
    This parameter is just pageFlowScope variable, so basically not coming from any VO.
    I know that taskflow can return value via return parameter but I don't know if that is true for taskflow implemented as region in a page.
    Is it possible to communicate the pageFlowScope variable value from child region to it's parent page?
    Thanks,
    Jai

    Hi Frank,
    I tried to follow steps mentioned in your post but encountered error that "The scope of the referenced object #{viewScope.parentBeanName} is shorter than referring object childBeanName"
    Let me explain what I did:
    1. Created a bean parentBeanName in viewScope
    2. Created another bean childBeanName in pageFlowScope
    3. In ChildBean.java, created a private property parentBeanProperty for Class [ParentBean] and generated the accessors
    4. Created a input parameter in region TF as:
    <input-parameter-definition id="__28">
          <name id="__27">parentBeanParam</name>
          <value>#{pageFlowScope.childBeanName.parentBeanProperty}</value>
          <class>ParentBean</class>
          <required/>
    </input-parameter-definition> 5. Since my mainPage contains child page as region. I added parameter to mainPageDef to pass it to child TF, like this
    <parameter id="parentBeanParam" xmlns="http://xmlns.oracle.com/adfm/uimodel"
                       value="#{viewScope.parentBeanName}"/>6. Introduced a client method in childBeanName that is called from UI. There I am retrieving parentBeanParam instance from pageFlowScope and call setter method of my variable inside ParentBean.java
    7. Ran the page but encountered the error.
    Did I miss something somewhere?
    Initially I got error where #{viewScope.parentBeanName} returned NULL due to parentBeanName not instantiated. I created a variable in mainPageDef with it's default value pointing to #{viewScope.parentBeanName.variableName}, which I guess will instantiate the bean in viewScope.
    After this I got error of shorter scope. It never reached to code in Step 6 during execution cycle.
    FYI - My application is based on UIShell and essentially a one page application. Main page referred above is also a jsff based on BTF. I hope, this should not affect this implementation but I thought of at least mention it.
    Thanks,
    Jai
    Edited by: Jai Om on Dec 18, 2012 2:38 PM

  • [cs3] Passing values back from "do javascript" to AS

    Hi folks,
    I am betting this has been discussed before but the search engine is batting a 0 today, so...
    I have an Applescript that needs to call Bridge and display a Script UI dialog. Easy enough even for a JS amateur like me and I have that part working well. However, I think I am missing something either in the JS itself or the way I am calling it from AS such that I get a value passed back into AS.
    My AS code is something like:
    set jsPath to alias "Path:To:Scripts:Folder:slugDialog.jsx"
    set slugDialogJSX to ""
    --Read the javascript
    set thisFile to open for access jsPath without write permission
    set slugDialogJSX to read thisFile
    close access thisFile
    --Do the javascript
    tell application "Bridge CS3"
        activate
        set jsResults to do javascript slugDialogJSX
    end tell
    --Process the results
    if jsResults ≠ "" then
        --would do stuff, but jsResults is always undefined!
    end if
    And loosely, my Javascript goes like:
    #target bridge
    var finalVal = metaSlugger();
    function metaSlugger() {
        // do stuff
        return someString;
    I suspect I simply need to do some final step to have the JS pass the value back, but I'm getting hung up on JS n00bness here.
    If I try "return finalVal" it complains that I am trying to return outside a function?
    Thanks in advance,
    Eric.

    Thanks for the suggestion.
    Well, as near as I can tell the "do javascript" will in no way, shape or form pass info back out to Applescript from Bridge, and I need to grab the long user name from system info there.
    To be honest, I was just trying to do a nice elegant dialog box with Bridge because Illustrator CS2 didn't know Script UI and I thought since everyone has CS3 Bridge on their machines already... But I've settled for 3 Applescript dialogs instead, so the fight is over.
    1.5 days tinkering with JS. 1.5 hours recoding in AS. Whee...

  • Pass date value back from called form

    I have a form that allows the user to select a date from a calendar canvas. I can call this form from another from and now want to pass the selected date on the called form back to the calling form. I'm new to multi-form applications so I'm looking for some guidence here. I am thinking a parameter list would be better than a global variable since globals only support char values. I've never done this before so any advice or examples would be helpful.
    Thanks in advance,
    Jeff

    Chander,
    Thanks for your reply. I think this is the .olb I am using. I created my calendar form using it or a similar .olb. The form runs OK, just lacks the means to pass the "date picked" to the calling form. This is where my inexperience is making things difficult. Assuming we are talking about the same olb, how do I pass the date back?
    Jeff

  • Passing Values back from Custom Tag

    I'm using custom tags, and I'm trying to pass back values to the JSP page from a tag which is iterating over values it gets from an Array. But for some reason I can't access the values.
    Here is the Tag:
    public class MemberHelper extends TagSupport implements IterationTag {
        private Iterator iterator;
        protected Tag parent;
        protected PageContext pageContext;
        public MemberHelper() {
            super();
        public void otherDoStartTagOperations() { 
            sfmember_prop_desc desc = new sfmember_prop_desc();
         ArrayList allt = new ArrayList();
         try {
                 allt = desc.GetAllCustom();
         } catch (java.sql.SQLException ex) {}
            if(allt.size() > 0)
             iterator = allt.iterator();

        public void otherDoEndTagOperations()  {
        public boolean shouldEvaluateRestOfPageAfterEndTag()  {
            return true;
        public int doStartTag() throws JspException, JspException {
           otherDoStartTagOperations();
           if (theBodyShouldBeEvaluated()) {
              return EVAL_BODY_INCLUDE;
           } else {
              return SKIP_BODY;
         public int doEndTag() throws JspException, JspException {
           otherDoEndTagOperations();
           if (shouldEvaluateRestOfPageAfterEndTag()) {
              return EVAL_PAGE;
           } else {
              return SKIP_PAGE;
        public int doAfterBody() throws JspException {
           if (theBodyShouldBeEvaluatedAgain()) {
              return EVAL_BODY_AGAIN;
           } else {
              return SKIP_BODY;

  • Calling JSP from Forms and going back from JSP to Forms

    Hi,
    We are calling JSP from Forms 6i using show_document
    I'd like to go back to tha calling Form from the JSP.
    How can I construct the URL that would lead me back to the same Form and Forms session where the JSP was called from?
    Thanks,
    Arpad

    Thanks Shay,
    works for me too...
    Now:
    when I use the "Back" button of my IE to go back from JSP to the Forms session, it works for Jinitiator 1.1.8.19, but if I use Jinitiator 1.3 I got hung...
    Any ideas how could I make it work from Jinit 1.3?
    Thanks again/
    Regards,
    Arpad

  • Search Help with more than one value back

    Dear Experts,
    We added two customer fields to the SC.
    For the first customer field we created Search Help.
    When picking any option from the search help we need TWO values back u2013 one value to the first customer (the field with the search help) and the second value to the second customer field (the field without the search help).
    Can you please advice how can we have TWO values back from the search help?
    Thanks in advance,
    Keren

    Hello Keren,
    See if the below thread answers your question..
    How to create a search help
    Thanks
    Arshad

  • Returning Error Status back from Form to external program

    Question,
    I am trying to run a form essentially from the command line. I need to programatically catch any error codes that might have occured in the form by an external program. I can find nothing about returning errors back from the form or how to display it.
    Any assistance is appreciated.
    Andy Hendrickson
    null

    Hello Andreas,
    Ah, sorry, there was so much talk about user decisions that I assumed you were using a standard decision task.
    Still, I would be extra careful of changing the way workflow usually works because you have an unknown target audience that are based on the standard.
    The standard SAP philosophy is quite simple: cancel/F3 or do nothing and it stays reserved. If you do not want it reserved, you need to perform an action. This is based on a majority of processes: in most cases when you execute a work item you will also be the one who is going to completed it. Replacing it is the lesser used of the two alternatives, therefore it is the only one that requires an action on the part of the user.
    Again, this is intended as constructive input. Strange quirks and unusual behaviour tend to add a black mark to software if they do not make things easier to use. In many environments users are not even aware of the reserve/replace business, so there you would be adding an additional layer of complexity.
    Personally I would find an exit popup annoying as a regular workflow user - regular decisions can be approved with one click, or I can back out with a single click if I need to make a phone call or look up some info before approving - but with this new-fangled thing I've got an extra button to click and an extra thing to think about. This is especially the case in a payment approval scenario where you may have users in some departments who may approve hundreds of payments each week.
    My suggestion would be to leave it like that. By all means put an option into the user decision to put it back or to 'un-reserve' it (and loop round if the user chooses it). That way you are adding value and not clicks.
    Cheers,
    Mike

  • Unable to detect any parameter in html (webresource) when value is passed from onload method of form

    Unable to detect any parameter in html (webresource) when value is passed from onload method of form
    I am trying out some stuff. For which I created a simple Entity. In the form of the entity I have added a simple web resource (html). And for the onload of the form I am calling the following function
    function HelpDeskActivityOnLoadhandler()
     var customParameters = encodeURIComponent("first=First Value&second=Second Value&third=Third Value");
        Xrm.Utility.openWebResource("tsi_scriptzz",customParameters);
    Here is the code for the  tsi_scriptzz.html
    <html>
     <body>
      <script type="text/javascript">
        var vals = new Array();
        if (location.search != "") {
         vals = location.search.substr(1).split("&");
         for (var i in vals) {
          vals[i] = vals[i].replace(/\+/g, " ").split("=");
      </script>
     </body>
    </html>
    MY PROBLEM IS -> location.search is always coming back with empty string. So, it not getting the parametrs I am passing from the load method of the form.
    Could someone kindly help me.
    Thanks,
    Hasib

    Hello, I tried it myself. I got a new_test.htm file and a new_test.js file. The loadWebResource function is called on the OnLoad event of an Entity.
    function loadWebResource()
    var params = encodeURIComponent('param1=value one&param2=value two&param3=value three');
    Xrm.Utility.openWebResource('new_test.htm', params);
    <html>
    <head>
    <title>Web Resource Parameter Example</title>
    <!-- Use ../ClientGlobalContext.js.aspx if your webresource is in a deeper folder on CRM -->
    <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>
    <script type="text/javascript">
    document.onreadystatechange = function () {
    if (document.readyState == 'complete') {
    var params = getParams();
    for(var i=0; i<params.length; i++)
    log(params[i].name + ' ' + params[i].value);
    // this functions puts the params in a 'dictionary format'
    // f.e params[0].name = param1 & params[0].value = 'value one'
    // You could customize this function or find some on the internet to retrieve a param fe by name...
    // This is just an example how to get the name and values
    function getParams(){
    var params = [];
    var querystring = Xrm.Page.context.getQueryStringParameters().Data;
    var querystringparts = querystring.split('&');
    for(var i=0; i<querystringparts.length;i++)
    var split = querystringparts[i].split('=');
    params.push({
    name: split[0],
    value: split[1]
    </script>
    </head>
    <body>
    </body>
    </html>
    Hope it helps now. Kind Regards

  • How to go back from SHOW form to RENDERLIST form in XML forms ?

    Hi All,
        I want to know the value of hyperlink property of the label of Show form in order to go back from Show form to Renderlist Form. Its Urgent ..... Plz reply ASAP if anybody knows about it.

    HI Sweta ,
    Havent worked much on this but can refer.
    /thread/4878 [original link is broken]
    /thread/100920 [original link is broken]
    XML Forms - How to render a sequence node?????
    /thread/240057 [original link is broken]
    /thread/147252 [original link is broken]
    /thread/189120 [original link is broken]
    Thanx
    Pankaj

  • ADF- search get the value back to the edit form

    I am trying to do a search on one inputtext field from an Edit frm. After the selection in the search dialog page, when I set the value back to the edit form it does not set like a value. it sets like an object.
    the value of the field comes like - view.managedbean.myBean@5571b0
    It should have been "333164"
    I have followed the following link in doing this -http://www.oracle.com/technology/pub/articles/gauchman-lov.html
    the code for the searchbean and the edit bean are as follows
    //on the serachbean
    public void returnObject(ActionEvent actionEvent) {
    JUCtrlValueBindingRef selectedRowData= (JUCtrlValueBindingRef)getSearchResultsTable().getSelectedRowData();
    if (selectedRowData==null){
    AdfFacesContext.getCurrentInstance().returnFromDialog(null,null);
    return;
    // Get JobTitle and Salary of selectedRow
    oracle.jbo.domain.Number oracleJbosearchID = (oracle.jbo.domain.Number)selectedRowData.getRow().getAttribute("myId");
    myID = new Integer(oracleJbosearchID.bigIntegerValue().intValue());
    setMyID(myID);
    AdfFacesContext.getCurrentInstance().returnFromDialog(this,null);
    //on the edit bean
    public void handleReturn(ReturnEvent returnEvent) {
    MyBean myBean = (MyBean)returnEvent.getReturnValue();
    if (myBean==null)return;
    Integer myID = myBean.getMyID();
    getMyID().setSubmittedValue(null);
    getMyID().setValue(myID);
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.addPartialTarget(getMyID());
    Any help would be appreciated
    Thanks

    Hi,
    the following line
    AdfFacesContext.getCurrentInstance().returnFromDialog(this,null);
    returns an instance of the managed bean, which for the example of a return value is an overkill to do. Please have a look at
    http://download-uk.oracle.com/docs/html/B25947_01/web_complex003.htm#CEGDHIGB
    for how to use dialogs. It explains how to return an simple object and how to return a collection (e.g. in a Hashmap)
    Frank

  • Returning attribute values from Workflow to a Form

    Hi,
    I have a workflow action that returns an object. I would like to pass this object a form, via a manual action, and get the values for the object. My form has a base context of variables.user. I have attempted to get the object from the workflow by using the :, semi colon however this isn't working.
    Any help will be appreciated.
    CK

    Solved this by using a rule to call the required methods on the object and set the user.xxxx attribute accordingly.
    It's easy when you know how!
    CK

  • How can i pass the value one from to another form?

    hi all
    how can i pass the value one from to another form  with out use it when ever i want to needed this value that ican useit?
    like i have two fields U_test1 and U_test2  table name @AUSR
    that i have  four form  A! , A2,A3,A4    please tell me in details....?

    Hi,
    U can assign the values to some variables and access then in ur required forms.
    Vasu Natari.

  • How to get the value from another report Customizes Form

    Dear all,
    I create a report such as
    select * from mytable.table1
    where field1 = :bind_variable
    I create a menu to run this Customized Form and user have to select the bind_variable values. So I have another report created which also want this bind_variable as it WHERE Clause. But I don't want my user to key the same bind variable twice. They can just same the Customized Form and run for both report.
    Could anybody know how to get the bind_variable on 1st report and used by the 2nd report.
    Thank you very much.
    Best Rgds,
    SL Voon

    Hi,
    are you on BI7.0? There you can create variables type replacement path and get the value out from a different variable without any coding.
    regards
    Cornelia

Maybe you are looking for

  • Help, files not opening correctly in Illustrator

    Hi there, I have a file that was originally created in CorelDrawX5 as both a dwg and pdf. I have opened both in Illustrator CS6 and they work fine. I then saved it as an eps and ai for my supplier to work from, they have Illustrator 10 so I made sure

  • My iphone 4 wont open the messaging app

    I recently got a text message, but I try to open the messaging app and it will try to open then it will kick me out

  • How do I change device name after connecting to old machine?

    That's right, I've gone ahead and connected my new power book to my old dual G5 in order to get the information onto the new machine. Now, my new machine has my Dual G5 name as it's device name. How can I change this so my power book has the correct

  • Transfer Price of Profit Centre

    I am trying to activate the Transfer price setting for the Profit Centre.  We have one controlling area with currency INR.  I have made the settings for Profit Centre account with currency type 20 (controlling area currency-INR) with valuation view (

  • Interactive web search in movie

    Hi I was wondering if anyone knows if I can have a link to an URL and have the web page open in the captivate screen and still be able to have instructive text at the bottom of the page. I have tried to do this with a click box and each time it opens