refresh the html region when the selection list or selected ir line chang

Apex 4.2

Hello

I made a simple page for test actions.

I have

-an interactive report and a selection in my first area list.

-a field of text (P5000_indid) to keep the selected indid

-region of html where the source is:

DECLARE

CURSOR c_ind IS

SELECT indid, ind, industry

IND

WHEN indid as: P5000_INDID;

BEGIN

FOR a c_ind IN LOOP

HTP.p ("< style b =" white-space: nowrap;) "> Indid: ' |" a.indid |' ---> ' || a.Industry: '< /b > < br / >');

END LOOP;

END;

I'm sorry, but I m a bit confused with all the things I read before and do not know what is possible or not and what is the best practice to:

1. select in the selectList (is it also possible to retrieve the selected (highlighted) or line in the IR)

2 update the P5000_INDID

3. refresh the html box according to the value of P5000_INDID (I was able to refresh an IR according to value, but there was the possibility to say what variable to present, but I have no

see for the region of html)

I m doing this test, because in the end, I would like to be able to regresh a small chart according to the selected line of the IR.  Do you think that it is possible to s?

Sorry for my newbie question

Thanks for your help

L.

OK, I finally found everything that I needed,

You can test it on:

http://Apex.Oracle.com/pls/Apex/f?p=53793

Demo/demo

the content of the output area now is the result of an application process, according to a parameter.

It is called with javascript onChange and response replace the contents of the region

and you can also see that I can now select a line and show it by changing the color of the line, and then update the output.

and when a line is selected, it resets the selection on the selectList to avoid triggering the event on the selection list.

Tags: Database

