Copy Input parameter

Hi folks,
I have this problem where a "copy input" seems to copy
the service object too.
The case is that I have a service object, say
batchmgrso, for batch processing and an object, say
batchproc, as the process. The batchproc has an
attribute for referencing the batchmgrso as it will
create some other process and submit it to the
batchmgrso.
The problem is whenever a batchproc fails and the
batchmgrso tries to re-submit the object from the
queue, and I use a copy input as the mechanism for
passing in the batchproc to the service object, I can
find that not only does the batchproc get cloned, but
also the batchmgrso. It caused a lot of problem and
bombed the method.
When I changes the mechanism to just input in the
method signature, everything works fine.
So is it a forte feature/bug that a copy input would
clone something so "deeply" that even a SO or archored
object would get clone too. Is there any way to avoid
it?
Regards,
Peter Sham.
=====

Hi folks,
I have this problem where a "copy input" seems to copy
the service object too.
The case is that I have a service object, say
batchmgrso, for batch processing and an object, say
batchproc, as the process. The batchproc has an
attribute for referencing the batchmgrso as it will
create some other process and submit it to the
batchmgrso.
The problem is whenever a batchproc fails and the
batchmgrso tries to re-submit the object from the
queue, and I use a copy input as the mechanism for
passing in the batchproc to the service object, I can
find that not only does the batchproc get cloned, but
also the batchmgrso. It caused a lot of problem and
bombed the method.
When I changes the mechanism to just input in the
method signature, everything works fine.
So is it a forte feature/bug that a copy input would
clone something so "deeply" that even a SO or archored
object would get clone too. Is there any way to avoid
it?
Regards,
Peter Sham.
=====

