Multi-Select Page Item in Application Item

I have a multi-select page item that I need to copy to an Application Item (for AJAX select). I have a js function that does the following:
get.add('REFRESH_LOV_FK_SCHOOL',pSchool.value);
It only seems to copy the first value (before the ':') of the multi-select list to the application item. I verified this with the session state of both the page items and application item. Is there a reason it only copies the first value?

Bob
In your JS function you have declared the formal parameters as pSchool,pYear,pApp. However the code in the function references 'PSelect' I shall assume that you meant 'PSchool' <script>
function get_select_list_xml1(pSchool,pYear,pApp){
var l_Return = null;
var l_Select = html_GetElement(pSchool);
var schoolVal=$f_SelectValue(pSchool.id);
alert ('values=' + schoolVal);
var get = new htmldb_Get(null,$x('pFlowId').value,
'APPLICATION_PROCESS=' + pApp,0);
get.add('REFRESH_LOV_FK_SCHOOL',schoolVal);
get.add('REFRESH_LOV_YEAR',pYear.value);
gReturn = get.get('XML');
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
</script>

Similar Messages

  • Set Default Value of Multi-select list item

    I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
    :P507_ITEM := '%null%'; How do you get the default value set and selected?

    Hi
    Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
    Company A returns 1
    Company B return 2
    % returns 0
    Then your query would be...
    SELECT ...
    FROM ...
    WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
    Hope this makes sense.
    Cheers
    Ben

  • Problem in displaying selected page items in the title in Graph

    Hi There;
    I have a problem in displaying selected value of named page item in the graphs.
    Eg. I have in my worksheet a page item named "Location"; when I use "&WorksheetName &Location" in the title of worksheet it is displaying both the worksheet title and value of selected page item "Location" in my example.
    But when I use the same (&WorksheetName &Location) in the title of graph or Axis of the graph, it would show up only the name of the worksheet but not the value of page item "Location", instead it would print "&Location"
    Any idea why it is not able to reference the select page item in Discoverer graph? I am using Oracle BI Discoverer 10.1.2.1.
    Thanks in Advance,
    Regards,
    Nidhi Jethoo

    Hi Michael;
    Thanks a lot. It might not have been considered necessary but you do require, e.g in my case I am plotting Average value of a Parameter and it does make sense in including the name/value of Parameter(surface water temp/bottom watter temp) as an Axis instead of just a constant Parameter or say Average Parameter. So that user can plot the variation of different parameters by changing the page items and when user changes the value of parameter and export the graph he/she has the parameter name(actual value) in the graph.
    But I can include all the parameters (&Parameters) or all the page items(using &PageItems) in graph then why not individual page-item and individual parameter.
    I would log a SR and see what they say.
    Thanks again,
    Nidhi

  • How do i get current active or selected page item's  reference

    Hi all,
    How do i get current active or selected page item's  reference .
    Please help me

    You can implement a selection suite for your need, this selection suite will be placed into the kLayoutSuiteBoss.
    In this selection suite place a method to give you the UIDRef of the selected pageitem, which you can get by using the method "GetUIDList" of the "ILayoutTarget" interface.
    Manan Joshi
    - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • Selected page item has no data

    1) After I create the new data model, and start the EP_LOAD_MAIN how can I see the sales history table in the colaborator workbench? I only see the hierarchy of levels ,and in the right of the page, I have the message "Selected page item has no data" and an empty graphic background. Is there something with the Analytical Engine?
    2) There are several errors in the Engine Administrator after i start it:
    08:59:51:234 ERROR INSERT INTO SQL_DEF (COMMENTT, LINE_NO, SQL_ID, SQL_TEXT) VALUES ('Aggri Level 201',1,201,'SELECT min(sales_date) datett, round(NVL (sum(#quantity#),sum(#fore#))')
    08:59:51:234 ERROR - ErrorDescription: ORA-00001: unique constraint (DEMANTRA.SQLD_PK) violated
    In the PL/SQL developer the SQLD_PK doesn't exist

    Hi DCRO,
    1) After I create the new data model, and start the EP_LOAD_MAIN how can I see the sales history table in the colaborator workbench? I only see the hierarchy of levels ,and in the right of the page, I have the message "Selected page item has no data" and an empty graphic background. Is there something with the Analytical Engine?
    I am assuming that before starting EP_LOAD_MAIN, data is present in the staging tables (T_SRC_XXX). So once EP LoAD MAIN completes data should be available in Items, Location and Sales_data tables. Then whenever you try viewing data on the worksheet through the collaborator Workbench (Contains links of the worksheets) based on the aggregation levels(item,location and time) selected in the worksheet definition, the data is displayed on the right side of the worksheet.So in your case, check for the levels and the members under the levels that have been selected in the worksheet. Analytical engine is for generation of forecast (either by Batch / Simulation / Other profiles) and has got nothing to do with the empty graphical background of the worksheet.
    2) There are several errors in the Engine Administrator after i start it:
    08:59:51:234 ERROR INSERT INTO SQL_DEF (COMMENTT, LINE_NO, SQL_ID, SQL_TEXT) VALUES ('Aggri Level 201',1,201,'SELECT min(sales_date) datett, round(NVL (sum(#quantity#),sum(#fore#))')
    08:59:51:234 ERROR - ErrorDescription: ORA-00001: unique constraint (DEMANTRA.SQLD_PK) violated
    In the PL/SQL developer the SQLD_PK doesn't exist
    The error message itself points to some Constraint violation in the procedure. Check the procedures that have errors after the rebuilding of Data model. Recompile them and then try running the Engine Administrator.
    Also, I would suggest you to go through the Oracle Discussion Forums FAQ so that your queries are answered effectively and efficiently.
    Thanks and regards,
    Shekhar

  • How to get UIDRef of the selected page item in indesign cs3

    Hi,
        I want to get the UIDRef of the selected page item like Rectangle Frame. Can you show me the complete code snippet to get the UIDRef of selected Rectangle Frame. I need this UIDRef for getting the geometric bounds properties(width and height) of the selected rectangle frame to display the user in dialog box.
    Regards,
    K.Saravanan.

    Hi,
    UIDList selection;
    InterfacePtr<ISelectionManager> pSelectionManager(Utils<ISelectionUtils>()->GetActiveSelection(), ISelectionManager::kDefaultIID);
    if(pSelectionManager == nil){
    break;
    InterfacePtr<ILayoutTarget> pLayoutTarget(pSelectionManager->QueryConcreteSelectionBoss(kNewLayoutSelectionBoss), ILayoutTarget::kDefaultIID);
    if(pLayoutTarget == nil){
    break;
    selection = pLayoutTarget->GetUIDList(kDontStripStandoffs);
    Then, you can use this interface "IGeometry" to get information about spline size.
    InterfacePtr<IGeometry> pGeometry(selection.GetRef(i), IGeometry::kDefaultIID);
    if(pGeometry== nil){
    break;
    PMRect splineBounds = pGeometry->GetStrokeBoundingBox();
    PMReal width = splineBounds.Height();
    PMReal hight = splineBounds.Width();
    Regards,

  • Reset data picker page item by selection page item in Apex

    Hi,
    Need to create a report based on date ranges and for this created a interactive report and two page item datepicker fields P15_fromdate and p15_todate. Report works fine with this criteria.But user wants one more field quarter(P15_quarter), When they select the quarter the range values has to get reset and as to get applied to report.
    Issue here is unable to find a way to set the page range item values based on the quarter field selection
    Need help how to reset the page item fields.
    Thanks in advance.
    Thanks,
    Sandeep

    Ligon,
    You're right to think this is pretty laborious stuff. A co-worker wanted to do the same, to make sure users didn't lose a change when clicking Cancel. I suggested he look at calculating the query checksum before and after, which he tried. But it got very cumbersome very fast and he ended up dropping the idea. He's fairly new with Apex, but he's also a quick study, so it's not like he's a novice coder.
    I don't have his implementation details anymore to even share with you.
    Sorry I couldn't be more help.
    Good luck,
    Stew

  • What is the best way to get the UID of any selected page item (frames, rectangle etc)?

    I need UID of any selected item on page and also array of UID's in case multiple selection happens. How can I achieve it?
    One way I know is to write an observer and attach it on every new page Item created, but that way the system might become slow and also
    the behavior will be unpredictable in case of multiple selections.
    Can some one suggest a better way to do it?

    The selection subsystem hides most ideas of direct adressing (e.g. UID of page item(s) or story) into the concrete selection, while from the outside you only work on the suite interfaces of the abstract selection. So you don't ask whether the selection is some kind of page item and you don't peek at the actual items. Instead you ask about their capabilities and applied values.
    Attaching observers to page items has nothing to do with the selection, because they only notify about changes on those page items - which could also be caused by scripts or anything else. Even then, the most relevant changes go thru the kDocBoss as single point to attach an observer, rather than thru all those page items.
    Regarding speed - the selection has many optimizations, for example "lazy" notifications can be deferred until they become appropriate for an UI update, they might even become aggregated / optimized away.
    One starting point into the selection when you come from nowhere would be ISelectionUtils. Your selection observer might also pass interesting parameters.
    Dirk

  • Multi Select List Item

    Hi All
    I want to have a field on my page that will be having around 80 values say Poplist.But i want to select multiple values.Like may be you would have seen some sites on which there is a field say Technologies you know and we select OAF,PLSQL etc..
    Thanks in Advance.

    Hi,
    You can use ListBox bean of OAF, you can not create it at design time so you need to create using controller, following is the sample code
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    // Create the list bean (be sure to give it a name).
    OADefaultListBean list =(OADefaultListBean)createWebBean(pageContext,
    OAWebBeanConstants.DEFAULT_LIST_BEAN,null, "positionsList");
    // Specify the view object that you will use to populate the list bean values.
    list.setListViewObjectDefinitionName("oracle.apps.fnd.framework.toolbox.poplist.server.PositionsVO");
    // Specify the display and internal value attributes in the associated viewobject.
    list.setListValueAttribute("LookupCode");
    list.setListDisplayAttribute("Meaning");
    // Configure the list box to allow selection of multiple values.
    list.setMultiple(true);
    // Even though you created the component with an ID, you must explicitly
    // make this call to setName().
    list.setName("posList");
    // In this example, we're adding the list box to a messageComponentLayoutregion, so we
    // get the declaratively defined messageLayout region that will contain this
    // component. Note that we declaratively set a prompt for the list box on the
    // messageLayout region.
    OAMessageLayoutBean listBoxLayout =(OAMessageLayoutBean)webBean.findChildRecursive("ListBoxLayout");
    listBoxLayout.addIndexedChild(list);
    To get the values selected from list box you can use following code in your PFR
    OADefaultListBean list =
    (OADefaultListBean)webBean.findChildRecursive("positionsList");
    String name = list.getName();
    String[] selectedValues = pageContext.getParameterValues(name);
    Regards,
    Reetesh Sharma

  • 9.4.5 BUG.  Can't Multi-select Pages anymore!!!!

    Confirmed on all 4 Adobe Acrobat 9.4.5 users at my org since the update yesterday.
    Before, if you held the CTRL Key, you could select multiple pages in the Pages Pane to Delete/Extract/Ect.
    THIS NO LONGER WORKS! And we use that functionality A LOT.
    What is the best way to get this info to the powers that be?
    -Sam

    I am not going to spend one more red cent on Acrobat and reward Adobe for their lack of effective testing. As a long time Acrobat user and a former tester of software, it seems they do not do a good enough job regression testing their fixes to see if what they fix does not affect other parts of their product. I wonder how many other bugs are waiting for me if I upgrade to Acrobat X.
    I really wonder if Adobe knows that there are a few good alternatives to Acrobat out there. And I do not want to discuss which ones are best.
    Ken Friedman

  • Parsing Through the Multi Selection Values in a PL/SQL Procedure

    Greetings,
    This should be an easy one for one of you PL/SQL experts. I'm not, so I am unsure how to code this up.
    I have a Multi Selection page item and am passing the value of it to a PL/SQL routine as a parameter. I am able to use the value if I only pass my procedure one value, so I have it working. Just not with multi-values I need the code in the procedure to loop through the values. How do I code that up? The procedure is relatively short and is included below. p_cell is the multi-value parameter.
    Oh yes... You probably need to know this. The values are coming in like this - 1-3:2-3:3-3:5:6
    Also, the values are the x-y coordinates of a grid I have over an image on the page. The routine removes certain cells (1-3, etc.) from the grid. The grid is created using HTML, so I have to remove lines of HTML to remove a cell from the grid. Just in case that is helpful.
    Thx, Tony
    = = = = = = =
    create or replace
    procedure qcis_remove_grid_cell(p_id IN NUMBER,p_cell IN VARCHAR2) as
    v_position number;
    v_position_from_end number;
    v_line_start number;
    v_line_end number;
    v_length number;
    v_html clob;
    BEGIN
    BEGIN
    select imagemap_html into v_html from qcis_im_template_draft
    where header_id = p_id;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    v_html := NULL;
    END;
    v_length := length(v_html);
    v_position := INSTR(v_html,'alt="'||p_cell||'"');
    v_position_from_end := (v_length - v_position) * -1;
    v_line_start := INSTR(v_html,'<area shape',v_position_from_end) - 1;
    v_line_end := INSTR(v_html,'/>',v_position) +2;
    v_html := substr(v_html,1,v_line_start) || substr(v_html,v_line_end);
    UPDATE qcis_im_template_draft SET imagemap_html = v_html WHERE header_id = p_id ;
    END qcis_remove_grid_cell;
    Edited by: cloaked on Nov 1, 2011 8:01 AM

    Not sure I understood your need, but it sounded like you need to unscramble a string into a set of rows. If so, I would give you 2 ideas:
    1. STRING_TO_TABLE function: http://www.sloug.org/i/doc/api073.htm
    2. Other ways (Regular expression or XML): http://apex-at-work.blogspot.com/2011/05/two-ways-using-string-to-table-in-apex.html

  • Select multiple values in mult-select list

    I have the following query as the source for a multi-select page item:
    SELECT person.person_id
    FROM person, pers_proj_task
    WHERE pers_proj_task.person_id = person.person_id
    AND pers_proj_task.project_id = :P3_PROJECT_ID
    The query returns two records and the page item's session value is 4:3, but only the value 4 is highlighted in the mulit-select list. How can I get both values to be highlighted?

    Got it to work for a multi-select item by following Dimitri's post which uses a shuttle example. It was still only highlighting one value, but I tried Patrick Wolf's suggestion from the comments on Dimitri's post to put the pl/sql block in the source of the item rather than as a computation and it worked.
    So I now have a multi-select list which has default values pulled from a LOV. The items that are highlighted by default are selected by using the following pl/sql block in the "source/value or expression" of the :P3_PERSON_ID multi-select item:
    declare
    person_list apex_application_global.vc_arr2;
    i number := 1;
    begin
    for r in ( SELECT person.person_id
    FROM person, pers_proj_task
    WHERE pers_proj_task.person_id = person.person_id
    AND pers_proj_task.project_id = :P3_PROJECT_ID)
    loop
    person_list(i) := r.person_id;
    i := i + 1;
    end loop;
    return APEX_UTIL.TABLE_TO_STRING(person_list,':');
    end;
    Thanks to Amanda, ArtS, Dimitri and Patrick.
    Jeremy

  • How to get notified when ever I select any frame (any page item) ?

    I have added a observer class in my plugin which derives from ActiveSelectionObserver.
    But my observer constructor is not getting called when i select a page item. (In short, I am not getting notified about the selection)
    below is my code:
    class CSDTSelectionObserverImpl : public ActiveSelectionObserver
    public:
      CSDTSelectionObserverImpl(IPMUnknown *boss);
       virtual ~CSDTSelectionObserverImpl();
    protected:
       virtual void    HandleSelectionChanged (const ISelectionMessage*);
       virtual void HandleSelectionAttributeChanged(const ISelectionMessage* selectionMessage);
    CREATE_PMINTERFACE(CSDTSelectionObserverImpl, kCSDTSelectionObserverImpl)
    CSDTSelectionObserverImpl::CSDTSelectionObserverImpl(IPMUnknown *boss) : ActiveSelectionObserver(boss,IID_ICSDTSELECTIONOBSERVER) { }
    CSDTSelectionObserverImpl::~CSDTSelectionObserverImpl() { }
    void CSDTSelectionObserverImpl::HandleSelectionChanged(const ISelectionMessage* selectionMessage) { }
    void CSDTSelectionObserverImpl::HandleSelectionAttributeChanged(const ISelectionMessage* selectionMessage) {  
    if (selectionMessage && selectionMessage->WasSuiteAffected(IID_ILAYOUTSELECTION_ISUITE))
    Also, In my .fr file, I have added below:
    AddIn
      kDocBoss,
      kInvalidClass,
        IID_ICSDTSELECTIONOBSERVER, kCSDTSelectionObserverImpl,
    Do I need to implement the ILayoutSelectionSuite as well to get the notification on page item selection or implementing Observer via ActiveSelectionObserver is sufficient?
    Please help.

    I tried below in debug mode , but it gave me error while execution (when the line of code was called by in-design)
    InterfacePtr<ILayoutSelectionSuite> iLayoutSelectionSuite(fCurrentSelection, UseDefaultIID());
            if (iLayoutSelectionSuite == nil)
                break;
    iLayoutSelectionSuite->SelectPageItems(selection,Selection::kReplace,Selection::kDontScrollLayoutSelection); // Error
    So I was not able to get the UIDList of the selected page items, hence I used below code and this is working.
      InterfacePtr<const IIntegratorTarget> iIntegratorTarget(iLayoutSelectionSuite, UseDefaultIID());
            std::auto_ptr<IIntegratorTarget::TargetSuiteCollection> selectionSuites(iIntegratorTarget->GetTarget(ILayoutTarget::kDefaultIID));
            for(IIntegratorTarget::TargetSuiteCollection::size_type i = 0; i < selectionSuites->size(); i++)
                ILayoutTarget* target = (ILayoutTarget*)selectionSuites->at(i).get();
                if(!target)
                    continue;
                selection = target->GetUIDList(kDontStripStandoffs);
    But it would have been much easier and logical if I can get it using IlayoutSelectionSuite or if there is some better approach ?
    Please let me know.
    ileleLayoutSelectio
    Let me

  • How do I select multiple items to paste a style?

    There are times when I have several paragraphs of text with a number or letter in front of strategic sections.  I like to change the color of these letters or numbers, make them boldface and change them to SuperScript.  Once I have the first one changed, in Pages 4, I would simply copy the character style for this changed letter or number.  Next, I would hold down the COMMAND key while double-clicking each subsequent letter or number.  Finally, I would paste the formatting which would update all the various items I had selected with the saved formatting.
    In Pages 5, I can copy the character style, and then hold down the COMMAND key and start double-clicking text items to reformat, but while the first item will highlight when selected, the second item I double click will highlight and the first one will de-select.
    Is there a way to multi-select text items in this way?
    Thanks for your help!!!
    Ron

    There isn't any multi- selection in Pages 5. use PAges  09 instead.

  • Align page items (AS) (CS3)

    Scripting Gurus,
    Is there some simple AS syntax to align selected page items on a page?
    Dictionary seems to imply that, saying:
    align distribute items page item : The page items to align or distribute.
    align option left edges/top edges/right edges/bottom edges/horizontal centers/vertical centers : The type of alignment to apply.
    I attempted this:
    tell page items in selection
    set vertical alignment to top edges
    end tell
    Thanks!
    Joe

    Its kinda of crazy but here ya go, I wish the AppleScript Dictionary listed  examples ...esp. when the syntax is wacky.
    select a bunch of images, or have the object references in a list(I just use selection to make it easier):
    tell application "Adobe InDesign CS3"
        tell active document
            set myimages to selection
            align align distribute items myimages align option left edges
        end tell
    The text in the red is where you put those paramaters listed in the dictionary.
    ~Mike

Maybe you are looking for

  • Error while opening the web page

    Hi,   i am trying to start the srm login page using web. with the service BBPSTART..its not opening it shows ' Firefox can't establish a connection to the server at xxxx.xxx'. what might be the problem... kindly help me with it... thx.

  • Cannot drop job - says it's running, but it's not

    I did a dbms_scheduler.stop_job (which did not raise any error/warnings), and I killed the database session, but my job is still in user_scheudler_running_jobs view (with null session_id, null cpu_used). When I do a user_scheduler.drop_job, i get an

  • Operations in Routing

    Can I have two operations in routing?In one operation operation number can be 10 for other it is 20.For operation 10 i hv to show consumption of sfg & for operation 20 i hv to show production of FG.i will confirm by co11n first for operation 10 & the

  • HT4623 Why are my iPhone 4S photos 2592x1936 instead of 3264x2448? How do I change the settings?

    Why are my iPhone 4S photos 2592x1936 instead of 3264x2448? How do I change the settings?

  • A.Ball credits not loaded

    I bought extra credits for the A.Ball game, was charged on my credit card but no credits were added to the game. Please advise.