How to operate an item selected in the table

Hi all

I do search and changes to these languages in the table, I want to run selected item in the dialog box, using function suitable for language

feature does not not for the element selected, which is my fault

can someone help me on this, the help will be most appreciated

taken = type_ahead (["- search language -", "Albanian", "Arab", "Bosnia", "Bulgarian", "Burmese", "Chinese HK", "Chinese Sim', 'Chinese Taiwan',"Croatian","Czech","Danish","Dutch","Estonian","Persian","Finnish","French","German","Greek","Hebrew","Hungarian","Iceland","Indonesian","Italian","Japanese","Korean","Latvian","Lithuanian","Macedonian","Norwegian","Polish","Portuguese","Portuguese (BRAZIL)","Romanian","Russian","Serb","Slovene","Spanish","Spanish Columbia","Swedish","Thai","Turkish","Vietnamese""]);

function type_ahead (table)

{

var l = new window ('dialogue', ' DHL find and change ');

myGroup var = w.add ("group", undefined, ");

var entry = w.add ('edittext', [0, 0, 300, 22]);

entry.active = true;

list var = w.add ("listbox", [0, 0, 300, 300], table, {scroll: true});

List.Selection = 0;

buttons

var myButtonGroup = w.add ("group");

myButtonGroup.alignment = 'Center ';

bCan var = myButtonGroup.add ('button', undefined, 'Cancel');

var bOK = myButtonGroup.add ('button', undefined, 'OK');

bCan.onClick = function() {}

w.Close ();

}

entry.onChanging = function)

{

var temp = this.text;

list.removeAll ();

for (var i = 0; i < array.length; i ++)

If (array [i] .toLowerCase () .indexOf (temp) == 0)

List.Add ("item", array [i]);

If (list.items.length > 0)

List.Selection = 0;

}

~ entry.onChange = function () {w.close (1)}

If (w.show ()! = 2)

Return list.selection.text;

on the other

w.Close ();

}

bOK.onClick = function () {list.selection == 0? alert ("Please select any language"): w.close (1) ;};}

function {Albanians ()}

//---------------------Albanian----------------------

app.findTextPreferences.findWhat = "program the efficiency of network operations ';

app.changeTextPreferences.changeTo = "network of effective operations program."

app.changeText ();

app.findTextPreferences = app.changeTextPreferences = null;

}

function {Arabic ()}

//--------------------Arabic-----------------------

app.findGrepPreferences.findWhat = "";

app.changeGrepPreferences.changeTo = "";

app.changeGrep ();

app.findGrepPreferences = app.changeGrepPreferences = null;

app.findGrepPreferences.findWhat = "([0-9]) %';"

app.changeGrepPreferences.changeTo = "$1";

app.changeGrep ();

app.findGrepPreferences = app.changeGrepPreferences = null;

}

Thanks in advance

Steve

Hello

Try the code that I changed a bit in your code below

taken = type_ahead (["- search language -", "Albanian", "Arab", "Bosnia", "Bulgarian", "Burmese", "Chinese HK", "Chinese Sim', 'Chinese Taiwan',"Croatian","Czech","Danish","Dutch","Estonian","Persian","Finnish","French","German","Greek","Hebrew","Hungarian","Iceland","Indonesian","Italian","Japanese","Korean","Latvian","Lithuanian","Macedonian","Norwegian","Polish","Portuguese","Portuguese (BRAZIL)","Romanian","Russian","Serb","Slovene","Spanish","Spanish Columbia","Swedish","Thai","Turkish","Vietnamese""]);

laung var;

function type_ahead (table)

{

var l = new window ('dialogue', ' DHL find and change ');

myGroup var = w.add ("group", undefined, ");

var entry = w.add ('edittext', [0, 0, 300, 22]);

entry.active = true;

list var = w.add ("listbox", [0, 0, 300, 300], table, {scroll: true});

List.Selection = 0;

buttons

var myButtonGroup = w.add ("group");

myButtonGroup.alignment = 'Center ';

bCan var = myButtonGroup.add ('button', undefined, 'Cancel');

var bOK = myButtonGroup.add ('button', undefined, 'OK');

bCan.onClick = function() {}

w.Close ();

}

bOK.onClick = function () {list.selection == 0? alert ("Please select any language"): w.close (1) ;};}

entry.onChanging = function)

{

var temp = this.text;

list.removeAll ();

for (var i = 0; i)< array.length;="">

If (array [i] .toLowerCase () .indexOf (temp) == 0)

List.Add ("item", array [i]);

If (list.items.length > 0)

List.Selection = 0;

}