Similar Messages

  • FW: (forte-users) Copy Input parameter

    Peter,
    That is the behaviour that I have experienced also, so I do not have such
    (anchored service object) attributes in my classes anymore but instead add
    that service object attribute as an input parameter to all methods in that
    class that require access via that service object attribute.
    Alternatively, if access to that anchored service object is only required
    in the partition that it was created then overriding the Clone method of
    the class to return a NIL value in the service object attribute should
    work for you.
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 05:33
    To: Forte User Group
    Subject: (forte-users) Copy Input parameter
    Hi folks,
    I have this problem where a "copy input" seems to copy
    the service object too.
    The case is that I have a service object, say
    batchmgrso, for batch processing and an object, say
    batchproc, as the process. The batchproc has an
    attribute for referencing the batchmgrso as it will
    create some other process and submit it to the
    batchmgrso.
    The problem is whenever a batchproc fails and the
    batchmgrso tries to re-submit the object from the
    queue, and I use a copy input as the mechanism for
    passing in the batchproc to the service object, I can
    find that not only does the batchproc get cloned, but
    also the batchmgrso. It caused a lot of problem and
    bombed the method.
    When I changes the mechanism to just input in the
    method signature, everything works fine.
    So is it a forte feature/bug that a copy input would
    clone something so "deeply" that even a SO or archored
    object would get clone too. Is there any way to avoid
    it?
    Regards,
    Peter Sham.
    =====
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]

    Peter,
    That is the behaviour that I have experienced also, so I do not have such
    (anchored service object) attributes in my classes anymore but instead add
    that service object attribute as an input parameter to all methods in that
    class that require access via that service object attribute.
    Alternatively, if access to that anchored service object is only required
    in the partition that it was created then overriding the Clone method of
    the class to return a NIL value in the service object attribute should
    work for you.
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 05:33
    To: Forte User Group
    Subject: (forte-users) Copy Input parameter
    Hi folks,
    I have this problem where a "copy input" seems to copy
    the service object too.
    The case is that I have a service object, say
    batchmgrso, for batch processing and an object, say
    batchproc, as the process. The batchproc has an
    attribute for referencing the batchmgrso as it will
    create some other process and submit it to the
    batchmgrso.
    The problem is whenever a batchproc fails and the
    batchmgrso tries to re-submit the object from the
    queue, and I use a copy input as the mechanism for
    passing in the batchproc to the service object, I can
    find that not only does the batchproc get cloned, but
    also the batchmgrso. It caused a lot of problem and
    bombed the method.
    When I changes the mechanism to just input in the
    method signature, everything works fine.
    So is it a forte feature/bug that a copy input would
    clone something so "deeply" that even a SO or archored
    object would get clone too. Is there any way to avoid
    it?
    Regards,
    Peter Sham.
    =====
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]

  • RE: (forte-users) Copy Input parameter

    Peter,
    Just a quick response before I prepare a code sample for you.
    Unfortunately, we pay for our sins as a true cloning operation has to take
    into account the (potentially) recursive nature of an object graph and
    effectively has to do the equivalent of serialising an object graph (as in
    parameter passing to remote methods) without going into an infinite loop
    when the object graph recurses back into itself.
    The Forte runtime does this quite nicely but if you wish to change its
    default behaviour, it's a bit of hard work but it's achievable.
    So you need to decide. Is it worth it?
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 07:20
    To: EMMI, Mario
    Cc: '[email protected]'
    Subject: RE: (forte-users) Copy Input parameter
    Hi,
    Interesting solution!
    Just to clarify further. How exactly would you
    over-write the clone method. New the object and then
    clone all the attributes of the existing object to the
    new object, excluding whatever attribute you think is
    appropriate?
    Regards,
    Peter Sham.
    --- "EMMI, Mario" <[email protected]> wrote:
    Peter,
    That is the behaviour that I have experienced also,
    so I do not have such
    (anchored service object) attributes in my classes
    anymore but instead add
    that service object attribute as an input parameter
    to all methods in that
    class that require access via that service object
    attribute.
    Alternatively, if access to that anchored service
    object is only required in
    the partition that it was created then overriding
    the Clone method of the
    class to return a NIL value in the service object
    attribute should work for
    you.
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 05:33
    To: Forte User Group
    Subject: (forte-users) Copy Input parameter
    Hi folks,
    I have this problem where a "copy input" seems tocopy
    the service object too.
    The case is that I have a service object, say
    batchmgrso, for batch processing and an object,say
    batchproc, as the process. The batchproc has an
    attribute for referencing the batchmgrso as itwill
    create some other process and submit it to the
    batchmgrso.
    The problem is whenever a batchproc fails and the
    batchmgrso tries to re-submit the object from the
    queue, and I use a copy input as the mechanism for
    passing in the batchproc to the service object, Ican
    find that not only does the batchproc get cloned,but
    also the batchmgrso. It caused a lot of problemand
    bombed the method.
    When I changes the mechanism to just input in the
    method signature, everything works fine.
    So is it a forte feature/bug that a copy inputwould
    clone something so "deeply" that even a SO orarchored
    object would get clone too. Is there any way toavoid
    it?
    Regards,
    Peter Sham.
    =====
    For the archives, go to:
    http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. Tounsubscribe, send in a new
    email the word: 'Unsubscribe' to:
    [email protected]
    =====
    Do You Yahoo!?
    Bid and sell for free at http://auctions.yahoo.com

    Mario,
    Well. There're 2 ways that I can do it. Avoid copy
    input as much as possible ( in fact, I hate copy input
    ) or code my own clone method.
    Coding my own clone method should be a better
    solution. So if you have time, please please descibe
    it.
    Thanks for all the troubles. Regards,
    Peter Sham.
    --- "EMMI, Mario" <[email protected]> wrote:
    Peter,
    Just a quick response before I prepare a code sample
    for you.
    Unfortunately, we pay for our sins as a true cloning
    operation has to take
    into account the (potentially) recursive nature of
    an object graph and
    effectively has to do the equivalent of serialising
    an object graph (as in
    parameter passing to remote methods) without going
    into an infinite loop
    when the object graph recurses back into itself.
    The Forte runtime does this quite nicely but if you
    wish to change its
    default behaviour, it's a bit of hard work but it's
    achievable.
    So you need to decide. Is it worth it?
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 07:20
    To: EMMI, Mario
    Cc: '[email protected]'
    Subject: RE: (forte-users) Copy Input parameter
    Hi,
    Interesting solution!
    Just to clarify further. How exactly would you
    over-write the clone method. New the object andthen
    clone all the attributes of the existing object tothe
    new object, excluding whatever attribute you thinkis
    appropriate?
    Regards,
    Peter Sham.
    --- "EMMI, Mario" <[email protected]> wrote:
    Peter,
    That is the behaviour that I have experienced
    also,
    so I do not have such
    (anchored service object) attributes in myclasses
    anymore but instead add
    that service object attribute as an inputparameter
    to all methods in that
    class that require access via that serviceobject
    attribute.
    Alternatively, if access to that anchoredservice
    object is only required in
    the partition that it was created thenoverriding
    the Clone method of the
    class to return a NIL value in the serviceobject
    attribute should work for
    you.
    Mario Emmi
    British Aerospace Australia
    -----Original Message-----
    From: Peter Sham [SMTP:[email protected]]
    Sent: Thursday, 28 October 1999 05:33
    To: Forte User Group
    Subject: (forte-users) Copy Input parameter
    Hi folks,
    I have this problem where a "copy input" seems
    to
    copy
    the service object too.
    The case is that I have a service object, say
    batchmgrso, for batch processing and an
    object,
    say
    batchproc, as the process. The batchproc has
    an
    attribute for referencing the batchmgrso as itwill
    create some other process and submit it to the
    batchmgrso.
    The problem is whenever a batchproc fails and
    the
    batchmgrso tries to re-submit the object fromthe
    queue, and I use a copy input as the mechanismfor
    passing in the batchproc to the serviceobject, I
    can
    find that not only does the batchproc get
    cloned,
    but
    also the batchmgrso. It caused a lot of
    problem
    and
    bombed the method.
    When I changes the mechanism to just input in
    the
    method signature, everything works fine.
    So is it a forte feature/bug that a copy inputwould
    clone something so "deeply" that even a SO orarchored
    object would get clone too. Is there any way
    to
    avoid
    it?
    Regards,
    Peter Sham.
    =====
    For the archives, go to:
    http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. Tounsubscribe, send in a new
    email the word: 'Unsubscribe' to:
    [email protected]
    =====
    =====

  • Trying to get the input parameter of a web service fxn based on table value

    Hello--
    I am new to ADF and Jdev 11g (I am a forms developer). I had created a web service from a pl/sql stored db package. I can successfully execute a function with an input parameter from ADF Faces.
    Instead of the input parameter being enterable by the user, I would like it to be based on a selected ADF table column value. How would I correlate the selected row column value as the function input parameter?
    I played with an ADF output text based on the ADF table column with the PartialTriggers value set to the ADF table...which updates the output text based on the column selected. Do I use some sort of partial trigger on the input parameter?
    From a forms point of view, I am looking for the "Copy Value from Item" property :)

    Hi,
    Not sure if this would help you.
    But if your table is bound to a ViewObject, it will be easier to get the current selection.
    Supose your table is bound to iterator1.
    In your backBean code:
    DCBindingContainer dcBindings = (DCBindingContainer)getBindings();
    DCIteratorBinding iterator =dcBindings.findIteratorBinding("iterator1");
    Row row = iterator.getCurrentRow();
    Object selectedValue = row.getAttarbute(<value of the column you are looking for>);
    public BindingContainer getBindings() throws Exception {
    try {
    if (this.bindings == null) {
    FacesContext fc = FacesContext.getCurrentInstance();
    this.bindings =
    (BindingContainer)fc.getApplication().evaluateExpressionGet(fc,
    "#{bindings}",
    BindingContainer.class);
    return this.bindings;
    } catch (Exception ex) {
    displayMessage("Error occurred. Please contact your IT Adminstrator.");
    return this.bindings;
    Let me know if this helps.
    -Makrand

  • Log Error : Invalid Input Parameter %s for every SAP B1 Client

    Hi Everybody,
    in my company we have performed SAP B1 upgrade from 2007A to 8.81 PL07, in two steps upgrading first to PL04.
    Everything is working fine for all our clients, we are able to post and work normally with the system.
    The only annoying problem is an error message coming up every minute for every client in the log:
    SQLMessage       Error              I     Technical     Invalid input parameter: %s # #     MID=-1     BOID=-1     BO=     UserID=manager     C:\Program Files (x86)\SAP\SAP Business One\SAP Business One.exe     Version=8.81.315     Area=     PID=1316     TID=4340     D:\depot\BUSMB_B1\8.8_SP1_REL\SBO\8.8_SP1_REL\Application\__Engines\DBM\__DBMC_DataBase.cpp     9547
    I couldn't find anything regarding this topic in the forum, only one similar post but unanswered.
    We are using two server: one for the licence server and one for the database (the database server is clustered)
    Does anyone have any idea about this? Has it ever happened to anybody?
    Thanks for your help

    Hi Julie,
    it must be a triggered action from the system. The only problem is that log files grow very big, few mb every day, and it is a situation that's not very ideal. And also i don't want to turn them off because it is always a good resource for other errors.
    It is very strange that SAP hasn't noticed this behaviour and there isn't any note available for the purpose.
    Thanks for your help

  • Error while trying to choose query parameter Inconsistent input paramete

    I got error on PRD while trying to choose parameter before executing BEX query:
    101 Inconsistent input parameter (parameter: <unknown>, value <unknown>)
    100 Program error in class SAPMSYY1 method: UNCAUGHT_EXCEPTION
    Notes:
    the same functionality works fine in DEV environment.
    the other parameters on query in PRD work fine
    the parameter  with error based on custom hierarchy
    P.S. I heart BEx :]

    Hello,
    This problem has been solved before with notes 1236774, 1151320 & 1264213.
    Please check.
    Thanks,
    Michael

  • Build error: an input parameter is invalid

    I am looking for help with a build error. I am getting the following error message when I try to build a project in 8.5.1:
    Error 1 occurred at Open VI Reference in AB_Source_VI.lvclasspen_Reference.vi->AB_Build.lvclass:Copy_Files.vi->​AB_Application.lvclass:Copy_Files.vi->AB_Build.lvc​lass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_​Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.P​roxyCaller
    Possible reason(s):
    LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488:  Command requires GPIB Controller to be Controller-In-Charge.
    VI Path:
    Tom Rhoads
    Goodrich FUS
    Vergennes, Vermont

    Arducopter:
    Did you check to see if the KB Hunter posted resolves the issue?
    If you're opening a project in a newer version of LabVIEW, then there's a chance the mass compile tool might work. It will open and save all of the VIs within a specified folder. The tool is fairly self-explanatory, and you can access it from within LabVIEW by going to "Tools --> Advanced --> Mass Compile..."
    Good luck!
    Caleb Harris
    National Instruments | Mechanical Engineer | http://www.ni.com/support

  • Crystal Report with text(csv) data file, can we set it as input parameter?

    Hi,
    I am a new user of Crystal Reports 2008.
    I have created a report with charts in it. The input data comes from a csv text file.
    Can I set the name of this text file as an input parameter?
    as I need to generate 44 similar reports with different text filenames(and data)?
    Thank you.
    Regards

    Brian,
    Thanks much.
    I did exactly what you said.
    Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
    but I got an error saying report not found.
    Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
    Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
    It ended up generating the report.
    Now here is what I think is happening,
    1) The save data in report option seems to be still on even though I have turned it off in 2 locations
    a) file -> Report Options
    b) file -> Options -> Reporting tab.
    2) For some reason the logoninfo is getting ignored as well.
    Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
    Crystal Report with text(csv) data file, can we set it as input param? C#
    and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
    But the link he gave me tells me to try the same thing that we have been trying..
    Here is my plan,
    1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
    2) why is LogonInfo getting ignored.
    Meanwhile any suggestions from anyone are welcome.

  • How to disabled the input parameter dialog box in crystal reports 9

    Post Author: Murtaza
    CA Forum: General
    Hi friends,I have got stuck with a weird problem.  In my
    crystal report, I have set up some input parameters.  I am setting
    values for these parameters somewhere inside code.  But I don't
    want to show the default input parameter dialog box. Under any case,
    user should not see the ugly parameter dialog box that crystal
    presents.   Please suggest me how I can achieve
    this.  I cannot do this through code, because our environment does
    not allow that.  I have to do this in crystal reports viewer and
    by setting some property of the crystal report object. But everything
    must be done on UI, not through code. So, the solution should not be the following. 
    // step before step 1
    // **** the line needs to refer to the report and be set before setting
    ReportSource in the viewer to myReport
    myReport.EnableParameterPrompting = False
    Any help would be greatly appreciated.  Murtaza

    Post Author: sleahcim
    CA Forum: General
    Hi Murtaza,
    Unfortunately, I am not aware of any method to suppress the prompt for the input parameters, but still use them.  It is truly a design-related issue for the report.  The reason that the prompt appears is because the parameter it is prompting for is used in the report; in particular either the Group or Record Selection, or referenced in another formula.
    The only way I can think of to not show the prompt, is to not use the parameter in the report.  You did mention that you are setting the value of the parameter inside of the report -- are you doing this through using a formula?  Perhaps you can just remove the parameter and only use the formula that you are setting the default values with.
    -Michael

  • Passing multiple values to a single input parameter

    Hi folks,
    I have a Microstrategy query successfully passing input parameter to a calculation view.  For example I can pass a movement type to a material movements calculation view input parameter.  However if I try to pick more than one movement type the query then fails; 
    Generated SQL that works looks like this;
    select
    sum(a11.TOTALQUANTITY)  WJXBFS1
    from
    "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"
    ('PLACEHOLDER' = ('$$MoveType$$', '101')
    a11
    When choosing more than one value in Microstrategy the SQL now fails and looks like this;
    select
    sum(a11.TOTALQUANTITY)  WJXBFS1
    from
    "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"
    ('PLACEHOLDER' = ('$$MoveType$$', '101'),
    'PLACEHOLDER' = ('$$MoveType$$', '103'))
    a11
    If I cut and paste the SQL and run directly in HANA studio the error is;
    Could not execute 'select sum(a11.TOTALQUANTITY) WJXBFS1 from "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER" ...' in 66 ms 361 µs .
    SAP DBTech JDBC: [2048]: column store error: search parameter error:  [2018] A received argument has an invalid value;TABLE/VIEW parameter: ( 'PLACEHOLDER'='$$MoveType$$, 103') not supported
    Is it possible to pass multiple values in a single parameter?  I'm using SP67 for this test.
    Thanks,
    -Patrick

    Ravi, also to answer one of your questions about how this will work in Microstrategy; I just heard back from my Microstrategy developer and he is trying MSTR Freeform SQL query with syntax like this;
    select (sumPAR_TEST.TOTALQUANTITY TOTALQUANTITY
    from "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"
    ('PLACEHOLDER' =('$$MoveType$$', '[Movement Type]')) PAR_TEST
    In this example [Movement Type] is the microstrategy prompt.  Unfortunately though it translates like this which is missing extra single quotes around each value;
    select     sum(PAR_TEST.TOTALQUANTITY)  TOTALQUANTITY
    from     "_SYS_BIC"."development.pr1959/CA_TEST_PASS_PARAMETER"
    ('PLACEHOLDER' = ('$$MoveType$$', ''101', '102''))   PAR_TEST
    instead of what we need which is;
    ('PLACEHOLDER' = ('$$MoveType$$', '''101'', ''102'''))   PAR_TEST
    So at this point we are not sure if this will be possible or not.
    -Patrick

  • Creating a job for a procedure with an input parameter

    Hi,
    I want to create a job for a procedure ( sp_proc ) with a input parameter.
    The input parameter is a date value.
    As per the syntax for dbms_job.submit procedure;
    dbms_job.submit (
    job IN BINARY_INTEGER,
    what IN VARCHAR2,
    next_date IN DATE,
    interval IN VARCHAR2 DEFAULT 'NULL',
    no_parse IN BOOLEAN DEFAULT FALSE);
    How should the procedure be declared in the 'what' parameter of the dbms_job.submit procedure ?
    Please guide.
    Thanks.

    Hi,
    You are wright, I have found this thread [DBMS_JOB -- how to pass parameters to the job|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:351033761220].
    Regards,

  • How can I pass dynamic value as a user input parameter in discoverer?

    Hi,
    I have a requirement for a discoverer report like this: The report will display only details for Suppliers that have expired (or soon to be) Insurance details. That is the Expiration Date is less than or equal to the day the report is being run plus any days specified in the Number of Days in the Future Parameter.
    The sample code as:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    AND pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>
    order by pca.expiration_date asc
    Now the parameter is Number of Days in the Future (Enter the number days in the future to extract the data. This will default to 0).
    Is it possible in discoverer to do so as in query i do that like a condition as pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>.
    How can I pass <No. of Days in the Future> as a user input parameter in discoverer?
    Please help.

    Hi,
    All you need to do is to create the condition in the discoverer instead of in the query.
    Create a custom folder containing the following sq (note that i removed the condition)l:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    Then create a discoverer report using this folder using all fields.
    Create a new calculation as (use this exact syntax):
    Sysdate + :No_of_Days_in_the_Future
    Create a new condition:
    pca.expiration_date <= <your calculation>
    To complete it add a sort as you did in the SQL.
    That's it.
    Tamir

  • Need Help-How Store the input parameter through java bean

    Hello Sir,
    I have a simple Issue but It is not resolve by me i.e input parameter
    are not store in Ms-Access.
    I store the input parameter through Standard Action <jsp:useBean>.
    jsp:useBean call a property IssueData. this property exist in
    SimpleBean which create a connection from DB and insert the data.
    At run time servlet and server also show that loggging are saved in DB.
    But when I open the table in Access. Its empty.
    Ms-Access have two fields- User, Password both are text type.
    Please review these code:
    login.html:
    <html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>LoginServlet.java:
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String user=request.getParameter("user");
    String pass=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setUserName(user);
    st.setPassword(pass);
    request.setAttribute("user",st);
    request.setAttribute("pass",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }SimpleBean.java:
    package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String user="";
    private String pass="";
    private String s="";
    public String getUserName() {
    return user;
    public void setUserName(String user) {
    this.user = user;
    public String getPassword() {
    return pass;
    public void setPassword(String pass) {
    this.pass = pass;
    public String getIssueData() //method that create connection with database
    try
    System.out.println("Printed*************************************************************");
    getUserName();
    getPassword();
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("Loading....");
    Connection con=DriverManager.getConnection("jdbc:odbc:simple");
    System.out.println("Connected....");
    PreparedStatement st=con.prepareStatement("insert into Table1 values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String User=getUserName();
    st.setString(1,User);
    String Password=getPassword();
    st.setString(2,Password);
    st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s=  "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }submit.jsp:
    This is Submit page
    <html><body>
    Hello
    Student Name: <%= ((co.SimpleBean)request.getAttribute("user")).getUserName() %>
    <br>
    Password: <%= ((co.SimpleBean)request.getAttribute("pass")).getPassword() %>
    <br>
    <jsp:useBean id="st" class="co.SimpleBean" scope="request" />
    <jsp:getProperty name="st" property="IssueData" />
    </body></html>web.xml:<web-app>
    <servlet>
    <servlet-name>one</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>one</servlet-name>
    <url-pattern>/tmp</url-pattern>
    </servlet-mapping>
    <jsp-file>issue.jsp</jsp-file>
    <jsp-file>submit.jsp</jsp-file>
    <url-pattern>*.do</url-pattern>
    <welcome-file-list>
    <welcome-file>Login.html</welcome-file>
    </welcome-file-list>
    </web-app>Please Help me..Thanks.!!!
    --

    Dear Sir,
    Same issue is still persist. Input parameter are not store in database.
    After follow your suggestion when I run this program browser show that:i.e
    This is Submit page Hello Student Name: vijay
    Password: kumar
    <jsp:setProperty name="st" property="userName" value="userValue/> Your logging is saved in DB
    Please review my code.
    login.html:
    {code}<html>
    <head>
    <title>A simple JSP application</title>
    <head>
    <body>
    <form method="get" action="tmp" >
    Name: <input type="text" name="user">
    Password: <input type="password" name="pass">
    <input type="Submit" value="Submit">
    </form>
    </body>
    </html>{code}
    LoginServlet.java:
    {code}import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException{
    try
    String userValue=request.getParameter("user");
    String passValue=request.getParameter("pass");
    co.SimpleBean st = new co.SimpleBean();
    st.setuserName(userValue);
    st.setpassword(passValue);
    request.setAttribute("userValue",st);
    request.setAttribute("passValue",st);
    RequestDispatcher dispatcher1 =request.getRequestDispatcher("submit.jsp");
    dispatcher1.forward(request,response);
    catch(Exception e)
    e.printStackTrace();
    }{code}
    SimpleBean.java:
    {code}package co;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class SimpleBean {
    private String userValue="";
    private String passValue="";
    private String s="";
    public String getuserName() {
    return userValue;
    public void setuserName(String userValue) {
    this.userValue = userValue;
    public String getpassword() {
    return passValue;
    public void setpassword(String passValue) {
    this.passValue= passValue ;
    public String getissueData() //method that create connection with database
    try
    System.out.println("Printed*************************************************************");
    getuserName();
    getpassword();
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Connection loaded");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@VijayKumar-PC:1521:XE","SYSTEM","SYSTEM");
    System.out.println("Connection created");
    PreparedStatement st=con.prepareStatement("insert into vij values(?,?)");
    System.out.println("~~~~~~~~~~~~~~~~~~~~");
    String userName=getuserName();
    st.setString(1,userName);
    String password=getpassword();
    st.setString(2,password);
    st.executeUpdate();
    System.out.println("Query Executed");
    con.close();
    s= "Your logging is saved in DB ";
    System.out.println("Your logging is saved in DB *****************");
    return(s);
    catch(Exception e)
    e.printStackTrace();
    return "failed";
    }{code}
    submit.jsp:
    {code}This is Submit page
    <html><body>
    Hello
    Student Name: <%= ((co.SimpleBean)request.getAttribute("userValue")).getuserName() %>
    <br>
    Password: <%= ((co.SimpleBean)request.getAttribute("passValue")).getpassword() %>
    <br>
    <jsp:useBean id="st" class="co.SimpleBean" scope="request" />
    <jsp:setProperty name="st" property="userName" value="userValue/>
    <jsp:setProperty name="st" property="password" value="passValue"/>
    <jsp:getProperty name="st" property="issueData" />
    </body></html>web.xml:<web-app>
    <servlet>
    <servlet-name>one</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>one</servlet-name>
    <url-pattern>/tmp</url-pattern>
    </servlet-mapping>
    <jsp-file>submit.jsp</jsp-file>
    <url-pattern>*.do</url-pattern>
    <welcome-file-list>
    <welcome-file>Login.html</welcome-file>
    </welcome-file-list>
    </web-app>Sir I can't use EL code in jsp because I use weblogic 8.1 Application Server.This version are not supported to EL.
    Please help me...How store th input parameter in Database through Java Bean                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Input Parameter Mapping is not working in Sap HANA

    Hi, We created on ANALYTICAL view(A) with Input Parameters, on top of Analytical view created one Calculation view(B) and mapped Calculation view input parameter with Analytical view input paramter and its working fine. Finally we created one more calculation view on top existing calculation view(B) and mapped with corresponding input parameters. Input parameter mapping is working fine in between A(analytical view) and --------> B (first Calc view) but input parameter mapping is not working properly in between B(first Calc View)-----------C(second Calc View). it is giving all data whatever is coming from Calc View B. Kindly help us to resolve this.

    Hi,
    Write c in small for Command,
    theButton.mappingOfOnAction().addParameter("command","Save");
    Regards,
    Murtuza

  • Error while setting input parameter for dynamic process - GP

    Hi All,
    I am using CAF 7.1 GP.
    Here I have to start a process dynamically and it is working fine.
    But, when I tried to set value for input parameter of this process by
    IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
    params.setAttributeValue("Val","MyValue");
    ( <b>Val</b> is the name of grouped input parameter ), it is giving
    com.sap.caf.eu.gp.exception.api.GPInvocationException: Structure with name input and namespace http://wwww.sap.com/nw/eup/gp does not have an attribute with name Val and namespace null.
    But no where I have mentioned http://wwww.sap.com/nw/eup/gp.
    I dont have any structures in my input and output.
    Here is my full code
           try
                IGPProcess process = null;
                IUser tl_user =UMFactory.getUserFactory().getUserByLogonID("fahad");
                     IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(tl_user);//, user.getLocale());
                     process =GPProcessFactory.getDesigntimeManager().getActiveTemplate("F5D76840A56F11DC983B001966243CAD",userContext);
                     wdComponentAPI.getMessageManager().reportSuccess("Title of process is "+process.getTitle());
                     IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
                     IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
                     int rolenum = process.getRoleInfoCount();
                     wdComponentAPI.getMessageManager().reportSuccess("Number is "+rolenum);
                     IGPProcessRoleInstance roleInstance=null;
                     IUser ho_User=null;
                     for (int i = 0; i < rolenum; i++)
                             wdComponentAPI.getMessageManager().reportWarning("Role Text is "process.getRoleInfo(i).getText()"  Role Name is "+process.getRoleInfo(i).getRoleName());
                             if(i==1)
                                  ho_User = UMFactory.getUserFactory().getUserByLogonID("poornendu");
                                  roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                                  roleInstance.addRuntimeDefinedUser(ho_User);
                                  roles.addProcessRoleInstance(roleInstance);
                             if(i==2)
                                  ho_User = UMFactory.getUserFactory().getUserByLogonID("fahad");
                                  roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                                  roleInstance.addUser(ho_User);
                                  roles.addProcessRoleInstance(roleInstance);
                     wdComponentAPI.getMessageManager().reportSuccess(""+process.getStructure().getItemCount());
                     IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
                     wdComponentAPI.getMessageManager().reportSuccess("Title of process is "+process.getTitle());
                     <b>params.setAttributeValue("Val","MyValue");</b>                     
                     String pName=wdContext.currentContextElement().getProcessName();
                     IGPProcessInstance prInstance = rtm.startProcess(process,pName,"This process has been started using the GP public API",tl_user,roles,params,tl_user);
           catch(Exception e)
                wdComponentAPI.getMessageManager().reportException(""+e);
    Can anyone help me on this.
    Thanks,
    Fahad Hamsa

    Hi Experts,
    I solved it myself.
    The problem was, I have to make the input parameter as exposed. Thats all
    Anyway, thanks for the support.
    Regards,
    Fahad Hamsa

Maybe you are looking for

  • Itunes no longer asks for password on new purchases since updating to iOS 6

    Since updating iOS to version 6, and updating my Mac to 10.8.2 I am no longer asked to input my password on new purchases and can't see anywhere to re-enable that, it used to be set to request after 15 minutes of inactivity. If this has been taken aw

  • Error while creating new Scheduling for scenarios in ODI

    Hi Experts, Good Morning. I am facing with the below error : ODI-23037: To use scheduling please associate a Logical Agent to a Physical Agent via the Logical Architecture Accordion in the Topology Navigator. But, when i try to create the logical age

  • Change date format & Fill automatically portal user ID ?

    Hello,       I have imported a Module to Visual Composer from a backend system. I have 4 input parameter's. Two of them are of type date. 1] When ever I am entering a date in mm/dd/yyyy format, it is automatically getting converted into mm.dd.yyyy wh

  • Version comparison

    Hi experts - is there a way to compare different versions of the same workflow?  I'm familiar with displaying the different versions, but I'm interested in having a side-by-side comparison between versions, much as we can with ABAP code.  Thanks for

  • Accessing BTMM via Apple ID

    Mac A has BTMM enabled. Also enabled is the ability to access via apple id. In order to enable this it was necessary to provide the apple id and password. When I access Mac A from Mac B and select the via apple id option, I am asked for the apple id