Problem of FlashVars (root.loaderInfo.parameters returns null)

Well, before I continue, I must say I looked on the forum and on google and all the different types of code did not work!

My actionscript Panel, I have this:

import com.greensock;
import flash.net.URLRequest;

import flash.display.Stage;
import flash.display.LoaderInfo;

var sujet_no:String is LoaderInfo (this.root.loaderInfo) .parameters ['sujet_no'];.
var timer: String = LoaderInfo (this.root.loaderInfo) .parameters ["timer"];
var back_url:String is LoaderInfo (this.root.loaderInfo) .parameters ["back_url'];.
var handler_url:String is LoaderInfo (this.root.loaderInfo) .parameters ['handler_url'];.

Then I then call in my functions...

I also tried:

var sujet_no:String is LoaderInfo (stage.loaderInfo) .parameters ['sujet_no'];.

var sujet_no:String = this.root.loaderInfo.parameters ["sujet_no"];

var sujet_no:String is LoaderInfo (this.root.loaderInfo).parameters.sujet_no;.

var sujet_no:String = this.root.loaderInfo.parameters.sujet_no;

and import flash.display.Stage;... But all returns null (undefined). I've been spending my parameters like this:

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
<param name="movie" value="http://mySite.com/files/flash/slideshow.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="FlashVars" value="sujet_no=28773&timer=31517703&back_url=http://mySite.com/myPage.aspx?id=50&site_root=http://mySite.com/&handler_url=http://mySite2.com/" />
<param name="swfversion" value="6.0.65.0" />
etc. etc.

P.S. I've been trying for almost 3-4 hours by trying all different methods... :S

Someone got a working sollution to this? Cause I really can't understand why it won't work... It was so much easier in AS2...
I don't have much experience in Flash and I'm new to AS3.

Thanks!

I see only a flashvars in these two sets of param tags.  Add the second and repeat the test.

Tags: Adobe Animate

Similar Questions

  • HttpServletRequest getParameter returns null in Jdeveloper 11 g

    Hello:

    IM currently involved in a project to the title of the ADF faces in Jdeveloper 11 g. I have a requirement that an online application must be connected to a bank. We can redirect the workflow on the site of the Bank, but the return parameters are the problem. The Bank sends the confirmation by MAIL, but when we try to get the data to a ControllerBean using a HttpServletRequest parameters return null.

    This works very well in the Adf using Oracle Jdeveloper 10 g but in Jdeveloper 11 g Adf in richfaces don't.

    Here are the facts:

    1. a third application must send parameters via post method in the form of html to my request.

    2. in the PrepareModel of the support of my jsp bean, I get the HttpServletRequest object.

    3. I have access to the settings in the HttpServletRequest.

    Here's the pararameter sending form example:

    < html >
    < head >
    < meta http-equiv = "Content-Type".
    Content = text/html"; charset = windows-1252 "/ >"
    < title > < /title > answer Bank
    < script languaje = "JavaScript" type = "text/javascript" >
    function responder() {}
    document. TestForm.Submit ();
    }
    < /script >
    < / head >
    < body >
    < name of the form = "testform" action = "myAppUrl" method = "post" >
    < input type = "hidden" name = "parameter1" value = "Value1" / >
    < input type = "hidden" name = "parameter 2' value = 'value2' / >
    < input type = "hidden" name = "parameter3' value = 'value3' / >
    < / make >
    < / body >
    < / html >


    The code I use in the bean of the JSP (HttpServeletRequest get parameters):


    public void prepareModel (LifecycleContext context) {}
    super.prepareModel (context);
    ADC ADFContext = ADFContext.getCurrent ();
    FacesContext facesContext = FacesContext.getCurrentInstance ();
    try {}
    HttpServletRequest request =.
    (HttpServletRequest) facesContext.getExternalContext () .getRequest ();
    System.out.println (Request.GetParameter ("Parameter1")); / / < < < < < ME GIVES a NULL VALUE
    System.out.println (Request.GetParameter ("parameter2")); / / < < < < < ME GIVES a NULL VALUE
    System.out.println (Request.GetParameter ("parameter3")); / / < < < < < ME GIVES a NULL VALUE
    } catch (Exception ex) {}
    ex.printStacktrace ();
    }
    }

    Any advice?

    Concerning

    Jorge

    Edited by: 828478 01/15/2011 10:43

    Hello

    on the f: view of the JSPX page element, set the afterMethod property to point to a managed bean method. In this method of bean management, determine the phase and if this phase is afterRestore, read the query parameter, if it exists (be sure to check if the setting exists). If the parameter exists, write on a range of memeory as viewScope or session. Then when you need this setting in the managed bean, get it from the scope of the memory

    Frank

  • Problems using FlashVars

    I'm trying to use the FlashVars to pass a parameter that will determine what graphics to load in my film.  The actionscript test code uses a dynamic text called TEXTDYN field and is coded as follows (stable FlashVars by passing them to a dynamic text field):

    function loaderComplete(myEvent:Event)
    {
    var flashVars = this.loaderInfo.parameters;
    dText.text = flashVars.userName;
    }

    this.loaderInfo.addEventListener (Event.COMPLETE, loaderComplete);

    In my html code, I add:

    < PARAM NAME = FlashVars VALUE = "username = Schwab" / > "

    FlashVars = "username = Schwab" / / added to the embed tag "

    It comes not through. Anyone know what I am doing wrong?

    Thank you

    You must add your flashvars in 3 locations in your html file: your embed tag, tag param and your ac_fl_content function.

  • Problem with accessing dynamically created video clips, returns null.

    I hope that it's a dumb question with an easy answer, if my code is pretty simple.

    I use this code snippet to create menu items, then use the variable jCount below to give the clips a like number, index in so much of (which seems to work very well):

    for(var j:Number=0;j<xmlSubMenuLength;j++){  
        var mcSubMenuItem:mcSubMenu=new mcSubMenu();    
        addChild(mcSubMenuItem);     
        jCount++;    
        mcSubMenuItem.name = "mcSubMenuItem" + jCount; 
        //traces out names correctly
        trace ("---------------------------------jCount NAME = "+ mcSubMenuItem.name); 
        mcSubMenuItem.x=mcMenuHolder.x+20;
        mcSubMenuItem.y =mcMenuHolder.y;
        mcSubMenuItem.y+= nextBtnY;
        nextBtnY+=subtopicSpace;
        global_subi.text = String(jCount); //i see the proper count of 10 in the text field
       }
       
       
    

    However, when I try to access the clips using this snippet:

      
     for(var j:Number=0;j<Number(global_subi.text);j++)//
        {   
      trace("GLOBAL SUBI = "+ String(global_subi.text));  //traces out 10, which it should
      var scSubMenuItem:String = "mcSubMenuItem" + j;   
      var scSubContent:Object = this.getChildByName(scSubMenuItem); 
      trace(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>scSubContent:Object = "+ scSubContent); //returns null!
      
     }   

    My last trace statement returns null. Anyone can see my mistake, or explain why I can't access my videos after they have been created?

    Thanks muchly,.

    ~ Chipleh

    You are welcome.

  • LocationProvider.getInstance always returns null

    I'm trying to run a slightly modified version of the application on a BlackBerry 7250 GPSDemo. As my device software is version 4.1, I use the BlackBerry JDE 4.1. No matter what are the parameters for the criteria, I pass in LocationProvider.GetInstance, I always return null. I can run google maps on this unit and get my location, so I'm assuming that the GPS is supported in this regard. Did anyone see any problem with code and/or information on the devices below?

    Wireless blackBerry 7250 (CDMA)

    v4.1.0.353 (Platfor 2.2.0.159)

    The kernel v3.8.3.7 encryption

    The microedition configuration: CLDC-1. 1

    Microedition profile: MIDP-2. 0

    Microedition JTWI Version: 1.0

    Microedition Media Version: 1.1

    Microedition PIM Version: 1.0

    Try
    {
    GpsReceiverCriteria criteria = new Criteria();
    gpsReceiverCriteria.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setVerticalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setCostAllowed (true);
    gpsReceiverCriteria.setPreferredPowerConsumption (Criteria.POWER_USAGE_LOW);
    gpsReceiverCriteria.setAddressInfoRequired (false);

    _locationProvider = LocationProvider.getInstance (gpsReceiverCriteria);
               
    If (_locationProvider is nothing)
    {
    Runnable ShowGpsLocationProviderNull1Dialog = new Runnable()
    {
    public void run()
    {
    Dialog.Alert ("Provider is null - HA: NR VA: NR CA:T PC:L");
    }
    };
    invokeLater (showGpsLocationProviderNull1Dialog);  Ask the event dispatcher thread to display the dialog box as soon as POSSIBLE
    }
       
    gpsReceiverCriteria.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setVerticalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setCostAllowed (false);
    gpsReceiverCriteria.setPreferredPowerConsumption (Criteria.POWER_USAGE_LOW);
    gpsReceiverCriteria.setAddressInfoRequired (false);

    _locationProvider = LocationProvider.getInstance (gpsReceiverCriteria);
               
    If (_locationProvider is nothing)
    {
    Runnable ShowGpsLocationProviderNull2Dialog = new Runnable()
    {
    public void run()
    {
    Dialog.Alert ("Provider is null - HA: NR VA: NR CA:F PC:L");
    }
    };
    invokeLater (showGpsLocationProviderNull2Dialog);  Ask the event dispatcher thread to display the dialog box as soon as POSSIBLE
    }

    _locationProvider = LocationProvider.getInstance (null);
               
    If (_locationProvider is nothing)
    {
    We would like to display a dialog box indicating that the GPS is not supported, but because that
    the event dispatcher thread has not been started yet, modal screens cannot be pushed on
    the battery in the display.  So delay the operation until the event dispatcher thread runs
    asking him to call the executable object following as soon as possible.
    Runnable showGpsUnsupportedDialog = new Runnable() {}
    public void run() {}
    Dialog.Alert ("No receiver GPS on this unit is available, exit...");
    System.Exit (1);
    }
    };
    invokeLater (showGpsUnsupportedDialog);  Ask the event dispatcher thread to display the dialog box as soon as POSSIBLE
    }
    on the other
    {
    only a single listener can be associated with a provider and point it comes to the same
    call, but with the value null, so, no need to cache the listener instance
    request an update every second
    _locationProvider.setLocationListener (new LocationListenerImpl(), _interval, 1, 1);
    retval = true;
    }
    } catch (LocationException) {}
    System.Err.println ("Failed to instantiate the object LocationProvider, exit...");
    System.Err.println (the);
    System.Exit (0);
    }

    Oops... sory. My dyslexia again out of in

    I think that the 7250 has no GPS function at all.

    Yet again, Google it didn't need because they have their own turn cells DB and web services to retrieve the "approximate" location

  • PersistentObject.getContents () returns null after app update

    Hello

    I'm trying to track down a bug with PersistentStore.
    Usually when I update the app I get the getContents() stored content.
    However, something in the code has changed from one version to the other and now getContents() returns null.

    I made sure the id has never changed for PersistentStore.getPersistentObject (id);
    I made sure that we use the same basic sdk (4.3.0)
    I made sure that there are the data stored in the stored hash table

    Currently, it's a hash table - no subclass (even though I know that I should change it to a subclass when it's fixed);

    I wonder if there are any suggestions on what might cause the getContents() return null - or which could result in the PersistentStore have cleared.

    What information is needed, please let me know and I'll paste.

    I found the problem after.

    Classes have begun to obscure differently. If the hash table was still readable, but because he could not read the content of the hash table, he would return null.

    It was unexpected, because if you have a custom class persisted and you try to read it, you will get the content, but you can't cast. But with the hash table, it does not return the content (uncastable) and it throws no exceptions...

    I hope this helps someone else who has a similar problem.

  • The body of the message to return null on os 4.5.0.18. When you use getBodyText()

    Hi all

    Today, when I debug my application on 4.5.0.18 device 8130.

    I implements FolderListener, when new messages coming,.

    I grap message object and want to analyze the body of the message to check if the message is what application you are looking for.

    Hoever, when I call Message.getBodyText (). It returns null.

    In fact, there a lot of message in the body of the message.

    is there any sweet experiencing this problem?

    What is work around?

    Thank you.

    getBodyText() will work on 4.5 If the body is 'plain text '. Otherwise, you will need to get the HTML content of the message and extract the text elements.

    See this article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/How_To _...

  • OAMessageStyledTextBean getText() or GetValue returns null

    Description of the problem

    ---------------------------------------------------

    Hello

    I try to retrieve a value from the field messagestyledText on the standard page R12.

    When I use the code below in the extended controller, it returns null. However a code works fine in another page.

    Please, advise.

    Thank you.

    ' Public Sub processFormRequest (OAPageContext oapagecontext, OAWebBean oawebbean)

    {

    OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean) oawebbean.findChildRecursive ("SubmitComments");

    String s1 = oamessagestyledtextbean.getText (oapagecontext);

    String s2 = (String) oamessagestyledtextbean.getValue (oapagecontext);

    String message = "s1 =" "s1 + s2 plus" + s2;

    throw new OAException (message, OAException.WARNING);

    }

    Thank you... Yes, in fact, he was placed by one of the oapagecontext.getTransactionValue... problem solved. I am able to get a value of oapagecontext.getTransactionValue now

  • DataBind method call returns null in the WebCenter content filtering

    Hello

    I got code that has a problem and I am new to the WebCenter content and filters that can be added. We have a FileNameFilter class that begins with the code

    / public class CWEFileNameFilter implements FilterImplementor {}

    public CWEFileNameFilter() {}

    Super();

    }

    public int doFilter (workspace workspace, DataBinder dataBinder,

    ExecutionContext executionContext) throw {DataException

    Service string = dataBinder.getLocal ("IdcService");

    ....

    }

    }

    However, service is sometimes return null and then filter throws a NPE.

    My questions are:

    (1) can we explain what dataBinder.getLocal ("IdcService"); is done and why it might come back as null

    (2) anyone can provide links to documentation that explains the filters and a little more on the object DataBinder as the JavaDoc is not much help.

    Thank you
    Marc

    Hi Marc,

    Below the code will give the name of the service for which the filter is implemented LocalData

    Service string = dataBinder.getLocal ("IdcService");

    for example below

    http://localhost:16200/cs/idcplg? IdcService = DOC_INFO_BY_NAME & dDocName = 1111111 & IsJava

    This example displays the entire response including localdata data and results that are created in the execution of the service. Here is the code snippet

    LocalData @Properties

    DocUrl =https://localhost:16200/cs/weblayout/groups/secure/documents/test/mhdk/mjg1/1111111.pdf

    IdcService = DOC_INFO_BY_NAME

    If String = dataBinder.getLocal ("IdcService") service; Service = "DOC_INFO_BY_NAME."

    Under blog will give an idea about the filter but the best place to learn or start is "The Definitive Guide to Stellent Content Server Development" by Brian Huff

    http://www.redstonecontentsolutions.com/technical-blog/UCM-service-handlers-and-javafilters

    Also, I recommend reading ' WebCenter Content Services Reference Guide '

    http://docs.Oracle.com/CD/E23943_01/doc.1111/e11011/TOC.htm

    Kind regards

    Amol Germain.

  • Debugging inaccessible FacesException:Target, 'bean' returned null

    Hi all

    Jdev: 11.1.1.7.1

    We have a living ADF application that worked very well until installing a recent where a flow is the break with the message "inaccessible FacesException:Target, 'bean' returned null. It works very well in our UAT and our production environment is clustered.

    StackTrace

    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: javax.faces.FacesException, msg=#{pageFlowScope.xyzBean.showCaseDetails}: Target Unreachable, 'xyzBean' returned null
    Supplemental Detail    at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:417)
    at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:479)
    at com.wellsfargo.common.view.WFExceptionHandler.handleException(WFExceptionHandler.java:57)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._handleException(LifecycleImpl.java:1380)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:211)
    .....
    ..
    ## Detail 0 ##
    javax.faces.FacesException: #{pageFlowScope.xyzBean.showCaseDetails}: Target Unreachable, 'xyzBean' returned null
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
    at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
    at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:280)
    

    Guidance on how to debug what appears not a problem with scope as our UAT works very well.

    We were finally able to reproduce the problem in our local instance.

    Regarding the cause, the view behind the UI object, the research doesn't have the right keys. As a result, selection on the table was selecting two rows on the search results. By clicking on the commandlink, it seems that two events of Action are put in queue and after that the first action event navigates successfully, the second is pulled and fails.

  • Java 7 u45 System.getProperty returns null

    After the upgrade to u45, our web launch application has stopped working. He failed System.getProperty ("myproperty").

    "myproperty" is defined as an

    < resources >

    < j2se version = "+ 1.6" initial-heap-size = "64 m" max-heap-size = "256 m" / >

    < jar href = "nms_wsclient.jar" Download = hand "impatient" = "true" / > "

    < href = tΘlΘchargement jar "commons - httpclient.jar" = "forward" / >

    < href = tΘlΘchargement jar "commons - codec.jar" = "forward" / >

    < href = tΘlΘchargement jar "commons - logging.jar" = "forward" / >

    < jar href = "log4j.jar" Download = "forward" / > "

    "< property name ="myproperty"" value = "http://138.120.128.94:8085 /" / > ""

    < / resource >

    with old java version, System.getProperty ("myproperty") works very well to return the value, but with u45 it returns null.

    Does anyone have the same problem? no idea how to fix or work around it?

    Thank you

    Zhongyao

    7u45 made a change that is not documented in the release notes. You must precede the properties with jnlp.myproperty in your JNLP file, unless your jnlp file is signed.

    But like me, since you can have different values in multiple deployments, signing the JNLP is impossible.

    I tried to submit a bug on this issue report, but their bug report process works as well as 7u45...

  • JDev 11.1.2.1 bc.getCurrentBindingsEntry () returns null.

    I use the code below to the ADF's seafood favorite shuttle component video training that is available on the web:

    public static list < SelectItem > selectItemsForIterator (String iteratorName,
    String valueAttrName,
    String displayAttrName) {}
    BindingContext, bc is BindingContext.getCurrent ();
    Link = DCBindingContainer
    (DCBindingContainer) bc.getCurrentBindingsEntry ();
    DCIteratorBinding iter = binding.findIteratorBinding (iteratorName);
    The list < SelectItem > selectItems = new ArrayList < SelectItem > ();
    {for (line r: {iter.getAllRowsInRange ())}
    selectItems.add (new SelectItem (r.getAttribute (valueAttrName),
    (((String) r.getAttribute (displayAttrName)));
    }
    selectItems return;
    }

    The call to getCurrentBindingsEntry() returns null.

    Can someone tell me what would cause this function returns null?

    Thank you, Steve

    Hi Steve, I don't know if the problem is related to the scope of the bean, because I use the same method in the beans of pageFlowScope without problem. However, I fell right on the same problem you are facing today. The problem in my case, it was the default activity of my BTF was a method call that attempted to call getCurrentBindingsEntry. I changed the default activity at a glance and then called getCurrentBindingsEntry in the constructor of the bean. This solves the problem. If you have a similar situation?

    Dar.K

  • Unattainable goal BackingBean returned null

    We have a master application that references libraries (deployed to the logic of the web as WAR files). To do this, we have a deployment descriptor weblogic listing libraries.

    Content in the referenced library is a workgroup that contains a list of identifiers. We use contextual events to pass the id of the current line of the library to the main application. When a button is clicked in the working group id of the current line should be sent to the master application. The ActionListener designates the backing bean editAppWC

    #{backingBeanScope.appWCPubBean.editAppWC}

    It comes when we run the application master we get the error:

    Root cause]] of ServletException.
    javax.faces.FacesException: javax.el.PropertyNotFoundException: inaccessible target, 'appsWCPubBean' returned null
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:262)
    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
    at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:486)
    at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:670)
    at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
    Truncated. check the log file full stacktrace

    Is this what we set in the adfc-config. XML or the faces-config. XML? The adfc-config file. XML library, I can see reference to the managed bean, but that's all. I'm sure that we have to miss a step.

    Any help would be greatly appreciated

    Thank you
    Kylie

    Hello

    You must register bean in stubborn taskflow you use inside taskflow.
    Open taskflow in source view and copy the same code used to save beans in adfc - config.xml to taskflow delimited (inside the tag).

    Jean Lou

  • Links returned null in bean

    Hello

    I have a method call activity that is backing bean in stubborn workflow. When this method is called, the bindings returns null. So, I couldn't get my iterator.

    I used the following codes in my grain of support separately. But no use. All return to line 3 null pointer exception. Bindings returns a null value in line 1, line 2 and line 3.

    1 DCBindingContainer links = ADFUtils.getDCBindingContainer ();
    2 DCBindingContainer links = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    3 BindingContainer links = getBindings();

    3 DCIteratorBinding iterator = bindings.findIteratorBinding("ComponentAssignment1Iterator");

    How to get the iterator from the definition of my page? Is there a work around way?

    Thanks in advance

    Usha,

    For a workflow method call, the current link container is not the container of liaison for the pages it's the page definition for the call of the method itself.

    KUBA posted a very similar question last week: {: identifier of the thread = 2279848}

    Edit:

    u can try to drag and drop your component again of the datacontrol... maybe there is a problem... you Databindings.cpx file.

    No, this isn't the problem.

    John

  • % ROWCOUNT SQL return null after Forms_DDL on a dynamic SQL

    Hello

    I'm new to PL/SQL coding and is currently working on the development of some application in Oracle Forms as a result of the 10 g developer.

    I'm having a problem getting a number of lines (number of rows affected by the last command dml) to register after using forms_ddl
    PROCEDURE P_SQL_UPDATE IS
    
      L_string1                VARCHAR2(250);
      L_string2                VARCHAR2(250);
      L_string3                VARCHAR2(250);
      L_string4                VARCHAR2(250);
      L_rowcount                Pls_integer;
      L_count                  NUMBER;
      L_alert                       NUMBER;
    
    BEGIN
    
      L_string1 := 'UPDATE ' || :global.G_table_nam || ' SET ';
      L_string2 := NULL;
      L_string3 := ' WHERE ';
      L_string4 := NULL;
    
    ...
    ... building strings 2 and 3
    ...
    
    :global.final_sql := L_string1 || L_string2 || L_string3 || L_string4;
    
      FORMS_DDL(:global.final_sql);
      L_rowcount := SQL%ROWCOUNT;
    
      if FORM_SUCCESS then
        set_alert_property('ALT_COMMIT_ROLLBACK',ALERT_MESSAGE_TEXT, 'The # of rows affected: ' || L_rowcount || CHR(10) || 'Commit or Rollback?');
        L_alert := show_alert('ALT_COMMIT_ROLLBACK');
        if L_alert = ALERT_BUTTON1 then
          commit;
        else
             rollback;
        end if;
      else
        set_alert_property('ALT_INFO',ALERT_MESSAGE_TEXT, 'Error: ' || DBMS_ERROR_CODE  || ' - ' ||DBMS_ERROR_TEXT);
        L_alert := show_alert('ALT_INFO');
      end if;
       
    END;
    I tried to replace the global variable with a string 1 potential SQL hard coded, I changed L_rowcount to digital, attempted to directly display rowcount % SQL via dbms_output.put_line... L_rowcount is just empty during the pop-up alert.

    Another solution has been L_rowcount: = DBMS_SQL. LAST_ROW_COUNT; ... This gives a slightly different result in the alert window, instead of being white, it returns 0. If something is definitely not right. Another is that in doing so, he always returned null/one field blank on the alert popup.

    I have run tests on SQL % number of lines in the editor of TOAD and got results, but during the actual shape that l_rowcount is always null after the execution of the procedure (with the exception of being 0 using the dbms_sql.last_row_count).


    I want to emphasize that change is not introduced without the additional validation in the FORM_SUCCESS at the end... I had read that the Forms_DDL is an implicit validation and committing the SQL without anything else happening... This seemed a little odd as well.

    Before forms_ddl, I tried to use execute, exec, or run immediately on the SQL, but nothing helped. I think of one other option would be to pass this SQL to a datablock again together and use to execute query on this block? Don't know how to go about it.



    The purpose of this form is intended for users to enter values in a generic form and when he meets the validation in the field triggers, they will support on submit and ideally before the update is committed I want users to be notified of the # of lines that would be affected by their proposed... change so if the # is huge they will know that they did something wrong before they affect the entire database.


    Any input would be appreciated,
    Travis

    Travis,
    The built-in function Forms_DDL() emits an implicit VALIDATION because the transaction is issued as DDL no DML. Therefore, given that the VALIDATION is the last command issued by the call of Forms_DDL, the attributes of the cursor of the implicit cursor (SQL) will all be set to NULL. If you absolutely must have the number of LINES of the documents concerned, you can create a database program unit that you can spend your dynamic statement too and have it return zero (failure) or the number of affected records (success).

    In addition, since Forms_DDL() emits an implicit VALIDATION, you must create a BACKUP point before calling Forms_DDL() If you want the ability to RESTORE any changes made in the call to Forms_DDL().

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

    Published by: Silvere July 26, 2011 09:29