Similar Questions

  • ADF MOBILE: how to add an item in the list without refresh the entire list

    Hello

    I am using this method to add an item to a list (I've already added the item to the data model):


    providerChangeSupport.fireProviderCreate (String providerKey, int newRowKey, object newValue);


    I don't want refresh the entire list, rather, I want to just add a new item to the list, that's why I want to use this method.


    I want to know, what value should I use for the second argument? i.e. 'int newRowKey '.


    Thank you


    Hello

    the event of change of provider in your case seems to actually create a new line. So the int is the rowKey (index PK or line) of the new line. There is no other choice to simply add an element to a list (ADF Mobile provides no component handles)

    See: Embedded Java/ADF for beginners: ADF Mobile: refresh your valuable data

    Frank

  • Dynamic action - set a value of element based on the selection of lines of report

    Hi people,

    Does anyone have an example how to set up a dynamic action, which could fill an element with the selected ID based on the selection of line of the report on the same page?

    Demo:
    http://Apex.Oracle.com/pls/Apex/f?p=19543:2

    If I select an item in the report, then I would fill in 'Selected ID' element with the value of the selected report EMPNO line.


    Later, I would use it for the display of parts of master / detail on the same page.

    Thank you very much
    Tomas

    For this sample page, add the following JS code to run when the page is loaded.

    $('.highlight-row td').click( function(){
      //fetch record id from the cell contents of first column in row
      id = $(this).parent().children('td:eq(0)').text();
      //set page item to selected id
      $('#P2_SELECTED_ROW').val(id);
    });
    
  • How can disable us the selection of lines under condition

    Hi Experts,

    JDEV version 12.1.3.0

    How can disable us the selection of lines under certain conditions.

    As the lines newly unregistered should be allowing the selection of lines.

    Saved lines should be disabled from the selection.

    Can achieve us.

    Please me advice accrdingly

    Thank you

    Roy

    You are implementing a generic selection as shown here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/23-generic-table-selection-listener-169162.pdf Manager in this handler, you check and validate the selection of our not.

    Timo

  • Command to refresh a calculated field when you select an option from the drop-down list box

    When my form user selects an option in a drop-down list box, the value in the field (in this case, Total) I would like to update, but it isn't.

    A radio button option box makes the Total-development field to automatic update when the user clicks on the radio button. But the drop-down list box is not updated Total (without clicking away from the field). I would like to add a command in the Combo Box to refresh the Total field when you selected the option to drop-down list box.

    Someone at - it a code (Javascript?) to get there.

    Thank you very much.

    You don't need a script, simply select the 'Value selected to validate immediately' checkbox on the Options tab of the dialog list box drop-down list box field properties.

  • How to detect when the selected item ObjectListField changed?

    I expanded the ObjectListField to implement a scroller of marquee style iPod for long lines of text that will disappear from the screen. So far, I have everything works well, and it works as I expect... when it fires.

    I'm having a problem to find a way to make reliable activate. It doesn't seem to be any method I can substitute or any earpiece I can use that fires when the current list item is changed. I first tried setSelectedIndex substitution. That worked sometimes, because apparently the OS is not call setSelectedIndex when he wants to change the item selected, it does something else.

    Then I tried the substitution of navigationMovement and manually call the code to start the timer, but that no longer works (I was the substitution of method navigationMovement of the ListField, maybe I should have done the Manager instead?). But anyway this approach does work for the version of the storm of my application because the storm never calls navigationMovement.

    Then I tried to use a fieldChangeListener, but apparently who don't get fired for the selection.

    Finally in despiration I tried substitution of drawListRow, only qualifying when index equals the selectedRow. But my code of scroll calls invalidate, so of course it just causes a loop infinite drawListRow, slow down the device and not even starting the scroll, because whenever the timer is started, it cancels the old one.

    Anyone have any ideas on what I can do here? Thank you.

    Good end I could not fieldChangeNotify to the fire, no matter which I overrided, even with the first setting the listener. It only seems fair to shoot during the selection change event. One thing to note, I use an objectlistfield, not an ObjectChoiceField... maybe you are thinking as well to another area?

    Thanks for the help anyway, in the end I was able to get the desired effect by modifying the code slightly to reuse the same animation timer rather than create a new one when the selected item changes. The timer is started in the constructor of the ListField. Works very well.

  • Table (ADF 11 g) does not get updated on the selection of lines...

    Hi all

    I have a table element (ADF 11 g) in my page with the selection of multiple lines. I have my own row selection listener. Whenever I have select several lines with the CTRL key, the table is getting updated. It is fetching the data again for each selection. I don't want the table to get updated whenever I select a line. In the im listener manually selected do the line current. The code below is the table row selection listener.

    public void tableRowSelectionListener (SelectionEvent selectionEvent)
    {
    Add the code in the event here...
    String tableRowSelectionListener = "tableRowSelectionListener";
    Table richeTableau = (RichTable) selectionEvent.getComponent ();
    Set of keys to RowKeySet = table.getSelectedRowKeys ();
    Txn_id = number ((Number) ((Key) ((List) keySet.toArray () [0]) .get (0)) .getAttribute (0));
    int noRowsSelected = ((List) keySet.toArray () [0]) .toArray () .length;
    Rank [txnrows] = null;
    if(noRowsSelected == 1)
    {
    PscTransactionsViewImpl txnVO = (PscTransactionsViewImpl) amImpl.getPscTransactionsView2 ();
    if(txnVO!=null)
    txnrows = txnVO.findByKey (new Key (new Object [] {txn_id}),-1);
    If (txnrows! = null & & txnrows.length > 0)
    {
    SelectedRow PscTransactionsViewRowImpl = (PscTransactionsViewRowImpl) txnrows [0];
    txnVO.setCurrentRow (selectedRow);
    }
    }
    }

    How to select a row in the table easily (without the table is refreshed). ?

    Thanks in advance,
    Swathi

    Hi swati,

    Set property of 'changeeventpolicy' on 'none' & 'useRowHints' to 'default' for the list that you iterate.

    YP.

  • Satellite L670-1HJ-speakers interns are not silent during the selection of line output

    I want to use an external set of speakers, but when plugged, selection of output in the Realtek HD Audio Manager disables the internal speakers, instead only reduce their volume a little. Selection headset does not switch their stop, but this causes audio being sent to the levels of helmet, which sounds terrible on normal speakers and is therefore not an option.

    Is there a way I can get it to turn them off when you use output line too or just disable the internal speakers in total?

    Have you checked all the available sound settings?
    Open the properties of the sound > playback devices and try to disable the speakers out there.

    I only helmet and, unfortunately, can not test it for you, but there must be an option where you can turn off the internal speakers.

  • Programmatically change the selected cell/line of control multi-column listbox

    I want to programmatically change the selected cell of a multicolumn list box whose selection Mode is set to highlight the whole line.  I would use this to highlight the line whatever the list box, I chose to.  It would work the same way if the user has clicked on a line to select and highlight that particular line.  Set Active cell does not fulfill this.

    Steve

    Try to use the property value; p

  • Bug? -commandLink does not change the selection of lines in 11.1.2

    In 11.1.1.3 jdeveloper with ADF BC, a read-only table ADF with the selection of simple lines and commandLink in one of the columns will cause the selection of rows to change when the link is selected. In 11.1.2 line selection does not change when the link is selected. Is this a bug or a new feature of 11.1.2? Is it possible to behave as in 11.1.1.3?

    Thank you
    Bob

    work around: http://blogs.oracle.com/jdevotnharvest/entry/jdeveloper_11_1_2_command

    Frank

  • Not applied to all the selected images metadata changes

    I have 2 problems.

    When I'm in the lightroom library (3.5), I want to change the time of the capture of several photos, apply keywords.

    However, when I perform one of these actions, the changes are only applied to the image displayed in the image "brighter highlighted", not all that are selected.

    Is there a setting I'm missing?  I can't understand why it does not work.

    Also, I aplogize if my search skills are weak, and this has been covered already.  I tried to see if this question has been answered before posting.

    Thank you.

    You must be using grid to apply metadata to all of the selected images, otherwise LR only apply it to the image displayed in the main area. You can also on AutoSync swith in the library.

    Also, I aplogize if my search skills are weak, and this has been covered already.  I tried to see if this question has been answered before posting.

    I don't think it's your skills that are weak, but the search function of this forum...

    Beat

  • How to refresh the selected items in a shuttle service

    Hello!

    When a page loads the data from the left side in a shuttle service is defined by the definition of LOV, and the right side is in the source section.

    If I do a refresh by using a LOV parent then the list on the left side of the shuttle is of course updated as it should. But because the right is not a LOV by definition, how can I say to also be updated at this point or the left side is updated?

    The changes on the right side, but it comes with an empty list instead of the items it becomes if I reload the page instead.

    Mathias

    I now guessed after restoring data from many different blogs on the net. Finally I found something that helps with the solution.

    There must be a dynamic action and I got one got him good data, but it never set the value. I had it put in place "PL/SQL". That would apparently just run the code, burt expect not to return anything.

    Rather the setting must be set "Set Value" and down where the source is defined PL * SQL body. Now the returned data can be assigned to an element that is also defined in the same section.

    Works like a charm.

    Mathias

  • APEX 5 - page partial refresh of specific IR refreshing all IR regions when they are in a "main" region

    I created a page with several interactive reports. The main report at the top is a report of "companies". All other reports are partial reports (addresses, Contacts, etc.). I have a page that I put the value with javascript (company code) by clicking on a line from 'Companies' parent report. I have a dynamic action on the change of the page element, which then updates from subreports in society, they have chosen. When interactive reports are not in a region, it works very well. When I try to put them all inside a region main standard HTML page/visual layout purposes, they do not work and looks like it is refreshing to all reports (including the main ' firms' one). When I separate everything out of the main area, they all work very well yet. All subreports have a condition in the SQL query to limit the rows in the place where company_id =: P2_COMPANY_ID. The ir companies, does not have this condition. Right now, I just them removed from the main area, but I wonder if it is a bug.

    Hi Jen,

    We agree it shouldn't / desired behavior and filed bug #21207953 for what should be fixed in the first series of patch 5.0.1.

    During this time, John has proposed the following solution for me, which just is to reorganize a little, your regions such as the IRs child are not direct descendants of the parent IR so maybe you have something like this:

    IRR1

    IRR2

    IRR3

    That could be changed to:

    R1

    IRR1

    R2

    IRR2

    IRR3

    Where R1 and R2 use models of simple region (for example 'white with attributes' the universal theme) which show nothing visually on your page, and because they are no longer the direct descendants of level higher IRR, prevent you unwanted refreshment.

    Kind regards

    Anthony.

  • the selection of lines handling af:table

    Dear all,

    I have a table of the ADF, when the line is selected, then I want to get the content of the current line, to run logic...
    I have following code but in the fact that it only returns the contents of the first line...
    < inlineStyle = af:table ' height: 200px; "width ="100% "value =" #{bindings. " Var Entries_VO1.collectionModel}"="row ".
    lines = ' #{bindings. " Entries_VO1.rangeSize}.
    emptyText = "#{bindings." Entries_VO1. Viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." Entries_VO1.rangeSize}.
    rowBandingInterval = '0 '.
    filterModel = "#{bindings." Entries_VO1Query.queryDescriptor}.
    queryListener = ' #{bindings. " Entries_VO1Query.processQuery}.
    filterVisible = "true" varStatus = "vs."
    selectedRowKeys = ' #{bindings. " Entries_VO1.collectionModel.selectedRow}.
    selectionListener = "#{backingBeanScope.main.tableRowSelected} '"
    rowSelection = "single" id = "t1" >

    {} public void tableRowSelected (SelectionEvent selectionEvent)
    Add the code in the event here...
    RowKeySet rs = selectionEvent.getAddedSet ();
    Iterator it = rs.iterator ();
    DCBindingContainer links =
    (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    DCIteratorBinding = empIter
    bindings.findIteratorBinding ("Entries_VO1Iterator");
    RowSetIterator empRSIter = empIter.getRowSetIterator ();
    While (it.hasNext ()) {}
    Key = (Key) ((List) it.next () .get (0);
    Line currentRow = empRSIter.getRow (key);
    System.out.println (CurrentRow.GetAttribute ("XmlContent"));
    }

    }

    in the above code I selectionListener "# {bindings." Entries_VO1.collectionModel.makeCurrent}"to the one above.

    and also, when the page first loads everything, I want the rows in the table deselection...

    Could someone help me with this please...

    -Thank you.
    Kind regards.

    jdev version: 11.1.1.4.0

    Published by: Santosh Vaza on March 7, 2011 15:40

    Thanks nini! Your solution worked for me.

  • Copy the data from the selected record line

    Hello I use Oracle Forms Builder 10g.

    I want to copy a line from a record that populated the request but that the first lines can be copied when I click on it. I want to know how to copy the specific line-specific data when I click it. Thank you.

    Untitled 1.png

    using

    GO_RECORD(:SYSTEM.) MOUSE_RECORD);

    the current selected row updates as you click mouse a line. «: SYSTEM.» MOUSE_RECORD' gives you the line number of the recording, you click and it gives a value of '0' char if you click outside the record block.

