LOV from taskflow

Hi,
I have a strange error. I try to open a popup LOV like in sample 069, from Frank Nimphius :
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/69-custom-lov-with-btf-276178.pdf
but I encountered the follwing error: Everything works ok in Jdeveloper, but when I deploy to Weblogic server, the popup don't open.
Jdeveloper Studio Edition Version 11.1.2.2.0 , Build JDEVADF_11.1.2.2.0_GENERIC_120418.2212.6183.1
Oracle WebLogic Server Version: 10.3.6.0 with Sherman updates 2 :
http://tompeez.wordpress.com/2012/05/09/patch-numbers-for-adf-runtime-libraries-update-to-11-1-2-2-0/
I check bugs from OTN for the weblogic, nothing similar.
I check bugs for Jdeveloper, nothing similar.
main.jspx :
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="main.jspx" id="d1">
<af:form id="f1">
<af:commandImageLink text="call Lov" id="cil1" action="lovcall" useWindow="true"
windowEmbedStyle="window" windowHeight="600" windowWidth="600"/>
<af:commandButton text="call List of Values" id="cb1" action="lovcall" useWindow="true"
windowEmbedStyle="inlineDocument"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
lovpage.jspx :
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="lovpage.jspx" id="d1">
<af:form id="f1">
<af:outputText value="This is LOV Page" id="ot1"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
adfc-config.xml:
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<view id="main">
<page>/main.jspx</page>
</view>
<task-flow-call id="lovtaskflow">
<task-flow-reference>
<document>/WEB-INF/lovtaskflow.xml</document>
<id>lovtaskflow</id>
</task-flow-reference>
<run-as-dialog>
<display-type>
<inline-popup/>
</display-type>
</run-as-dialog>
</task-flow-call>
<control-flow-rule id="__1">
<from-activity-id>main</from-activity-id>
<control-flow-case id="__2">
<from-outcome>lovcall</from-outcome>
<to-activity-id>lovtaskflow</to-activity-id>
</control-flow-case>
</control-flow-rule>
</adfc-config>
lovtaskflow.xml :
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<task-flow-definition id="lovtaskflow">
<default-activity>lovpage</default-activity>
<data-control-scope>
<shared/>
</data-control-scope>
<view id="lovpage">
<page>/lovpage.jspx</page>
</view>
<task-flow-return id="return">
<outcome>
<name>return</name>
</outcome>
</task-flow-return>
<control-flow-rule id="__1">
<from-activity-id>lovpage</from-activity-id>
<control-flow-case id="__2">
<from-outcome>return</from-outcome>
<to-activity-id>return</to-activity-id>
</control-flow-case>
</control-flow-rule>
<visibility>
<url-invoke-allowed/>
</visibility>
</task-flow-definition>
</adfc-config>

similar case
SelectOneChoice inside Table with ValueChangeListener, passing parameters
did u try with autosubmit as well???..