Maybe you are looking for

  • Photosmart C410A: HP Solution Center install on 2 PCs for the same printer

    I have two PCs running Windows 7 Professional 64 - bit and a HP Photosmart C410A printer, wireless connections to my network.  The solution Center has worked well on the first PC, it was installed on.  I tried to install it on my new PC, but I get an

  • Satellite L650-14F - maximum temperature of the CPU

    Hello guys and sorry for my language. Can you tell me what is the optimum temperature for this laptop and what is the maximum temperature?Thank you

  • Laptop HP Pavilion 15 for Window 7 64 bit drivers

    Hey Im trying to find and install the drivers for my new computer to Win7, but I'm a little to accomplish I have a HP Pavilion 15-n038so Ref: F1E04EA #UUW, if someone could give me some tips where I can find em. So far, I have the drivers for the Eth

  • Can an ASA cause several certificates?

    Our ASA currently has a cert verisgn attributed to the external interface. Can I connect a second certificate to the ASA on a different port ethernet with a different IP address? The normal VPN users come in via the external port. A group of users ac

  • InDesign drop down sub menus appear on the wrong side on the second monitor

    Hello, this problem occurs only with Indesign, only on my second monitor. His frustration at having to keep my 3 inches on the screen toolbar just to make sure that I can use my tools. Everyone race in this issue?Im working on a Mac running the lates