Maybe you are looking for

  • Re: Windows XP and Satellite T110-11J

    Hello on a Toshiba Satellite T110-11J computer, I want to install Microsoft Windows XP. I wonder if the drivers installed on this site Web is for 32-bit or 64-bit system. Thank you for your answer

  • Satellite Z930 - AltGr key change keyboard shortcut keys

    Hi all on my Z930 satellite with German keyboard (Switzerland), the alt gr key does not allow access to the additional characters (such as @, which is accessible in AltGr + 2), but instead transforms all the keys in shortcut keys (for example type n

  • Satellite L750 - 17 p does not load Windows

    Hi all... I have a Toshiba Satellite L750 - 17 p, since a few days now, when I turn on the PC after the toshiba logo I get the loading screen and the window ms back with the inscription: system32 / drvload.exeMS-DOS screen remains empty and the compu

  • Office toolkit 'excel get data' cannot read anything else of integers?

    I use LabVIEW 2009 and can not get LabVIEW to read non-entiers to a worksheet.  In the attached example, I put a breaktpoint after the new report vi, and and when it hits at this breakpoint I put a number as 1,234 in cell A1, and then continue execut

  • Turns on and off the screen Dell ST2210

    Monitor turns on and turns off.  Second monitor connected to the HDMI port works fine.