Similar Messages

  • Can't create multiple dependent LOVs from the same bind variable

    Hi all,
    I'm having difficulty creating multiple dependent LOVs from queries based on the same bind variable in my JSF application (JDev 10.1.3.1). Basically I have a static LOV in a af:selectOneChoice component from which users select a value which then becomes the bind variable value for two separate queries that generate two different dependent LOV. Having developed the code along the lines of Steve Muench 's blog (http://radio.weblogs.com/0118231/2006/04/03.html#a685), the first dependent LOV works really well. The first dynamic LOV gets refreshed whenever the list from the static LOV changes, and I can execute other queries based on the values selected.
    The problem arises when I want to create the second dynamic/dependent LOV that has the same bind variable based on the same selected value from the static LOV. Here I would also like the functionality whereby the second dynamic LOV is also refreshed after the selected value in the static LOV changes. Thinking that all I had to do was replicate the methodology used in creating the first dependent LOV, I created the second iterator, invokeAction and other binding components in the PageDef. The executable section now looks like the following:
    <iterator id="SelectStaticQueryViewObjIterator"
                  Binds="SelectStaticQueryViewObj" RangeSize="-1"
                  DataControl="DMSApplicationModule1DataControl"/>
    <invokeAction id="refreshDynamicQuery1BindParameter"
                  Binds="ExecuteWithParams1" Refresh="prepareModel"
                  RefreshCondition="#{empty requestScope.VariableChanged}"/>
    <iterator id="SelectDynamicQuery1ViewObjIterator"
                  Binds="SelectDynamicQuery1ViewObj" RangeSize="-1"
                  DataControl="DMSApplicationModule1DataControl"/>
    <invokeAction id="refreshDynamicQuery2BindParameter"
                  Binds="ExecuteWithParams2" Refresh="prepareModel"
                  RefreshCondition="#{empty requestScope.VariableChanged}"/>
    <iterator id="SelectDynamicQuery2ViewObjIterator"
                  Binds="SelectDynamicQuery2ViewObj" RangeSize="-1"
                  DataControl="DMSApplicationModule1DataControl"/>I now have a problem whereby everytime I change the value of the static LOV, multiple HTML components for the same ADF component are being generated (the LOVs are refreshed via PPR). The surprising thing is that this duplicating behaviour applies to all ADF components listed after the first dynamic LOV in the *.jspx source. For example, I have a <af:outputText="Test Text"/> component created after the first dynamic LOV. Each time the value in the static LOV changes, a duplicate HTML component is created. This also applies to the 'related' second dynamic LOV which is bound to a af:selectOneChoice component - multiple dropdown lists are created. I've checked with the browser's Page Source and there are actually multiple html components being generated with their own unique ADF-generated IDs. I've tried all different options for the Referesh and RefreshCondition attibutes in the second invokeAction element but nothing seems to eliminate this issue.
    Any suggestions about how I might create multiple dependent LOVs from the same bind variable that get refreshed when the selected value changes would be greatly appreciated.
    Thanks
    George

    Hi all,
    Just updating the thread on how I've overcome this issue. As it stood the manner in which I was trying to solve my use case, as described above, was creating an absolute mess. Then with a blank sheet of paper I quickly realised that a much simpler solution would be to create a whole series of master-detail VOs and build my components around them. Thankfully I haven't had any issues going down this path as yet.
    Cheers
    George

  • Dymanic parameter with LOV from command demanding a parameter

    Hello,
    I have a problem with creating dynamic parameters. I use different query to form list of values for the main query parameter. Let's say this parameter is manufacturer_name, so I'm selecting distinct manufacturer_name values from some table. But every time I run this report I want report to promt me with parameter (some special tag) for select some filtered manufacturers. But when I create LOV query with parameter (tag), report keeps asking me for this parameter forever and never gets to show parameter promt for the main query with LOV from the first one. Am I doing something wrong or what I want is just not possible?
    Thanks
    gemi

    You might have given a default value to a main report command level parameter. Go to database expert in main report and edit the command level parameter and remove the default value in it.
    and check the report.
    Regards,
    Raghavendra

  • Create LOV from OID entries

    I do not know how to build a LOV from the available list of user ids in Internet Directory. My intention is to use the Internet Directory as my "system of record" for Personnel and reference the User ID in records in the database. Is there a way to build a materialized view for this? or is there some other mechanism you can point me to?
    I am building a slew of data capture forms of which I would like to enter the userid of the logged in user. I know how to use wwctx_api.get_user_id however my user may want to override their name with someone else.
    Ergo, my need for an LOV.

    I had the same problem
    not sure about going to the tables direct, a little messy
    have a look a d the OID developers guide there is an example of querying the OID using DBMS_LDAP
    here is my fucntion to get the parameter that i need form OID it returns any array of records then you can process the array
    type user_profile_rec is record (
                                            first_name varchar2(100)
                                            ,last_name varchar2(100)
                                            ,cn           varchar2(100)
                                            ,dn          varchar2(200)
                                            ,displayname          varchar2(200)
                                            ,jpegPhoto     varchar2(10000)
                                            ,orclisvisible varchar2(10));
    type profile_array is table of user_profile_rec index by binary_integer;
    function user_profiles ( ldap_host VARCHAR2 default portal.wwsec_oid.GET_OID_HOST
                                  ,ldap_port VARCHAR2 default portal.wwsec_oid.GET_OID_PORT
                                  ,ldap_user VARCHAR2
                                  ,ldap_passwd VARCHAR2
                                  ,ldap_base VARCHAR2
                                  ,search_letter varchar2
                                  ) return profile_array
    as
    -- this function uses the dbms_ldap package to query the ldap repsoitory
    -- to get the user details.
    -- this will search the named source
              -- create ldap parameters
              retval PLS_INTEGER;
              my_session DBMS_LDAP.session;
              my_attrs DBMS_LDAP.string_collection;
              my_message DBMS_LDAP.message;
              my_entry DBMS_LDAP.message;
              entry_index PLS_INTEGER;
              my_dn VARCHAR2(256);
              my_attr_name VARCHAR2(256);
              my_ber_elmt DBMS_LDAP.ber_element;
              attr_index PLS_INTEGER;
              i PLS_INTEGER;
              my_vals DBMS_LDAP.STRING_COLLECTION ;
    --          ldap_host VARCHAR2(256);
    --          ldap_port VARCHAR2(256);
    --          ldap_user VARCHAR2(256);
    --          ldap_passwd VARCHAR2(256);
    --          ldap_base VARCHAR2(256);
              -- value to hold the return string from ldap
              val DBMS_LDAP.STRING_COLLECTION ;
         -- create the varray variables ( define find in the package spec      
              profile_rec user_profile_rec;
              profile_varray profile_array;
              begin
              retval := -1;
              /*ldap_host := 'uk-abi-sap01.uk.evotecoai.com' ;
              ldap_port := '4032';
              ldap_user := 'cn=orcladmin';
              ldap_passwd:= '1vindaloo';
              ldap_base := 'cn=users,dc=uk,dc=evotecoai,dc=com';
              -- Choosing exceptions to be raised by DBMS_LDAP library.
              DBMS_LDAP.USE_EXCEPTION := TRUE;
              my_session := DBMS_LDAP.init(ldap_host,ldap_port);
              -- bind to the directory
              retval := DBMS_LDAP.simple_bind_s(my_session,ldap_user, ldap_passwd);
              -- issue the search
              my_attrs(1) := 'sn'; -- retrieve all attributes
              my_attrs(2) := 'dn'; -- retrieve all attributes
              my_attrs(3) := 'cn'; -- retrieve all attributes
              my_attrs(4) := 'givenname'; -- retrieve all attributes
              my_attrs(5) := 'orclisvisible'; -- retrieve all attributes
              my_attrs(5) := 'displayname'; -- retrieve all attributes
              my_attrs(6) := 'jpegPhoto'; -- retrieve all attributes
              retval := DBMS_LDAP.search_s(my_session, ldap_base,DBMS_LDAP.SCOPE_SUBTREE,'sn='||UPPER(search_letter)||'*',my_attrs,0,my_message);
              -- count the number of entries returned
              retval := DBMS_LDAP.count_entries(my_session, my_message);
              -- get the first entry
              my_entry := DBMS_LDAP.first_entry(my_session, my_message);
              entry_index := 1;
              -- Loop through each of the entries one by one
              while my_entry IS NOT NULL loop
              -- print the current entry
                        -- return the dn for the current user row
                        my_dn := DBMS_LDAP.get_dn(my_session, my_entry);
                        profile_rec.dn := my_dn;
                        -- gets the arribs the check to make sure one is returned then assign to the array
                             val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'givenname' );
                        -- check if returned
                        if val.COUNT > 0 then
                        -- loop thought the values
                        FOR i in val.FIRST..val.LAST loop
                             -- set the value in the array
                             profile_rec.first_name := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
                        -- get the sn
                        i:=1;
                        val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'sn' );
                        if val.COUNT > 0 then
                        FOR i in val.FIRST..val.LAST loop
                             profile_rec.last_name := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
                        -- get cn
                        i:=1;
                        val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'cn' );
                        if val.COUNT > 0 then
                        FOR i in val.FIRST..val.LAST loop
                             profile_rec.cn := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
                        -- get orclisvisible
                        i:=1;
                        val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'orclisvisible' );
                        if val.COUNT > 0 then
                        FOR i in val.FIRST..val.LAST loop
                                  profile_rec.orclisvisible := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
                        -- get orclisvisible
                        i:=1;
                        val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'displayname' );
                        if val.COUNT > 0 then
                        FOR i in val.FIRST..val.LAST loop
                                  profile_rec.displayname := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
                        -- get orclisvisible
                        i:=1;
                        val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'jpegPhoto' );
                        if val.COUNT > 0 then
                        FOR i in val.FIRST..val.LAST loop
                                  profile_rec.jpegPhoto := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
              -- itterate thoguht the array
              -- set the values of the record to the array
              profile_varray(entry_index).cn := profile_rec.cn;
              profile_varray(entry_index).first_name := profile_rec.first_name;
              profile_varray(entry_index).last_name := profile_rec.last_name;
              profile_varray(entry_index).dn := profile_rec.dn;
              profile_varray(entry_index).displayname :=profile_rec.displayname;
              profile_varray(entry_index).orclisvisible :=profile_rec.orclisvisible;
              profile_varray(entry_index).jpegPhoto :=profile_rec.jpegPhoto;
              my_entry := DBMS_LDAP.next_entry(my_session, my_entry);
              entry_index := entry_index+1;
              end loop;
              -- unbind from the directory
              retval := DBMS_LDAP.unbind_s(my_session);
              -- return the arreay
              return profile_varray;
    end user_profiles;

  • Can I subclass an LOV from another form?

    I'm not well-versed in Oracle forms. According to Forms documentation, a restriction of LOV's is "The LOV must exist in the active form module." But is there any way to define the LOV in a library form - (like, form1.fmb) - and have form2.fmb use the LOV without also creating it in form2.fmb?
    Subclass-ing sounds like the way, but I can't figure out how to do that. The objective is to add an LOV to 5 forms by changing only the library form that they all attach, and without changing the forms themselves. I've been able to add a text item to the library form and recompiling the other 5 forms, but so far have not been able to add the LOV item this way.

    Yes, I can drag and drop the item into the target form, but I'm trying to avoid that, if possible. Sorry if my description is confusing.
    I'm working with a purchased application, and we try to minimize modifications to the baseline forms. I was able to add a text item to a data block defined in a library form, and when the 5 forms that need to display that item are compiled, they pick up the text item from the library form. I didn't have to do anything to the 5 'front-end' forms except compile them.
    I don't know the mechanics of forms compiles, so I may not be using the right terminology. Bottom line is, my change to the library or template form was propagated to the other forms at compile time - having made no changes to the target forms.
    When the user requested that this new field be validated against a database table, I expected that I would be able to add the LOV and the record group to the library form, and when I recompiled the other forms, the new LOV/RG would propagate to them, just as the new text item had done. However, when i do that, I get an error: 'Can't find swvpsuf_lov'.
    If I go into one of the target forms and add the lov, it does work. If I go into a form and drag the lov from the library form, it also works - but I didn't have to do that with the text item so I'm preplexed as to why I have to do it with the LOV.
    I'm just trying to find out whether:
    a) the only way to do this is by adding or subclassing the lov into each target form, OR
    b) there is some way to accomplish it by just adding the lov/rg stuff in the library form and recompiling the target forms - and how to do it.
    Thanks!

  • Dynamically remove LOV from item

    Hi All,
    i have 2 items, item A and item B. The value of item A determines if a LOV will be created from item B. When i have item A filled with a value so that we need a LOV on item B, i will dynamically build up the record group for this LOV and assign this LOV to item B. But when i then change item A so that no LOV must be used for item B, the previous LOV stays assigned to item B. How can i unassign this LOV from item B? Set_item_property('itemB',lov_name,''); doesn't work.
    Please help.
    Kind regards,
    Dave

    Thanks for the reactions.
    I checked my code again, and it was my fault.
    set_item_property('itemB',lov_name,''); does work, i only put it in the wrong place.
    Kind regards,
    Dave

  • Problem whit "This will be (an everlasting love)" from Natalie Cole

    Hello,
    I'd like to report a problem with iTunes Match and the song "This will be (an everlasting love)" from Natalie Cole.
    When I download or stream this song on another device I actually don't get this song but another one which is "Right back where we started" from Maxine Nightingale.
    Please tell me if you have the same problem and

    You need to report the problem to the store team (Report an problem with an item you bought from the iTunes Store, App Store, Mac App Store, or iBooks Store). I've always found them to be very helpful.

  • How can i remove a LOV from the item on runtime?

    dear firends
    i have a problem
    Ihave a tabular block.
    the item "element_value' could have free writen value or sometimes reistrected values
    if the value in :DETAIL.UVLS_ID is not null then a LOV is attchaed to the item"element_value" on runtime so that user select a avlaue from LOV.
    this code fire on WHEN-NEW-RECORD-INSTANCE
    BEGIN
    :DETAIL.UVLS_ID := RSK_GET_PKG.F_GET_ELM_VLS(P_ELM_ID);
    IF :DETAIL.UVLS_ID IS NOT NULL THEN
    SET_ITEM_PROPERTY('DETAIL.ELEMENT_VALUE',LOV_NAME,'CG$VALUESETDETAIL');
    Else
    -- SET_ITEM_PROPERTY('DETAIL.ELEMENT_VALUE',LOV_NAME,'NULL');
    null;
    END IF;
    END;
    my problem is
    i want to remove the LOV from the item"element_value" incase the
    :DETAIL.UVLS_ID is null.
    how can i do that
    please help
    Edited by: [email protected] on Sep 7, 2008 10:45 AM

    If I understood,
    You can assign a NULL lov to an item
    Set_Item_Property( ..., LOV_NAME, '' ) ;
    or
    IF case-a THEN
    Show_LOV ('A');
    ELSE
    &lt; NO LOV &gt;
    END IF;
    Regards

  • How to prevent LOV from displaying duplicates

    Hi all. I'm using JDev 10.1.3. I have a af:selectOneChoice component which is used to set search criteria. There are a few records with duplicate values. Is there a way for me to prevent the LOV from displaying duplicate values? thanks in advance.
    <af:selectOneChoice
         value="#{bindings.UserAckAnnualBalancesView1EdcDescription.inputValue}"
            label="EDC Description"
            valueChangeListener="#{backingExecuteBtn.alterEdcDescSearchVal}">
            <f:selectItems value="#{bindings.UserAckAnnualBalancesView1EdcDescription.items}"/>
    </af:selectOneChoice>

    John. I assume that you are suggesting that I do a SELECT DISTINCT. If so, then no I cannot change the underlying query. I want all the records, what I am actually looking for is a way to filter the items in the LOV.

  • How to close PopUp (from taskflow region)???

    Can someone, please, explain how to solve this use-case:
    I have PopUp in which I put a region (in which is a small TaskFlow consiting of 2 JSFFs). I want to have Cancel and OK buttons in both JSFFs in TaskFlow. How to close PopUp from within TaskFlow ??? I saw the TaskFlow Return component in ADF TaskFlow diagram components (in palette) but haven't found any help/documentation on it. Or, should I use Return listener on command button used to rise popup (but, still, how to close popup from taskflow?)?
    Any help would be great!
    Thanks in advance,
    Marko

    mimarko,
    Regions/Taskflows are meant to be isolated reusable components. They are not meant to
    have knowledge of their parent or container. That said, code contained with in a region should not attempt to reach out an modify the parent. Regions can fire contextual events that can be handled by a listener declared in the parent pages pageDef. However, attempting to close a popup from a context listener would be bad practice. The easiest fixt is to put the popup in the taskflow for your region. That will create a reusable popup that you can use through out your application.
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Af:commandToolbarButton to open a link but not navigate away from taskflow

    I would like to be able to have the following
    - a commandToolbarButton that when clicked upon downloads a document (by a simple URL call whos http response tells the browser to download the file, not open it)
    - when click on the arrow on the right of the button, get a list of other download/open options for the document
    To get a document/document rendition, we simply make a URL call, so the options in the command buttons drop down is simply goMenuItems that go the URL obtained from the backing bean. I want the same behaviour as a goMenuItem on the actual button when it is clicked on.
    I have the following
    <af:commandToolbarButton text="#{dlBndl.VIEWDOC_DOWNLOAD}" id="dlvtrm" >
    <f:facet name="popup">
    <af:menu text="" id="dlvtrm1">
    <af:goMenuItem text="#{dlBndl.VIEWDOC_OPEN_NATIVE}" id="dlvtrm2"
    destination="#{pageFlowScope.prprts.item.url}#{pageFlowScope.prprts.portletLinkPostfix}"
    rendered="#{pageFlowScope.prprts.item.nativeFileWebViewable}"
    targetFrame="_blank"/>
    <af:goMenuItem text="#{dlBndl.VIEWDOC_OPEN_PDF}" id="dlvtrm3"
    destination="#{pageFlowScope.prprts.item.webRenditionURL}#{pageFlowScope.prprts.portletLinkPostfix}"
    rendered="#{pageFlowScope.prprts.item.webViewableAvailable}"
    targetFrame="_blank"/>
    </af:menu>
    </f:facet>
    </af:commandToolbarButton>
    I can not work out how to have the button click go to a url like the goMenuItem's. I have tried adding an action to my taskflow and using that on my button, but its not working
    <url-view id="downloadNativeFile">
    <url id="dldv78">#{pageFlowScope.prprts.item.downloadNativeFileURL}</url>
    </url-view>
    <control-flow-case id="dldv82">
    <from-outcome id="dldv83">downloadNativeFile</from-outcome>
    <to-activity-id id="dldv84">downloadNativeFile</to-activity-id>
    </control-flow-case>
    Attempt 1:
    <af:commandToolbarButton text="#{dlBndl.VIEWDOC_DOWNLOAD}" id="dlvtrm" action="downloadNativeFile">
    when the button is clicked on, the file did ask to be saved, but then nothing else on my page works, i can not even click on the arrow of the button to see the drop down list of options
    Attempt 2:
    <af:commandToolbarButton text="#{dlBndl.VIEWDOC_DOWNLOAD}" id="dlvtrm" action="dialog:downloadNativeFile" useWindow="true">
    Now when the button is clicked on nothing happens, the page doesnt break though.
    Question: How do i get behaviour that when a user clicks on the actual commandToolbarButton it goes to a URL (like the goMenuItem) but does not break my page so i can carry on using my page.
    I have tried having an action, and then in my taskflow to go to a URL view,
    <af:commandToolbarButton text="Google"
    action="goToGoogle">

    i.e. with a goMenuItem/goLink you would have
    <af:goMenuItem text=""DOWNLOAD file"
    destination="http://download.oracle.com/docs/cd/E10316_01/ContentIntegration/Pdf/cis-administration-guide.pdf"
    targetFrame="_blank"/>
    <af:goLink text=""DOWNLOAD file"
    destination="http://download.oracle.com/docs/cd/E10316_01/ContentIntegration/Pdf/cis-administration-guide.pdf"
    targetFrame="_blank"/>
    i.e. i would like to do the exact same thing for the commandToolbarButton when you click on it, as if it was
    <af:commandToolbarButton text="DOWNLOAD file"
    destination="http://download.oracle.com/docs/cd/E10316_01/ContentIntegration/Pdf/cis-administration-guide.pdf"
    targetFrame="_blank"/>

  • How to get LOV from list of LOVs?

    Hi Everybody,
           I have one object which contains 3 LOVs. I can get the first and last values by using MIN() and MAX() functions . How can I get the middle value.?
    My object is of Date() datatype and the LOVs are like 9/15/09.
    Regards,
    Vasu.Ch.

    Hi Vasu,
    I'm not sure I understand your requirement. You have a list of values related to a Date type object. Using MAX will give you the latest date from this list and MIN will give you the earliest date. This you can achieve. However, you'd also like the "middle" date as well. What is you definition of the middle for date? Do you mean the date between the min and max dates?
    If so, you could try:
    = MIN([Date]) + ( (DaysBetween(MIN([Date]);MAX([Date]))) / 2 )

  • Referencing static LOV from plsql

    I have a number of static LOV's. How can I reference these in PL/SQL.
    For example, I am creating a report using PL/SQL so that I can create the exact layout I require. The data uses a number of list of values so I need to convert the value fields into the displays fields from the list of values using PL/SQL.
    How?

    Jezzer,
    It will depend on your version. If you are using 2.2 or 3.0, you could use the view APEX_APPLICATION_LOV_ENTRIES to access your lov values. It will automatically be limited to the workspace that your schema is associated with and then you can further qualify with the APPLICATION_ID and LIST_OF_VALUES_NAME. To see the view, navigate to Utilities > Application Express Views and query on lov.
    -- Sharon

  • Creating an LOV from function returning Varray

    I have a select statement which runs in PLSQL and runs in the SQL Commands of SQL Workshop, but when I try to use the select statement as an LOV, I keep getting "LOV query invalid, a display and a return value are needed, the columns names need to be different. if your query contains an in-line query, the first FROM clause.....must not belong to the in-line query." My select statement is as follows:
    select a.obj, a.ename from THE (select cast(getxmlnodes('filename.xml') as NodeTableType2 from dual) a;
    The function getxmlnodes reads an xml file and returns the nodes from my xml file. It works fine from SQLPlus etc. but the LOV balks. Can anyone out there help? Thanks

    For anyone who sees this. My select statement didn't work because I had put a
    ';' at the end of the statement. I accidentally left off the ; in one of my tests and the select statement worked like a charm. Everyone likes to have a person answer their own question.

  • Passing Request to a POPUP LOV from previous page

    Hi All,
    I'm stuck again :( and its urgent..
    I have a popup LOV and i want to populate values in it based on REQUEST coming from first page.
    If I click CREATE on first page POPUP LOV should display certain values and if I click UPDATE on first page, it should populate different set of values.
    Also when I navigate further from this page and return back, the LOV's should have values based on previous request selected.
    For this I have created an item P_REQ which stores value of request from first page i.e :P_REQ wil have values CREATE or UPDATE.
    Now I'm able to pass this value to a select list. However a POPUP list is not able to fetch this P_REQ value.
    MY query for LOV is as below
    select d1 d ,r1 r
    from
    (select name d1 ,ID r1,'C' up_cr
    FROM Client
    'WHERE statusid in (1,3)
    union
    select name d1,ClientID r1,'U' up_cr
    FROM Client_List)
    where up_cr = decode(:P_REQ,'CREATE','C','U')
    ORDER BY d1
    Kindly help.. Its Urgent..

    Hi,
    If you use that computation to set the value of P_REQ it is actually also saving it in the session. The value stored can then be retrieved by the popup LOVs query using :P_REQ so you don't need to pass the value at all as it is already available.
    To see this, go to: [http://apex.oracle.com/pls/otn/f?p=33642:237] The list of employees has INSERT or UPDATE in the final column. This is used in the link on the EMPNO column as the "Request" setting. This link passes you to another page which uses the computation to set the value in P238_REQUEST (this is displayed on the screen). Then you have a link to "Open popup". All this does is open another page which has a region with a source of: Request value: &P238_REQUEST.
    Andy

Maybe you are looking for