Binding clarification

Hello experts,
My aim is to email whenever a PO is changed. email should have item details of the PO.
I am able to trigger the workflow but somehow I am not getting the item details.
I have created a task with a standard BOR (BUS2012 )and method ( getitems ).
I have done binding between task and method as follows :
&PURCHASEORDER& -> &PURCHASEORDER&
&POITEMS& -> &POITEMS&
&POITEMS& <- &POITEMS&
In the Workflow container, I am using the BOR BUS2012, Name : PurchaseOrder, and the element po_items ( same data decl, import/export, multiline )
my binding betn workflow and task is as follows :
&PURCHASEORDER.PURCHASEORDER& -> &PURCHASEORDER&
&PO_ITEMS& -> &POITEMS&
&PO_ITEMS& <- &POITEMS&
Task is synchronous and background.
For email, I have created another step mail taking the variable
po_items from the workflow container.
I am not getting the item details in mail.
Am I missing anything here ? Is binding OK ?
How to check if po_items in the workflow container is filled ?
Please advise.
Thanks for bearing a novice,
~ abaper

Hi,
Check if the BO method is also returning the data in a multiline export parameter.
Also check if you are setting the export parameter value correctly using SWC_SET_TABLE.
Try testing the BO method individually in SWO1 and check if it is returing the correct data.
Also check in the workflow whether the attribute POITEMS is of the same datatype as the export parameter and is marked multiline in both workflow and task container.
Also check the workflow log after execution to check where exactly the workflow is failing.
Hope this helps!
Regards,
Saumya

