Jquery and serialize / passing variables

I already put this question on the jquery forum but noone responded. My question is about jquery.
I have this image gallery, people can drop and drag pictures, the idea is they can determine theirselves the order in which images are shown on their website.
I have the sortable part, but I don't know how to pass the new order to the next page that should contain a query that updates the ordernumber for each item.
My code:
<!--- load the necessary scripts --->
     <script src="scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
    <script src="http://jquery-ui.googlecode.com/svn/tags/latest/external/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/i18n/jquery-ui-i18n.min.js" type="text/javascript"></script>
,!--- the actual sortable image gallery --->
<ul id="ulsortable">
    <cfoutput query="items">
        <li id="ID_#T_items_autoID#">
            <CFIF #T_items_img1# IS NOT 0>
                <img src="../#session.foldername#/galleries/#T_items_itemid#_thumbsitemanager.#T_items_img1#" alt="Click here to update" border="0" width="125" height="125">
                <CFELSE>
                    <img src="layoutimg/no_picture_available.jpg" alt="" width="125" height="125" border="0">
                </CFIF><br>
                <CFIF #T_items_title# IS NOT "">#left("#T_items_title#","15")#</CFIF>
        </li>
    </cfoutput>
</ul>
  <script>
    $(function() {
        $( "#ulsortable" ).sortable();
        $( "#ulsortable" ).disableSelection();
        $('#frm-sort').submit(function(){
            var sort_serialized = $("#ulsortable").sortable("serialize");
    </script>
<form action="#request.site.webroot#/actions/act_writeneworder.cfm" method="post" id="frm-sort">
  <input type="submit" name="save" id="save" value="save" />
  <input type="hidden" name="sort_serialized" id="sort_serialized" value="" />
</form>
When I use this and go to the next page thrugh submit button I get the error that sort_seriallized is an empty string. i must be doing something wrong. It has been 3 days i am on it:-)

If anyone is interested, here is the working code.
Make sure to include the right jslibraries
Make your stylesheet so you have an unordered list that looks like an image gallery:
<style>
         ul
            width                : 715px;
            list-style-type    : none;
            margin              : 0;
            padding             : 0;
        /* float & allow room for the widest item */
          ul li
            float                 : left;
            width                : 136px;
            height              : 165px;
            margin              : 2px;
            text-align          : center;
            border              : 1px solid gray;
           /* stop the float */
          br
            clear            : left;
          /* separate the list from subsequent markup */
          div.wrapper
            margin-bottom    : 1em;
    </style>
Then the jquery script:
<script type="text/javascript">
        $(document).ready(function(){
// sortable makes the ul drag and drop
            $("#ulsortable").sortable();
// create variable that will be submitted with form           
                $("#frm_sort").submit(function(){
                    var order = $('#ulsortable').sortable("serialize");
                    $('#order').val(order);
    </script>
Ouput the listitems:
<ul id="ulsortable">
    <cfoutput query="items">
        <li id="myprimarykey_#T_items_autoID#">
                 <img src="../#session.foldername#/galleries/#T_items_itemid#_thumbsitemanager.#T_items_img1#" alt="Click here to update" border="0" width="125" height="125">
                <br/>
               <CFIF #T_items_title# IS NOT "">#left("#T_items_title#","15")#</CFIF>
        </li>
    </cfoutput>
</ul>
Finally the form with submit button and hidden field that passes variable:
<form action="actions/act_writeneworder.cfm" method="post" id="frm_sort">
      <input type="hidden" name="order" id="order" value="" />
      <input type="submit" name="save" id="save" value="Save new order" />
</form>
The page that handles the serialize and database update:
<!--- convert the serialized string to a comma delimited list --->
    <cfset idlist = ReReplaceNoCase( form.order, "(&)?myprimarykey\[\]=", ",", "all" )>
    <cfset position = 0>
    <cfset pk = 0>
<cfloop list="#idlist#" index="pk">
      <cfset position++>
    <cfquery name="writeneworder" datasource="#request.dba#">
        UPDATE T_items
            SET T_items_order = <cfqueryparam value="#position#" cfsqltype="CF_SQL_INTEGER">
             WHERE T_items_autoID = <cfqueryparam value="#pk#" cfsqltype="CF_SQL_INTEGER">
    </cfquery>
</cfloop>
<cflocation url="#request.site.webroot#/item_choose_cat.cfm?currentopic=changeorder" addtoken="no" />
As I couldn't find anywhere a full working exemple I decided to post this code, hope it helps you.
Bianca

Similar Messages

  • The javascript makes the input field to be null and cannot pass variable to

    Hi
    I use the following code to check whether the upload file is in the right format extension.
    However, once I use it and it cannot pass the variable to servlet and throw nullpointerexception.
    How can I fix it?
    <script language="JavaScript">
        extArray = new Array(".jpg", ".png", ".gif");
        function LimitAttach(form, file) {
        allowSubmit = false;
        if (!file) return;
        while (file.indexOf("\\") != -1)
        file = file.slice(file.indexOf("\\") + 1);
        ext = file.slice(file.indexOf(".")).toLowerCase();
        for (var i = 0; i < extArray.length; i++) {
        if (extArray[i] == ext) { allowSubmit = true; break; }
        if (allowSubmit) return true;
        else
        alert("Please only upload files that end in types:  "
        + (extArray.join("  ")) + "\nPlease select a new "
        + "file to upload and submit again.");
        return false;
    </script>
    OnSubmit="return LimitAttach(this.form, this.form.myimage.value)"
    servlet:
    boolean isMultipart = ServletFileUpload.isMultipartContent(request);

    the js works fine, just add id=myimage and it is ok
    checking file type for uploading only image on client side

  • I am an ASP programmer and need help passing variable in JSP

    When I pass a value using a variable string that grabs the user name of a current windows session it adds spaces after each character. it should pass jdt3 and it passes j d t 3. It is grabbing the correct info. It writes the value to a web page correctly though. I really appreciate the assistance.
    <%@ page import="sun.misc.BASE64Encoder" %>
    <p><h1>Network Windows USERNAME without any login (ie)</h1></p>
    <%
    String auth = request.getHeader("Authorization");
    if (auth == null) {
    response.setStatus(response.SC_UNAUTHORIZED);
    response.setHeader("WWW-Authenticate", "NTLM");
    return;
    if (auth.startsWith("NTLM ")) {
    byte[] msg =
    new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));
    int off = 0, length, offset;
    String s;
    if (msg[8] == 1) {
    off = 18;
    byte z = 0;
    byte[] msg1 =
    {(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S',
    (byte)'S', (byte)'P', z,
    (byte)2, z, z, z, z, z, z, z,
    (byte)40, z, z, z, (byte)1, (byte)130, z, z,
    z, (byte)2, (byte)2, (byte)2, z, z, z, z, //
    z, z, z, z, z, z, z, z};
    response.setStatus(response.SC_UNAUTHORIZED);
    response.setHeader("WWW-Authenticate", "NTLM "
    + new sun.misc.BASE64Encoder().encodeBuffer(msg1).trim());
    return;
    else if (msg[8] == 3) {
    off = 30;
    length = msg[off+17]*256 + msg[off+16];
    offset = msg[off+19]*256 + msg[off+18];
    s = new String(msg, offset, length);
    //out.println(s + " ");
    else
    return;
    length = msg[off]*5 + msg[off];
    offset = msg[off+3]*5 + msg[off+2];
    s = new String(msg, offset, length);
    //out.println(s);
    length = msg[off+9]*5 + msg[off+8];
    offset = msg[off+11]*5 + msg[off+10];
    s = new String(msg, offset, length);
    out.println(s + "</SPAN>");
    String redirectURL = "http:www.intranet.com?UName="+s;
    response.sendRedirect(redirectURL);
    %>
    </BODY>

    Open AirPort Utility on the PC, select the Airport Extreme and click Manual Setup
    Click the Advanced icon
    Click the Port Mapping tab
    Click the + (plus) button at the bottom of the connection list to set things up
    Reference pages 49-51 in the Apple AirPort Networks guide for more info
    IF.....you do not see a Port Mapping tab when you click the Advanced icon, then that would mean that the AirPort Extreme is in Bridge Mode and the main routing functions for the network are being provided by another device.
    You will need to set up the port mapping on that device, which is likely your modem/router or gateway.

  • Passing variables and reloading pages

    I have a page in our application that is spawned into a new window. The url is used to pass the variable, the page needs to be constantly reloaded to pick up new data.
    I have two problems:
    1.
    Currenlty I pass the pkid back on reload by:
    try{
    this.getExternalContext().redirect("./"+"viewrunsheetneww.jsp"+"?rs_no="+rs_no);
    }catch (Exception f){
    This works fine, except when there is a validation error, it bypasses this code.
    2.
    I could use the sessionbean (and do) but the user could have multiple windows open and the session variable will conflict.
    I have seen a lot of people suggest session bean variables, doesn't anyone else see this as a problem.
    could i set a request variable on page construction, then it will be there on reload? Are there any decent examples of all the varible passing options (in one place).?
    Thanks
    Jonathan

    Hi, Jonathan,
    I've read about "processScope" in "ADF Faces" that may answer your requirements. I've only just started to investigate this but have been having trouble getting the ADF component download from oracle. Probably you'll have more luck with it. Check out the is link >>
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/devguide/communicatingBetweenPages.html
    Cheers,

  • Passing variables from php to flash and the opposite

    Hi guys, im trying weeks now to solve this problem but nothing yet
    If someone could just tell me how to pass variables from flash to php and the opposite i would be thankful!!! Please help!

    I have recently had to learn this, so this may not be the best way but it worked for me
    I suggest looking at the code below stripping out everything you don't need (e.g. the databse stuff) and just get a simple string going back and forward
    have a go and post any problems here and I'll try and help
    in flash i have
    private function getBalanceAndXP():void
              var request:URLRequest = new URLRequest("utils.php");
              request.method = URLRequestMethod.POST;
              var variables:URLVariables = new URLVariables();
              variables.func = "getBalance";
              variables.fbid = userID;
              request.data = variables;
              var loader:URLLoader = new URLLoader();
              loader.dataFormat = URLLoaderDataFormat.VARIABLES;
              loader.addEventListener(Event.COMPLETE, onBalanceComplete);
              loader.load(request);
    private function onBalanceComplete(e:Event):void
              var loader:URLLoader = e.target as URLLoader;
              loader.removeEventListener(Event.COMPLETE, onBalanceComplete);
              var variables:URLVariables = new URLVariables(loader.data);
              _balance = parseInt(variables.balance); // class variable
              _experience = parseInt(variables.experience); // class variable
    public function setBalanceAndXP(balance:int, experience:int):void
                _balance = balance;
              _experience = experience;
              var request:URLRequest = new URLRequest("utils.php");
              request.method = URLRequestMethod.POST;
              var variables:URLVariables = new URLVariables();
              variables.func = "setBalance";
              variables.fbid = userID;
              variables.balance = _balance;
              variables.experience = _experience;
              request.data = variables;
              var loader:URLLoader = new URLLoader();
              loader.dataFormat = URLLoaderDataFormat.VARIABLES;
              loader.load(request);
    and then I have my php file
    <?php
    $func = $_POST["func"];
    $fbid = $_POST["fbid"];
    $balance = $_POST["balance"];
    $experience = $_POST["experience"];
    $numVariables = 0;
    $link = mysql_connect("localhost","username","password");
    mysql_select_db("databaseName");
    if ($func == "getBalance")
              getBalance($fbid);
    else if ($func == "setBalance")
              setBalance($fbid, $balance, $experience);
    mysql_close($link);
    function getBalance($fbid)
              $query = "SELECT balance, experience FROM tableName WHERE fbid = '".$fbid."'";
              $result = mysql_query($query);
              $row = mysql_fetch_row($result);
              writeVariable("balance", $row[0]);
              writeVariable("experience", $row[1]);
    function setBalance($fbid, $balance, $experience)
              $query = "UPDATE tableName SET balance = ".$balance.", experience = ".$experience." WHERE fbid ='".$fbid."'";
              mysql_query($query);
    function writeVariable( $name, $value )
              global $numVariables;
              if ( $numVariables > 0 )
                        echo "&";
              echo $name . "=" . urlencode($value);
              $numVariables++;
    ?>

  • Capture and pass variables...

    I have 3 tables, Software, Maintenance, Licenses, built on 3 separate forms. All tables have a sequence driven PK. Software has the FK to the Maintenance table. The License table has the FK to the software table. When I create a Software record, I have a trigger that creates the PK in the Maintenance table and the Licenses table. I am able to fill the FK in the Software table to the Maintenance. My problem is since I can have many licenses for 1 software, I need to capture the Software PK and pass it to the License table's FK when there's more than 1 license per software. I found the HTMLDB_ITEM api, but is that the correct api to use? Also, I don't know where this bit of code needs to go. How do I use it within App Express? Also, since I haven't thourghly tested my trigger for the Maintenance FK, I may need to use the same logic for that table also, How do I pass variables between forms?

    Hi Regis
    on the advance script in package replace 'PROMPT(SELECTINPUT,,,,%ENTITY_DIM%) >>> PROMPT(TEXT,%Cat%,"Select cat from (one only)",,"")
    make it two as necessary
    on below
    TASK(Execute formulas,LOGICFILE ....................
    write this
    TASK(Execute formulas,FORMULASCRIPT,"*FUNCTION LOGICPARAM=%Cat%|%Cat2%~")
    use this on script BPC like this
    *SELECT (%FromCat%,"ID","Entity","CALC='N' and ID=substring('LOGICPARAM',1,charindex('|' , 'LOGICPARAM')-1)")
    make it two different select to capture from and to.
    use that %FromCat% variable into the XDIM.
    Hope Helps.

  • Application inside an application and using URL parameter to pass variable  values

    hello
    My requirement is to create a design studio dashboard that will have 2 applications and I should be able to pass variable values from application 1 to application 2. All this should happen in 1 dashboard application.  I have tried using open document functionality
    Application1.openNewWindow(URL link to application 2) . It doesn't meet my requirement as I am required to login to the other application in a new window.
    Is it possible to add 2 applications in one dashboard.
    thanks,
    Bhat

    Hi Bhat,
    I don't know if it is possible to open it in the same Page. But you can try using the Opendoc Parameter which allows you to enable you to pass the credentials you have used in the current Dashboard.
    A useful link,
    https://help.sap.com/businessobject/product_guides/boexir4/en/xi4_opendocument_en.pdf
    Regards,
    Fazith Ali Z

  • Passing variables with page redirect

    I have a cfform. After it is filled out and submitted, the
    action page generates a random reference_no and puts the data into
    a database. I then do a cflocation url and pass the reference_no to
    another page. This page takes the reference_no and does a cfquery
    again to get all the information just entered and displays it on
    the form. A javascript popup/alert message then tells the user the
    form was submitted with the reference_no and to print the form. I
    was advised to do it this way so that the form cannot be
    resubmitted again. Everything works fine the way I have it.
    Now here is what I would like to do. After the form is
    displayed with the popup, I would like to pause 3-5 seconds and
    then redirect that page to another page that is identical (minus
    the javascript popup message) with the cfdoucment tag because I
    want them to print the form in pdf format. The problem I am having
    is when I do another cflocation url at the end of the display page
    and pass the referendce_no, to go to the pdf page, it works but it
    never stops at the display page to display the javascript popup
    message. So I tried to use the meta tag refresh rediredct set at 3
    seconds and pass the reference_no. The display page with the
    javascript message works then the page is redirected but the
    reference_no is never passed and the pdf form comes up but without
    anything to display. I guess you cannot pass variables in a meta
    tag since that is not cf ?
    How can I go from the page with the javascript popup to the
    page with cfdocuement pdf format ?
    Thanks

    You would have to craft the url of the popup page to pass the
    reference_no. I'm going to assume that you're using the "Post"
    method on your form, which means you have to pass the reference_no
    form value as a url/GET value.
    <cflocation
    url="somesite.com/popup.cfm?reference_no="#form.reference_no#">
    and then on the popup.cfm page, consume the url.reference_no
    again as part of the url in the meta refresh
    <cfoutput>
    <meta http-equiv="refresh"
    content="10;url=http://somesite..com/pdfDisplay.cfm?reference_no=#url.reference_no#"
    />
    </cfoutput>
    If you're just trying to prevent double submission, you could
    just lock the
    form from double submission clientside. In the method below,
    it actually hides the form. There are other options such as
    displaying an inline IFRAME which would simulate a popup and would
    remain until the page was refreshed from the form submission. I
    would also consider this old school. You might want to check out
    other options as far as Web 2.0 using AJAX and frameworks such as
    JQuery.
    <script language="javascript">
    function formSubmit(){
    if (document.myForm.isSubmitted.value != "no"){
    return false;
    }else{
    document.myForm.isSubmitted.value = "yes";
    document.getElementById('submitdiv').style.display =
    "block";
    document.getElementById('formdiv').style.display = "none";
    document.myForm.submit();
    </script>
    <div id="submitdiv" style="display:none">
    Your Form has been submitted.
    </div>
    <div id="formdiv" style="display:block">
    <form method="post" name="myForm" id="myForm"
    action="HandleSubmission.cfm">
    <input type="text" name="isSubmitted" value="no">
    <input type="button" name="manSubmit" value="submit"
    onclick="formSubmit();">
    </form>
    </div>

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Unit Testing and APEX Global Variables

    We've recently started to unit test our database level PL/SQL business logic.
    As such we have a need to be able to simulate or provide output from PL/SQL APEX components in order to facilitate testing of these components.
    Some of the most obvious portions that need simulation are:
    1. The existence of a session
    2. The current application ID
    3. The current page ID.
    We currently handle requirement #1 by using apex_040100.wwv_flow_session.create_new
    We handle 2 and 3 using the apex_application.g_flow_id and g_flow_step_id global variables.
    I'm just wondering, how safe is it for us to use wwv_flow_session.create_new to simulate the creation of a session at testing time for those things which need a session?
    I've also noticed that there are apex_application.get_application_id and apex_application.get_page_id functions whose output is not tied to the global variables (at least in our current version).
    Is it safe for us to expect that we can set these global variables for use in testing or is apex moving to get_application_id and get_page_id functions away from global variables?
    Will there be corresponding set_application_id and set_page_id functions in the future?
    Sorry for the question bomb. Thanks for any help.

    My first question would be why do you need to establish a session to test your PL/SQL?
    wwv_flow_session is a package internal to APEX, and you should probably leave it be.
    The get_application_id procedure you refer to is in apex_application_install, which is used for scripting installation of applications - not get/set of page ID like you're describing.
    If you're uncomfortable using apex_application.g_flow_id, you can use v('APP_ID') or preferably pass the app_id/page_id as parameters to your procedures.
    Your question seems to have a few unknowns, so that's the best I can describe.
    Scott

  • Passing variable values to pl/sql procedures

    Hi,
    I wanted to log the step name and message into a table whenever a particular step/interface failed in the ODI package.
    Ex:PKG1
    A----OK--->B----OK-->C--OK-->LOG SUCCESS status into table. All steps are sequenced.
    when not OK
    A----KO--->B----KO-->C--KO-->LOG failed status into table with step and message.
    I have created 4 variables in ODI and used these vairables in to pass values in pl/sql procedure scenario.
    I have drag and drop procedure scenario and given values to every variable...thing is for i want to get the step name dynamically for the procedure scenario's variable i am directly passing
    v_int_step=odiRef.getPrevStepLog("STEP_NAME").
    I dont want drag and drop procedure for each KO and then pass values to v_int_step=A or B or C .
    My scenario command look like this for KO
    OdiStartScen "-SCEN_NAME=PROC_LOGEXE_STATUS" "-SCEN_VERSION=-1" "-LOG_LEVEL=3" "-SYNC_MODE=1" "-SESSION_NAME=PROC_CSA_LOGEXE_STATUS_CS_BRANCHES" "-FLEXCUBE_OFSAA.v_execution_status=E" "-project1.v_scen_int_name=A" "-project1.v_batch_id=PKG_GLOBAL_MNT_HANDOFF" "-project1.v_step_name=odiRef.getPrevStepLog("STEP_NAME")"
    I am getting following error
    oracle.odi.oditools.OdiToolInvalidParameterException: Error while setting parameters on tool
         at com.sunopsis.dwg.function.SnpsFunctionBase.getCoreOdiTool(SnpsFunctionBase.java:607)
         at com.sunopsis.dwg.function.SnpsFunctionBase.getSunopsisApi(SnpsFunctionBase.java:480)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:1340)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2785)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Invalid parameter
         at com.sunopsis.dwg.function.SnpsFunctionBase.getCoreOdiTool(SnpsFunctionBase.java:599)
         ... 15 more
    Please help me ,
    Thanks In Advance

    Hi,
    Mistakes i found in the script,
    1. You need to pass the variables with the "-<YOUR PROJECT CODE>.VARIABLE NAME" which i suppose would be in UPPER CASE.
    2. You need to pass OdiPrevStepLog with <%=%> enclosed. So your script will looks like,
    OdiStartScen "-SCEN_NAME=PROC_LOGEXE_STATUS" "-SCEN_VERSION=-1" "-LOG_LEVEL=3" "-SYNC_MODE=1" "-SESSION_NAME=PROC_CSA_LOGEXE_STATUS_CS_BRANCHES" "-FLEXCUBE_OFSAA.v_execution_status=E" "-PROJECT1.v_scen_int_name=A" "-PROJECT1.v_batch_id=PKG_GLOBAL_MNT_HANDOFF" "-PROJECT1.v_step_name=<%=odiRef.getPrevStepLog( "STEP_NAME" )%>"
    Thanks,
    Guru

  • Passing variable values to the navigation block

    Hi WAD Experts,
      I have a requirement regarding passing variable values to the navigation block. User requirement is first give the selections on the selection screen and then after executign output should display in browser. In the output page we have a navigation block. So when user gives selections those selections should also populate in the navigation block. Your help will be appreciated.
    Prasad.

    Hi,
    if your variable is 'Changeable at Query Navigation' the chosen values will appear in the Navigationblock.
    Variables which are 'Not Changeable at Query Navigation'
    will not appear.
    You can set this Property when you create a Variable.
    Kind Regards,
    Alican Polat

  • How can I pass variables from one project to another using Javascript?

    Hi all, I am trying to do this: let learners take one course and finish a quiz. Then based on their quiz scores, they will be sent to other differenct courses.
    However, I wish keep track on their previous quiz scores as well as many other variables.
    I found this nice widge of upload/download variables by CPguru (http://www.cpguru.com/2011/05/18/save-and-load-data-widget-for-adobe-captivate-4-and-adobe -captivate-5/). However, this widget works by storing variables from one project in local computer and then upload it to another project.
    My targeted learners may not always use the same computer though, so using this widget seems not work.
    All these courses resided in a local-made LMS which I don't have access to their code. Therefore, passing variables to PHP html files seems not work.
    Based on my limited programing knowledge, I assume that using Javascript to pass variables may be the only possible way.
    Can someone instruct me how to do this?
    Thank you very much.

    If you create two MIDlet in a midlet suite, it will display as you mentioned means you can't change the display style.

  • Error when executing query without passing variable selection

    Hi Gurus
    I am getting an error while executing a query with out passing values for variables
    When executing the query by passing the filter values report returns the data
    When executing the query with out passing variable selections the error message is
    Unknown error in SQL interface
    Error reading the data of Info Provider ZCRM_O08
    Error while reading data; navigation possible
    System error in program SSAPLRS_EXCEPTION and form
    RS_EXCEPTION_TO_MESSAGE
    No Data Available
    can any one please help me in resolving this
    Thank you

    Hi Srini
    Thanks for your quick response
    When i am executing the query with selection it is returning the data
    giving error when executing with out passing the selection
    is there any other cause for this problem
    like any particular info object causes this sort of problem
    Thank you

  • OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.

      How to pass variable from one prompt to another prompt in dashboard page.
    I have two prompt in dashboard page as below.
    Reporttype
    prompt: values(Accounting, Operational) Note: values stored as
    presentation variable and they are not coming from table.
    Date prompt values (Account_date, Operation_date)
    Note:values are coming from dim_date table.  
    Now the task is When user select First
    Prompt value  “Accounting” Then in the
    second prompt should display only Accounting_dates , if user select “operational”
    and it should display only operation_dates in second prompt.
    In order to solve this issue I made the
    first prompt “Reporttype” values(Accounting, Operational) as presentation
    values (custom specific values) and default presentation value is accounting.
    In second prompt Date are coming from
    dim_date table and I selected Sql results as shown below.
    SELECT case when '@{Reporttype}'='Accounting'
    then "Dates (Receipts)"."Acct Year"
    else "Dates (Receipts)"."Ops
    Year"  End  FROM "Receipts"
    Issue: Presentation variable value is not
    changing in sql when user select “operation” and second prompt always shows
    acct year in second prompt.
    For testing pupose I kept this presentation
    variable in text object of dashboard and values are changing there, but not in
    second prompt sql.
    Please suggest the solution.

    You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it.  You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.

Maybe you are looking for

  • TtRestoring a Data Store w/ a Large PermSize to a Smaller PermSize

    If have a backup of a data store created by ttBackup. I'd like to restore that data store into a data store with a smaller PermSize. The original data should fit in the new data store. However, I'm encountering errors doing this. I've done the follow

  • Regarding SAP-PS training

    Hi, I am having 8+ Years of experience in GIS field. Presently I am working as a Asst.Project manager. I wanted to do SAP-PS module from Seimens. So can anyone guide me whether my domain will be helpful for this or not. Thanks Sasikanth

  • Oracle.apps.gl.Journals.journal.post event parameter

    I have written a subscription on the oracle.apps.gl.Journals.journal.post event and it's raising fine and I would like to control this event's subscription to a particular set of books id instead of firing across all set of books. How can I send the

  • How make connection using data source with db2

    hiiiiii, please tell me the procedure to connect with db2 through data source (driver should support updatable ResultSet)

  • Defining print properties for a Livecycle form

    Hi, I am working on a form in Livecycle Designer ES2. The form is basically a checklist that has a series of questions and based on the answers to each question, I have made it so that hidden fields will become visible when necessary. The problem I h