~ entry.onChange = function () {w.close (1)}

If (w.show () == 1)

{

Laung = list.selection.text;

} else {}

w.Close ();

}

}

If (cletie == 'Arabic') {}

Arabic ();

}

function {Albanians ()}

//---------------------Albanian----------------------

app.findTextPreferences.findWhat = "program the efficiency of network operations ';

app.changeTextPreferences.changeTo = "network of effective operations program."

app.changeText ();

app.findTextPreferences = app.changeTextPreferences = null;

}

function {Arabic ()}

//--------------------Arabic-----------------------

app.findGrepPreferences.findWhat = "";

app.changeGrepPreferences.changeTo = "";

app.changeGrep ();

app.findGrepPreferences = app.changeGrepPreferences = null;

app.findGrepPreferences.findWhat = "([0-9]) %';"

app.changeGrepPreferences.changeTo = "$1";

app.changeGrep ();

app.findGrepPreferences = app.changeGrepPreferences = null;

}

Mi_D

Tags: InDesign

Similar Questions

  • How do I move items added in the taskbar

    How do I move items added in the taskbar

    Click the icon to the left and drag it where you want.
     
     
  • How to validate at least one line selected on the table?

    Hello world

    I have a requirement here to display a list of customers at a table "select unique" and a button to send the page. When the user clicks this button, I need to validate if there is a selected line in the table. What is the best approach tho do?
    I tried to validate it on actionListener in the click of a button, but even if I put adfFaces messages running, it does not appear on the screen and the page is still subject.

    Is the BPM 11 g context of the project, so I have to do this validation and 'Cancel' the submit, otherwise the data passes through the flow until the next activity.

    Maybe the real question is: how to undo a page submit during an actionListener?

    Thank you

    Hello

    Small correction to Vinod, tableBinidng.getSeelctedRowKeys () always returns non-null (returns empty set when nothing is selected), then use the tableBinidng.getSeelctedRowKeys () .getSize () to check if a line is selected or not (0-nothing selected).

    If you do not want to treat the action up to save if an option is selected, why don't you try disable the button until something is selected in the table?

    To disable a button when no rows selected, simply add after the disabled property of a button value update it based on the table (add partialTriggers to the table)

    
    
    

    Jean Lou

  • How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Hello

    How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Thank you

    Jay.

    Select the connection and right-click on it and select schema statistics collection

  • line selected in the table in jdev11

    I have listener custom selection for table to do things according to the selected line, but when the table has a single row of this line is automatically selected my interlocutor of choice is not triggered, so my question is how to accomplish that, initially, no row is selected in the table?

    Depends on the use case, but you can do this by deleting the attribute selectedRowKeys of the table.

    Pedja

  • How can I exclude a level for the table of contents, but this amount as a bookmark?

    I know how to exclude a level for the table of contents (or rather include only levels I want to be included) and also how to create bookmarks from the table of contents entries, but how can I exclude a level for the table of contents, but always include it as a bookmark?

    Make 2 toc styles. One for the entries in the Bookmarks panel, you can generate a table of contents on the side of any page, and you must score in its definition to create bookmarks and other things that you use to build the table of contents for the visible part of your document to print. This should have unchecked the option create a bookmark in its definition.

  • How to find inserted last record in the table.

    Version: Oracle 10g

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    As I got to know that the Rowid is not a result perfect result. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10g

    This is not a version. It's a product name. A version is 10.1.0.2 or 10.2.0.4, etc.

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    Not possible as your data model do not answer for him. As simple as that.

    If there is a need to determine an order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or several attributes are necessary to represent this information. Your data model in this case is therefore unable to meet your requirements.

    If the requirements are valid, set the data model. In other words - your question has nothing to do with Oracle and nothing to do with the other pseudo columns in Oracle, the rowscn or the rowid. It is a question of pure data modeling. Nothing more.

  • How to connect NEWSPAPER of INFORMATION to the table of the newspaper so that the operation of ROLLING BACK of the user?

    How to connect NEWSPAPER of INFORMATION to the table of the newspaper so that the operation of ROLLING BACK of the user? any example?

    Fjean wrote:
    What is the independent procedure/function?

    You can create stand-alone procedure to record messages even if the transaction is rolled back messages is stored in the table and are committed.

    Example of

    SQL> DECLARE
      2    PRAGMA AUTONOMOUS_TRANSACTION;
      3    emp_id NUMBER(6);
      4    amount NUMBER(6,2);
      5  BEGIN
      6    emp_id := 200;
      7    amount := 200;
      8    UPDATE employees SET salary = salary - amount WHERE employee_id = emp_id;
      9    COMMIT;
     10  END;
     11  /
    
    PL/SQL procedure successfully completed.
    
    ---log_error procedure
    -- Table Err_tab ( seq number , time_stamp date, message varchar2(4000))
    CREATE PROCEDURE log_error (p_message VARCHAR2)  AS
      PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
      INSERT INTO Err_Tab(seq.err_seq,SYSDATE,p_message) ;
      COMMIT;
    END log_error;
    /
    
    -- You can use this procedure to log
    -- error messages as follows in a transaction
    BEGIN
      log_error('Start emp update') ;
      UPDATE emp set
      log_error('End emp update');
    EXCEPTION WHEN OTHERS
      log_error('Update Error '||SQLERRM);
    ROLLBACK ;
    END ;
    /
    Even in case of Rollback error messages will be inserted to log table 
    

    SS

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • [ADF, JDev 12.1.3] How to hide menu items based on the logged in user

    Hallo,

    When the user logs on successfully, the applitacions led him to the main.jspx page.

    The main.jspx page has a menu bar that contains all of the available menus, submenus and menu items.

    After the connection, when the main.jspx page loads I would hide all the menus, submenus and menu items that the user is not qualified to see/use (I read the database).

    You kindly tell me which is the way the cleaner to achieve?

    Thank you

    Federico

    user10709360 wrote:

    Hello rohanwalia,

    Sorry, but I need more help

    I guess that the solution is to create a method in the AM who - reading form the database - returns a structure that indicates for each menu item should be visible or hidden.

    • How can I use the data returned by this method?
    • I call in a managed bean specifically dedicated to the management of the menu? Can I also use the already existing media bean, I created for the page?
    • What scope should have the bean?
    • Don't you think that it is better to define a 'visible' variable Boolean (initilized depending on the result of the AM method) for each menu item and how to bind the Visible property of each menu item to the variable respective in the bean in the bean?
    • Or I can loop the result of the method AM setting the Visible property of the menu items? In this case, I guess that all the menu items must be mapped into the bean by user interface variable. Am I wrong?
    • Is it not possible to write a method which, of the AM directly, hide the menus not necessary on the page (so without using a bean)?
    • In general, which are the correct always to hide menu items:
      • (1) before the page is sent to the browser (as "I can do it with PHP);
      • (2) once the page is loaded in the browser (as I can do it with JavaScript)?

    If you could give me some more detailed advice... I would be very happy.

    Thank you

    Federico

    (1) its best to make the treatment inside the method. You can return the parameters as normal java method.

    (2) Yes, you can use bean already exists in the project. But better to create a separate bean for this task of menu.

    (3) scope should be request unless you need to persist the attributes between requests.

    (4) Yes it is possible. You can define and initialize a Boolean variable with the results you get from the table based on the menu items should be made visible.

    (5) If you use the approach to point 4, then also you have to loop through the table menu items and set Boolean variables of bean. Yes you are right for the second part.

    (6) I'm not sure about this approach. How will you map it to your menu mode. It takes research.

    (7) before the page is loaded. I share with you links in above post with which you can do this.

    I hope this helps.

    Thank you

  • How to hide a multiple selection of the TableRegion element dynamically

    Hi all

    I have a requirement to hide the column multipleselection area of table dynamically. Based on the id liability multipleselection column must be disabled or hide.

    I gave the following code to set the fake rendered property.

    OATableBean tabBean = (OATableBean) webBean.findIndexedChildRecursive ("SearchTable");
    Salt of OAMultipleSelectionBean = (OAMultipleSelectionBean) tabBean.getTableSelection ();

    sel.setRendered (false);

    But it's not working. Someone help me in this.

    Thank you and best regards,

    Myvizhi

    Hello

    Try using the code below:

    (I found this on the blog of Mukul

    Oracle of Mukul technology blog: dynamically change multiselect for single select statement in table of the OAF)

    Hide Multiple selection

    OAAdvancedTableBean tabBean = (OAAdvancedTableBean) webBean.findIndexedChildRecursive ("[table item id]");

    Given that multiple selection is at the end, get the total-1 to remove

    int count = tabBean.getIndexedChildCount (pageContext.getRenderingContext ());

    System.out.println ("number of children" + count);

    tabBean.removeIndexedChild(count-1);

    Sushant-

  • How to get the number of the row selected in the table

    Hello

    I did the data binding for the table using an arrayList. On some lines of a column, the button appears. When the button is clicked I want to know which line is clicked on the buttonm and want the index to use in the java file. Please help on how to do it.

    Hello

    On your table, you can have

    varStatus="rowStatus"
    

    and in the button, set the attribute as follows

    
     
       
     
    
    

    In your managed bean, you can access the index of the selected button

    public void myActionListener(ActionEvent e){
     System.out.println("index :" + e.getComponent().getAttributes().get("index"));
    }
    

    I hope this helps...!

  • How to add dynamic items based on the results of a dynamic query?

    Hi all

    I'm quite new to ofa, here's my problem.

    I have a table 'interventions', each intervention have actions stored in the table "actions".

    I want to show the actions of an intervention in a list, based on the id of the intervention. the response ID value is dynamic, so does not know the number of shares that you want to display in the list.

    Can someone tell me the steps to create a region that has dynamic elements to display names of action?

    Thank you

    Kind regards

    Afaf

    Afaf,.

    Take a look on the link below to see how to create dynamic VO:

    Blog of Anil Oracle Application Framework: create VO when running at the controller or dynamically created VO

    You could add messageStyled text like the code below:

    OAMessageStyledTextBean newMessageBean = (OAMessageStyledTextBean) createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, null,"" ");

    Links to dynamically create elements below:

    Add columns to the table advanced in OA Framework Programatically by Extension

    OPS KNOWLEDGE HELPER

    Let us know if you get any errors when creating.

    See you soon

    AJ

  • How to create a 2nd selection using the elliptical selection tool

    I try to create the outer edges darker IRIS with the elliptical selection tool. I am trying to elect the iris and then create another selection of the iris 2nd with the elliptical selection tool. This does not work for some reason any. I work from the examples and exercises in the book "Portrait Professional retouching TECHNIQUES for photographers using Photoshop" by Scott Kelby. But for some reason, the tool does not work and I'm going through the procedure of Scott Kelby said to do. After I have selective elliptical selection tool, I do a circular selection around the Iris then after I adjust the size of the selection, I go to the "Sélection" menu and choose "MAKE SELECTION" then, command - click a selection handle to help it adapt to the Iris; Then I press on and hold down the SHIFT key and select the other Iris. This allows you to create another selection on the 2nd Iris. This is the part that is not work - the creation of the second selection on the 2nd Iris.  can someone help me with this problem?

    Too bad I found that I had to have the selected squre which has been added to the chosen SELECTION. When I did that I could add to my selection

    Sent by the assets of Samsung Galaxy S® 6, an AT & T 4 G LTE smartphone

  • How can single checkbox can be selected in the table with Boolean checkboxes?

    I have a table editable ADF where an attribute is a Boolean checkbox... and stores the value with Y or N.

    Is there a way where the single checkbox must be selected at time of posting?

    For example, in the case its a table of responses to a choice unique to an application of Questionnaire, Question by adding new responses to the table..., the user inserts 3 rows (answers)... then the Boolean checkbox for only one of these 3 rows can be verified.

    Thank you
    DJ

    Since you have an attribute that has the "Y" or "n" for each line.
    When the user selects a line, you must deselect the other lines using the value change listener pro-grammatically.
    If the number of rows is large, it could be performance intensive.

    Thank you
    Nini

Maybe you are looking for

  • Windows 10 does not

    I am trying to load windows 10 on any new Mac mini and I got in trouble. ISO on a USB key, I downloaded directly from microsoft (I used it for other facilities and no mac and mac) plus I have a brand new DVD, I tried as well (although windows pro 8.1

  • "Firefox updated" is incorrect.

    I use the automatic update. My company requires us to upgrade to the current version and we alert when a new version is available. When I open Firefox, it is not a new version is available, and when I followed the path "about firefox", Firefox just t

  • mechanic registry PC Tools are useful software?

    I'm not really sure of the effectiveness of the software. I believe that any good software must come from Microsoft.Why Microsoft left the door for * software?

  • ICS-is it worth

    can you play android 2.3.4 games in ics and what's actually useful upgrade ics

  • Quicken was not able to start because the side by side Configuration is incorrect

    Last week, I installed Sevrice Packs 1 and 2. When I tried to open Quicken yesterday I got this message. "The application didn't start because its side by side configuration is inccorect. Check the log of events applications for more details. "Do it,