Similar Messages

  • Clarification needed in the Fault Handling Framework(Error Hospital)

    Hi,
    I need some clarification on Fault Handling Framework...
    Scenario:
    My BPEL Process is Asynchronous.(10.1.3.3.1) and I tryed to invoke the another BPEL Process( which is used to select the Fname from the table using DB Adapter) . In the Main BPEL Process I have the Fault handling Framework and I done necessary changes in the bpel.xml. This is successfully working for Invoke Activity when ever an Remote or Binding Fault occurs in the Sub-BPEL Process and this Fault is send to Fault-Policy.xml in the server(bpel/domains/default/config/fault-Policy) and works accordingly to the action mentioned in the policy xml....( I have also made changes in the fault-bindings.xml ).
    How ever this Framework is working fine for every actions.
    Need Clarification:
    1) Only the Binding and Remote faults will work for the Fault handling Framework.
    2) can we use User defined faults (Buissness Faults,,,) for this........because I used the User defined faults to invoke the fault-policy.xml and it won't works....
    3)Only Invoke Activity can be handled for this Framework or any Other Activity........
    4)How to handle other Activity in the Fault-policy.xml...
    5)Any difference for Asynchronous or Synchronous in this Fault Handling Framework.......
    I also referred the Oracle SOA Suite New Feauters PDF .......
    Can any one send me the related documents and try to help me on this.
    Please help me on this.......
    Thanks,
    Ashok.

    Hi Chintan,
    You are saying that Custom faults are also supported for fault-Policy.xml.
    I can't understand that 2nd answer you said. can you please explain how to use the Custom faults in the FaultHandlingFramework..
    My Scenario:
    I have 2 BPEL Process, BPEL1 will invoke the BPEL2 and if any remote fault or binding faults occurs in the BPEL 2 its returning the same fault to BPEL1 and here I am using FaulthandlingFramework , this fault send to fault-policy.xml and necessary action is took place succesfuly...(like retry, human intervention.....)
    But when I throw some CustomFaults(userdefinedFaults)in the BPEL2 , its returning as a remotefault to BPEL1. I don't know how to use the customFaults in the Fault handling framework.......
    Can you explain me in detail how to use custom faults in faulthandling framework...............
    Send me some related documents for this.....

  • Need some clarification in WSDL based Proxy & Business Services

    Hi,
    Whenever we configure a Proxy service or Business service based on a WSDL, we use to select Port option instead of Binding when selecting our WSDL for the proxy/business service. Now my ques is why we go for a port instead of binding? what is the difference between them?
    My ques may seem very basic but i have this doubt for long time so i am postin this.
    Thanks,
    Arun

    Hi Arun,
    In my opinion that is not such a big deal, and in most of the cases you can choose any of the options...
    I usually prefer port because it keeps the service name... If you are proxying someone else's service it is better to keep it in a way that the service consumer doesn't notice the difference...
    I'm guessing there are cases out there where the service consumer client requires that the binding operations be unchanged... But I've never came across with one of them...
    Hope that clarifies...
    Cheers,
    Vlad

  • Clarification for Pro 8 EULA

    I'd like to receive some clarification on an issue I
    certainly feel deserves it. Please keep in mind any reference to
    "original media" need not be digital at all or in any way under the
    control of Adobe before being loaded or converted to PDF format.
    Please reference the text from the EULA below (on an
    Acrobat-installed machine found at C:\Program Files\Adobe\Acrobat
    8.0\Acrobat\Legal\en_US):
    14.13.1.1 "Deploy" means to deliver or otherwise make available,
    directly or indirectly, by any means, an Extended Document to one
    or more recipients.
    14.13.1.2 "Extended Document" means a Portable Document
    Format file manipulated by Acrobat Professional Software to enable
    the ability to locally save documents with filled-in PDF forms.
    14.13.3 For any unique Extended Document, you may only
    either (a) Deploy such Extended Document to an unlimited number of
    unique recipients but shall not extract information from more than
    five hundred (500) unique instances of such Extended Document or
    any hardcopy representation of such Extended Document containing
    filled form fields; or (b) Deploy such Extended Document to no more
    than five hundred (500) unique recipients without limits on the
    number of times you may extract information from such Extended
    Document returned to you filled-in by such Recipients.
    Notwithstanding anything herein to the contrary, obtaining
    additional licenses to use Acrobat Professional shall not increase
    the foregoing limits (that is, the foregoing limits are the
    aggregate total limits regardless of how many additional licenses
    to use Acrobat Professional you may have obtained).
    As I currently interpret these lines in regards to form
    submission and Usage Rights 14.13.3 sentence a) refers to the
    extraction of information from 500 unique instances of the document
    or a hardcopy representation thereof. Since this sentence refers to
    the Extended Document which is inherently an instance of the file
    itself I have interpreted as others have that the ultimate
    determinant and initial starting point for scope of these terms
    would be the file itself. Many developers are thus designing their
    apps to assume the role of file-instance tracking where, for
    example, a new package file could be manually created in
    Professional 8 from combined documents, have Usage Rights Enabled
    and then be re-used as a separate and digitally unique Extended
    Document after 500 is reached - per the terms of the EULA. In this
    way the instance of the file is tracked and removed from Deployment
    when the limit is met. There should be no insinuation in regards to
    this EULA discriminating against original media used to create the
    Extended Document, as these paragraphs specifically define the
    final "Extended Document" or the Deployed file itself as the basis
    for their language. I am not putting this in here to cause any
    debate, but merely to advise on my own and others' interpretation
    of the EULA in regards to what seems to be a very clear
    explanation, and a topic of interest to many developers who wish to
    make full use of the power Acrobat Professional 8 provides - while
    acting in accordance with said EULA.
    In short there should be no bearing on the original media or
    their likeness (not necessarily digital or under any control of
    Adobe whatsoever at this point - as in before being loaded into or
    converted by Acrobat) in regards to the final created PDF file as a
    Usage Rights Enabled, or dare I say, Extended Document, correct? In
    my own professional interpretation as a developer this would be a
    correct understanding of your EULA. After all I would hope that
    Adobe would foster the sort of development and progression in web
    applications that this would afford without having to curtail to
    specific languages or existing, marketed technologies.
    I would like to hear confirmation or clarification from an
    Adobe rep concerning this.
    I am mainly bringing this to light after reading the reference
    to hardcopy, but this should not be a problem as this clearly
    refers to the "extraction of information from...any hardcopy
    representation of such Extended Document", which would be after the
    Extended Document is created and in regards to it's submission, and
    so I am also verifying the ability to use similar original media in
    the creation of a new Extended Document (and inherently a
    completely new file) to be Deployed as this does not seem to be
    contrary to the EULA. I do appreciate the time.

    quote:
    This is a user to user forum. Have you contacted Adobe
    Customer Support or cantacted an attorney about your legal
    question? An answer here is not binding on Adobe.
    Oh don't worry I'm not trying to bind anyone and I have sent
    a request to Adobe Customer Support but was hoping to gain insight
    on the re-use of original media used to create the PDF and what
    others' experiences may have been in regards to their professional
    adherence to the EULA.
    quote:
    Try asking your question in the Acrobat Windows or Acrobat
    Macintosh forum, as these forums deal with the Acrobat Standard of
    Professional products and not the conferencing product Acrobat
    Connect.
    Yes, I was hoping these forums deal with Acrobat Standard or
    Professional as I am talking about Acrobat Professional 8, I don't
    know why you think my question was related to Acrobat Connect, I
    don't even know what that is.
    Contrary to what seems to be the "trend" on most tech-forums
    nowadays it was my hope that any subsequent replies would focus on
    the issue and/or topic at hand, although I would agree that an
    official answer would come direct from Adobe. Did not mean to
    direct such an official inquiry to the public but I am attempting
    to engage in General Discussion here after all. I will certainly
    take your advice to push the issue with Adobe, however I am also
    interested in the interpretation of developers such as yourself.
    These things happen with such a vague EULA - although when I
    rationalize the very terms they have defined it does not seem so
    vague, which is where my desire for confirmation would come from.
    If no one else feels like providing any insight then I will
    certainly have to see if I can come to some finality with an Adobe
    rep.

  • Bind variable code takes more time to complete?

    Hello, My database is oracle11g.
    I have same plsql code and first one is without bind variable and second one is with bind variable. Usually, bind variable should take less time. But here
    the bind variable takes more time than the regular code... Can any one please explain why?
    SQL> alter system flush shared_pool;
    System altered.
    SQL> declare
    2 cursor c1 is select * from emp where rownum < 50;
    3 l_start NUMBER DEFAULT DBMS_UTILITY.GET_TIME;
    4 v_cnt number;
    5 begin
    6 for i in c1 loop
    7 SELECT count(*) into v_cnt
    8 FROM rate
    9 WHERE rate_id IN (SELECT rate_id
    10 FROM ratedetail
    11 WHERE benefit_id = i.benefit_id)
    12 AND effective_date =
    13 TO_DATE ('2011-01-23 00:00:00', 'yyyy-MM-dd HH24:MI:SS')
    14 AND rate_type_id = 1;
    15 end loop;
    16 DBMS_OUTPUT.PUT_LINE('total minutes....'||ROUND(ROUND((DBMS_UTILITY.GET_TIME - l_start)/100, 2)
    /60,3));
    17 end;
    18 /
    total minutes.....06
    PL/SQL procedure successfully completed.
    SQL> alter system flush shared_pool;
    System altered.
    SQL>
    SQL> declare
    2 cursor c1 is select benefit_id from emp where rownum < 50;
    3 l_start NUMBER DEFAULT DBMS_UTILITY.GET_TIME;
    4 v_cnt number;
    5 begin
    6 for i in c1 loop
    7 execute immediate 'SELECT count(*)
    8 FROM rate
    9 WHERE rate_id IN (SELECT rate_id
    10 FROM ratedetail
    11 WHERE benefit_id = :x)
    12 AND effective_date = trunc(sysdate)-202
    13 AND rate_type_id = 1'
    14 into v_cnt using i.benefit_id;
    15 end loop;
    16 DBMS_OUTPUT.PUT_LINE('total minutes....'||ROUND(ROUND((DBMS_UTILITY.GET_TIME - l_start)/100, 2)
    /60,3));
    17 end;
    18 /
    total minutes.....061
    PL/SQL procedure successfully completed.
    SQL>

    Shrinika wrote:
    Thanks for the clarification.. Now i understand...
    One final question on this thread before i close this thread....
    My database is set to CURSOR_SHARING=FORCE for some reason. It seems somebody applied a "quick and dirty fix" to "database is slow" problem. BAD PRACTICE
    My question is, when we use bind variable, does it parse the sql code every time? or does it reuse the execution plan?
    In my database, it reuse the execution plan... Just checking... When we set CURSOR_SHARING=FORCE, it should generate the execution plan
    for every unqiue sql code... Is that correct? Am i confusing?If by "parse" you mean a "hard parse" (which generates execution plan), then the answer is NO. As you observed, it reuses execution plan.
    For e.g. with CURSOR_SHARING=FORCE setting, following SQLs
    select employee_no, first_name, last_name from employees where dept_no = 10 ;and
    select employee_no, first_name, last_name from employees where dept_no = 20 ;would tend to reuse the same execution plan since both of these will be rewritten by oracle (before execution) as
    select employee_no, first_name, last_name from employees where dept_no = :SYS01 ;Hope this helps.
    Edited by: user503699 on Aug 14, 2010 3:55 AM

  • Difference between Direct binding ,  Web service Adapter and HTTP Binding

    Can any one help what is the differnce between
    *1) Direct binding*
    *2) Webservice Adapter*
    *3) HTTP Binding*
    I am trying to use the above service adapters as references in BPEL.
    I had invoked a web service hosted in OSB from BPEL via web service adapter and was successful
    On going through few docs came through the other two service adapters but was not able to figure out what exactly is the differnce .
    I learnt +"*Direct binding*"+ can be used to call OSB+ . How does it vary from Webservice Adapter+

    hi Eric ,
    Thanks for clarification ..
    OSB does not generate WSDL and web service adapter in BPEL mandates WSDL .
    I had to create WSDL separately and then feed into Web service adapter in BPEL to call OSB Proxy service. Though successful , felt its not an better approach.
    Please advice is there any way thatWSDL is generated in OSB itself . .if i try to create webservice on Proxy service the wsdl resulted from it has only binding and porty type .
    Is it the same case for ++Direct binding++ .I assume it should not be the case

  • Getting problem in binding DropDown List with table data in visual JSF

    Hi All,
    I am new to visual JSF.
    I am getting few problems while working over components.
    I have succeeded in binding data of Person table in a drop down list .
    By just drag drop ..it worked.
    But while connecting to external DB this drag drop mechanism didn't work for me .
    1st problem that i faced was by dragging method columns are not visible when i did right click-> bind to Data -> DataProvider window .
    But i am successfully printed table Data in backend ie: by putting
    for(int i=0; i<xn_white_listDataProvider.getAllRows().length;i++){
           System.out.println("  value :"+xn_white_listDataProvider.getValue("SUB_ID",xn_white_listDataProvider.getRowKey(Integer.toString(i))));
    }I am not getting how to set Items in dropdown1
    I tried putting
    HelloSh.xn_white_listDataProvider.options['XNODE.XN_WHITE_LIST.SUB_ID, XNODE.XN_WHITE_LIST.SUB_ID'but it didn't work while for person data table
      items="#{HelloSh.personDataProvider.options['PERSON.PERSONID,PERSON.NAME']}"it is working
    when i am writting items="24,28" in dropdown1 box
    & printing its value in static text Like
    <webuijsf:staticText id="staticText3" style="position: absolute; left: 72px; top: 120px" text="#{HelloSh.dropDown1.items}"/> it is printing fine .
    Plz help me in this regard.
    Any clarification if needed plz let me know.
    Thanks in advance.

    <h:selectOneMenu id="menu1" styleClass="selectOneMenu">
    <f:selectItems value="*#{selectitems.pc_DynamicPortletEdit.regList}*" />
    </h:selectOneMenu>When we bind the list to the h:selectOneMenu the code in the JSP will be as given above.
    My doubts here are
    1) But when i tried to bind the list to a selectonemenu the code in the JSP is looking like this one
    <h:selectOneMenu id="menu1" styleClass="selectOneMenu">
    <f:selectItems value="*#{selectitems.pc_DynamicPortletEdit.regList.regList.toArray}*" />
    </h:selectOneMenu>2) Also in the runtime instead of displaying the values in the dropdown, i am getting the object names (javax.faces.model.SelectItem@680d0ccc) in the drop down.
    What am I doing wrong? Any help here would be usefull for me.
    BTW,
    the code in the backing bean for setting the values is like this
    List dropListValue = new ArrayList();
        for (int x=0; x<result.length; x++){ //where result is array of string values              
            SelectItem tempSelect = new SelectItem();
            tempSelect.setLabel(result[x]);
            tempSelect.setValue(result[x]);
            dropListValue.add(result[x]);                      
    this.setRegList(dropListValue );The bean is in request scope only.

  • Binding Parameters of EXTSRV-PROCESS

    Hi,
    We are using adobe forms for PCR approval using the Business object method EXTSRV-PROCESS. This business object when entered in the task requires the follwing parameters as binding elements,
    <b>Import parameters</b>
    MODE
    REQUEST_NO
    DESCRIPTION
    IFV
    <b>Export Parameters</b>
    PROCSTATE
    From a few old SDN threads i found that the value for IFV can be 'A' or 'P' based on the requirement.I am unable to find the complete details about these parameters.Can anyone explain me the details of all these parameters particularly their use and possible values.
    Thanks,
    Prasath N

    Hi,
    Thanks for that reply. Just need some more clarifications.
    1. <b>The processing mode IFV is 'P' or 'A'</b>
    Is there any other processing modes other than these two?
    2. <b>The PROCSTATE returns the function code for the button pressed.</b>
    Can you let me know what are the function codes that are returned while we press <b>"Back to Author"</b> <b>"Complete"</b> and <b>"Exit"</b> buttons. I am asking this bcos i read in one of your previous threads  that "Exit" button does not return anything. I checked with the condition step in the standard 2 step approval workflow - WS50000031. It has the following statuses for PROCSTATE
       APPROVED
    (ii)  NOTAPPROVED
    (iii) FORAPPROVAL
    (iv)  CLOSED
    Thanks,
    Prasath N

  • SOA / SOAP - Direct Binding

    Hello,
    I have already searched and googled for plenty for online resources about the question, although they haven't really made my concepts clear.
    I am following this document - Using the Direct Binding Invocation API
    Section : 36.1 Introduction to Direct Binding
    for clarifications about Direct-Binding.
    Objective : Interaction between OSB and SOA Suite Components(BPEL, Mediator).
    Question 1: Why would I use a "direct-binding", instead of a "web/soap binding" ? What are the (dis)advantages ?
    I am quoting snippets from the aforementioned document, around which I have some doubts.
    [Document] A common way to invoke a composite is to use SOAP over HTTP.
    [Question.1]  What are other ways of invoking a composite ? I am aware of SOAP over JMS, however, never used it.
    [Document]  This is enabled by creating a SOAP service for your composite using web service binding. Direct binding enables Java clients to directly invoke composite services, bypassing the intermediate conversion to XML required with web service binding.
    [Question.2]  What I interpret this is : Composite + WebService Binding = SOAP Service of my Composite. I added a "Direct Binding" to the composite and deployed the service. The deployed concrete "directWsdl"  contained 2 auto-generated bindings for SOAP1.1 and SOAP1.2. The Endpoint URL contained "t3" URL. Now the question is, if the aim of direct binding was to avoid to conversion into XML, as with WebService binding, then, why is the deployed directWsdl contains SOAP 1.1 and SOAP1.2 bindings ?
    Any pointers to some theoretical books / resources will help !
    Thanks !

    Direct binding avoids intermediate conversion to XML because an XML Object on client side does not need to be serialized as XML, sent over HTTP(or other transports), deserialized at server and converted to XMLObject again. Client will directly invoke the server side method using RMI and passing the XML object as the input (may be via the direct binding API) this should probably save some processing. But keep in mind that it is not the only reason to use Direct Binding. See the documentation on Direct Binding to identify other benefits or use cases where direct binding may be a good idea.
    Oracle SOA Suite Transport (SOA-DIRECT)

  • Authenticated Bind succeeds but "This server is not responding"

    Hey everyone,
    I have a "from scratch"  magic triangle setup. AD has 2 DC's in a domain named domain.priv, 1 Lion (10.7.4) OD server successfully bound to AD and authentication is working flawlessly and fast! There are a handful of clients running SL which have mobile homes. There are also a handful of Lion clients with mobile homes.  DNS is running on AD.
    Here's the rub. I can bind the SL clients to AD and OD just fine.  I do an authenticated bind to OD so that it creates the computer record.  On the Lion clients I bind them to AD without a problem and OD without and error message however once I bind Directory Utility has a red light stating "This server is not responding".  Search paths are correct, pinging works the server works. Because authentication and mobile homes are working I think it's fairly safe to assume DNS is setup properly.
    For clarification, I have a script that does the binding but I promise I've tried every available option in dsconfigldap without success.  I've obviously tried using the GUI as well with no luck.  I've tried turning on SSL and no SSL.  I've tried enabling other security options without success as well. A work around I have found for the Lion clients was first do an authenticated bind to create the computer record and add it to appropriate computer groups then unbind the client and rebind UNauthenticated. Binding without authentication works perfectly and the client never loses contact with the OD server.
    The reason I am posting this problem is because I am finally getting around to adding a secondary OD server for replication. I do not have the option to do an unauthenticated bind with OS Server and I have not found a way to successfully setup a replica without binding first, obviously.
    I will post log files as needed but I have not found anything that is out of the ordinary except for:
    9/20/12 7:34:16.560 PM servermgrd: -[PasswordServerPrefsObject getSearchBase]: Unable to locate search base: -1 Can't contact LDAP server
    9/20/12 7:34:16.562 PM servermgrd: -[PasswordServerPrefsObject loadXMLData]: Unable to locate passwordserver config record's plist attribute: -1 Can't contact LDAP server
    9/20/12 7:34:16.564 PM servermgrd: -[PasswordServerPrefsObject getSearchBase]: Unable to locate search base: -1 Can't contact LDAP server
    9/20/12 7:34:16.567 PM servermgrd: -[PasswordServerPrefsObject saveXMLData]: ldap_modify_ext_s of the passwordserver config record's plist attribute: -1 Can't contact LDAP server
    It goes on like that...
    Also, IPv6 is not setup on the AD DNS servers. Not sure that matters but I figured I should put it out there.
    Any help or ideas of where to look would be greatly appreciated!  Thanks!
    Nick.

    I ended up opening a ticket with Apple and the cause has been identified and even a "fix"!
    Turns out that I skipped a vital step prior to binding to AD or setting up the OD Master; preparing the server to connect to another directory.
    It's necessary to go to Server Admin, select Open Directory, Settings, then Change. Select "Connect to another directory" and then continue. After that the normal steps should be taken; Connect to AD with Directory Utility and then Create Open Directory Master with Server Admin.
    Since I have a test enviroment that consists of 1 week old backups of the AD Domain Controllers and OD Master I decided to destroy the current OD and start over and testing this out.  Guess what? Everything works as it should. Bount a couple of Lion clients, tested management, and even created a replica with the GUI!
    Here's the rub...
    In order to keep my current environment in tact (computers and computer groups) I exported all of the computers and computer groups from WGM prior to destroying the Open Directory Master. Once I completed setting everything up and created a new Directory Master I reimported the archive. With this method all currently I was back to square one. SL clients were bound, I could unbind and re-authenticaed bind with no problems. Lion clients however, had the same issue, could not bind with authentication. Fail.
    I also tried exporting the computers and computer groups from WGM prior to destroying the Master. Set everything back up, imported the computers and computer groups. Nice part is that new binds both SL and Lion work wonderfully. However, any machines that were already bound don't work. I assume this is because even though the Kerberos realm has the same name, there has to be some differences in hash or whatever else Kerberos is using for encryption. There are log entries telling me about all the computers trying to connect that the server can't find in it's database.
    Where to go from here?
    Not sure. How do I find out what is broken in the Archive? I know that 10.7 took out the option of -merge in slapconfig which may or may not have worked here. Knowing what the "Connect to another directory" option in Server Admin is doing would help out greatly. Not knowing why that simple step does changes everything is deflating to say the least.
    I should be talking to an Apple Engineer tomorrow. I will post back.
    Nick.

  • Currency reset when using commit binding in UIX page

    I have 3 views on this page in a master-detail-detail relationship.
    1) The first should NEVER change currency (it's selected on the previous page).
    2) the other two have range bindings associated with them
    3) the selection on the second view drives the 3rd
    4) the selection on the third (CHANGES AN EDITABLE ROW)
    PROBLEM IS THIS:
    When submitting changes to the 3rd view, I call the "Commit" action binding for the datacontrol; doing so seems to be resetting even the first view. How can I commit the data to the DB without resetting row currency on all view?
    Thanks in advance,
    Sacha

    A quick clarification. By reset I really mean re-executed; currency is changed to the first row for every view...
    Any idea how this can be avoided?

  • Question about session variables and binding

    Hi All,
    I'm a newbie with Application Express. I've gone through several tutorials and a book, and now I'm actually getting started with apex. My first adventure is a tiny little form, where all you do is fill it out and it sends an email. Pretty simple.
    And, i have it working just fine - but I have a question about something I don't quite understand. Basically, I am generating the email text in a page process. And some of the form fields work fine if i reference them as *:ACCT_NAME*, but some give me the dreaded "not all variables bound" error. For the ones that give me the error, I can reference them like V('ACCT_NAME').
    So, as a newbie, I'm a little confused. When is it appropriate to use the V function, and when it is appropriate to use binding? Why would one of the fields work with binding but not another from the same form?
    Thanks for any clarification you can offer,
    Lisa

    Lisa,
    A bind variable is a place holder variable available in an environment.It is used quite frequently(outside Apex Context) in SQL and PLSQL scripts and especially in Dynamic SQL statements.Many times using a bind variable gives better performance. In the Apex environment,page items and many other variables related to the session are available as bind variables and hence their value can be referred in SQL,PLSQL contexts as :VARIABLE_NAME.
    Now V() function is an apex specific function which returns the value of an apex session variable outside the apex environment. So as Machaan pointed out, it is used in
    procedures and triggers that gets called from within an apex session. This is required since the bind variables themselves are not directly available in the SQL environment but their values from the corresponding session can be accessed by this apex built-in function.
    The length of any Bind variable name is limited to 30 characters, this is a limitation inherited from Oracle SQL itself and hence session variables(page or application items) whose name has a length which exceeds 30 characters cannot be used as the :ITEM_NAME format. In such cases you would have to use the v() method again. This might be happening in your case.

  • Binding Basic Questions

    Noob questions...
    Can you help me figure out why the following won't work for me?  I am so frustrated!
    //MyComponent.mxml
    <VBox:etc...>
    [Bindable]
    public var url:String;
    public function setAndCallService():void {
    url = "http://localhost:8888/blah/blah/blah";
    serv.send();
    <mx:HTTPService id="serv"
                url="{url}"
                result="serv_result(event);"
                resultFormat="e4x"
                fault="serv_fault(event);" />
    private function serv_fault(evt:FaultEvent):void {
         trace("serv fault occurred: " + error.text);
         trace("url " + url);
         error.visible = true;
    //... the rest of the file ...
    What occurs is that the serv.send() gets called, and serv_fault is then called and the first trace line indicates that no URL was given to the HTTPService component.  and yet the url gets printed out by the second trace line correctly as "http://....blah/blah".
    If you have any extra time, might you be able to explain why if I have [Bindable] set for a private property, why I also need [Bindable] by the getter/setter for that property (and which?  the getter or the setter?
    Thanks very much.
    In addition, if you've got time to explain any/all of the following...
    1.  I know this is probably very stupid, but if objects are passed by reference in flex, why do i need to bind them?  Aren't I always seeing the single instance (and its updates) wherever I have a reference to it (in various components to which i've passed the object)?
    2.  If i have a private property in a component, can a child component see this private property, or does it need to be made public?
    3.  If i set a private property to be [Bindable], why then would i also need to add [Bindable] to the getter/setter for that property?  And when should i set the getter to Bindable vs. the setter?
    Thanks again for all the clarification ahead of time.

    1.You don't always need to make use of binding. For instance, in your example, I don't think you need a separate url property and/or binding.  Just use the HTTPService's property directly.
    2. Other components will not be able to see private properties. So you could make it public or expose it via get/set functions.
    3. Because you are actually defining two different properties. The private property and the property defined by the get/set functions.
    You probably only need to make the public get/set functions bindable (not the private property). And it doesn't really matter if the [Bindable] is specified before the get/set (in most cases), because it applies to the property, not the functions.
    The following documentation may be helpful:
    http://www.flexafterdark.com/docs/Flex-Binding
    Let me know if that helped at all.
    Ben Edwards

  • Report Performance with Bind Variable

    Getting some very odd behaviour with a report in APEX v 3.2.1.00.10
    I have a complex query that takes 5 seconds to return via TOAD, but takes from 5 to 10 minutes in an APEX report.
    I've narrowed it down to one particular bind. If I hard code the date in it returns in 6 seconds, but if I let the date be passed in from a parameter it takes 5+ minutes again.
    Relevant part of the query (an inline view) is:
    ,(select rglr_lect lect
    ,sum(tpm) mtr_tpm
    ,sum(enrols) mtr_enrols
    from ops_dash_meetings_report
    where meet_ev_date between to_date(:P35_END_DATE,'DD/MM/YYYY') - 363 and to_date(:P35_END_DATE,'DD/MM/YYYY')
    group by rglr_lect) RPV
    I've tried replacing the "to_date(:P35_END_DATE,'DD/MM/YYYY') - 363" with another item which is populated with the date required (and verified by checking session state). If I replace the :P35_END_DATE with an actual date the performance is fine again.
    The weird thing is that a trace file shows me exactly the same Explain Plan as the TOAD Explain where it runs in 5 seconds.
    Another odd thing is that another page in my application has the same inline view and doesn't hit the performance problem.
    The trace file did show some control characters (circumflex M) after each line of this report's query where these weren't anywhere else on the trace queries. I wondered if there was some sort of corruption in the source?
    No problems due to pagination as the result set is only 31 records and all being displayed.
    Really stumped here. Any advice or pointers would be most welcome.
    Jon.

    Don't worry about the Time column, the cost and cardinality are more important to see whther the CBO is making different decisions for whatever reason.
    Remember that the explain plan shows the expected execution plan and a trace shows the actual execution plan. So what you want to do is compare the query with bind variables from an APEX page trace to a trace from TOAD (or sqlplus or whatever). You can do this outside APEX like this...
    ALTER SESSION SET EVENTS '10046 trace name context forever, level 1';Enter and run your SQL statement...;
    ALTER SESSION SET sql_trace=FALSE;This will create a a trace file in the directory returned by...
    SELECT value FROM v$parameter WHERE name = 'user_dump_dest' Which you can use tkprof to format.
    I am assuming that your not going over DB links or anything else slightly unusual?
    Cheers
    Ben

  • How to Dene a Data Link Between Queries: Bind Variables

    This is an interesting topic and I cannot get it to work using Bind Variables.
    I have 2 queries: Q1 and Q2. Q2 needs c_id, account_code and account_type from Q1.
    Whe I run the data template below, I get only the data for Q1.
    Now people may argue that there is no data in Q2 for the relevant clause. So if I even remove the where clause in Q2 I still get no joy i.e Data appears for Q1 but not for Q2
    <dataTemplate name="FLCMR519_DATA_SET" description="Termination Quote Report">
         <parameters>
              <parameter name="cid" dataType="number" defaultValue="1"/>
              <parameter name="p_cln_id" dataType="number" defaultValue="62412"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[SELECT qm.qmd_id,
    qm.contract_period,
    qm.quo_quo_id||'/'||qm.quote_no||'/'||qm.revision_no reference_no,
    qm.contract_distance,
    qm.mdl_mdl_id,
    q.qpr_qpr_id,
    q.quo_id,
    q.drv_drv_id,
    qm.revision_user username,
    pb.first_name||' '||pb.last_name op_name,
    pb.telephone_no,
    pb.facsimile_no,
    pb.email,
    q.c_id c_id,
    q.account_type account_type,
    q.account_code account_code,
    m.model_desc,
    ph.payment_description payment_head_desc,
    cl.fms_fms_id,
    cl.start_date,
    cl.end_date,
    cl.actual_end_date,
    cl.con_con_id,
    cl.cln_id,
    cl.term_qmd_id term_qmd_id,
    qm2.contract_period term_period,
    qm2.contract_distance term_distance
    FROM quotations q,
               quotation_models qm,
               contract_lines cl,
               personnel_base pb,
               models m,
               model_types mt,
               payment_headers ph,
               quotation_models qm2
    WHERE q.quo_id = qm.quo_quo_id
           AND cl.cln_id = :p_cln_id
           AND qm.qmd_id = cl.qmd_qmd_id
           AND qm2.revision_user = pb.employee_no (+)
           AND qm.mdl_mdl_id = m.mdl_id
           AND m.mtp_mtp_id = mt.mtp_id
           AND qm.payment_id = ph.payment_header_id
           AND qm2.qmd_id (+) = cl.term_qmd_id
    ]]>
              </sqlStatement>
              <sqlStatement name="Q2">
                   <![CDATA[SELECT ea.c_id,                  ea.account_type,ea.account_code,ea.account_name
    FROM external_accounts ea
                 WHERE ea.c_id = :c_id
                   AND ea.account_type = :account_type
                   AND ea.account_code = :account_code
    ]]>
              </sqlStatement>
         </dataQuery>
    </dataTemplate>

    Defining dataStructure section is mandatory for multiple queries.

Maybe you are looking for

  • HT5552 Can I use my Russian debit card in American iTunes Store?

    I have a VISA card from a Russian bank, but I want to use American iTunes Store. Can I use the card for iTunes Store in US? Also, I already have 10$ on my account, and, as far as I know, i can't change my payment method right now. How do I chage it t

  • Drag and Drop in a JTextArea (JTextPane)

    Hello everybody! I�ve a litte problem. I�m writing an online HTML-Editor as an Applet. Everything works fine, only drag&drop isn�t implemented yet. I�m using a JTextArea and a HTMLEditorKit in a SplitPane. Now i want to add drag&drop to each Pane. I

  • IPhone locked up while viewing photo?

    The other day my wife was looking at pics in her Camera Roll on her week 43 iPhone 3GS, when it just totally locked up. There was a picture on the screen, but no response to any touch input on the screen OR on any buttons whatsoever. Even tried power

  • Wildcard in MaxL Script??

    Can you use a wildcard in a MaxL script to find a file in a specific location? Example>> import database app.database data from local text data_file 'C:\HyperionDataFiles\dataload*.dat' using rules_file 'C:\hyperion\AnalyticServices\app\app\database\

  • How to kill the apps process?

    Is my Yoga tab 2 1050F In this few weaks, after turn on the tab 2-3 hours, RAM has 500m onlyand cannot kill the apps process at all... WHY? Standby under than 24hours ... few weaks before that is 1 week standby times. I was turn on ALL power save fun