Tabular presentation - column to turn it off (with picture) based on another value of the column

Hi all

I haven't worked much on tabular forms and JS. I'm looking for help in this regard.

I'm working on a tabular presentation. with several editable fields... I need to disable a column (just for this single line), which contains an image, based on a field of LOV (static) list) (Y/N). The image column must be disabled if the value is N.

My SQL for the report is something like this: (will keep things simple)

Select

emp_id,

emp_name,

static_list,

(case when STATIC_LIST = "Y" THEN ' < a title = "Edit SAMPLE TBL" href = "f?) p = & APP_ID.:10: & APP_SESSION.:NO:P10_EMP_ID, P10_EMP_NAME :'|| EMP_ID | «, » || EMP_NAME | "" "> < img src =" "#IMAGE_PREFIX #SAMPLE.gif" border = '0' (> < /a > ' other ' ' end) as disable_col, "

dept_name

of sample_table

I scoured the topics in this forum. Most of them were made using the table ID f_001, f_002.

I tried to follow the same path by inspecting the item but the disable_col does not have any ID.  Let's say, f_003 is for the static list and f_004 is assigned to dept_name.

I tried dynamic actions, but it did not work. Read in a topic that dynamic action does not work on tables. So I chose this approach. Is there a simpler way to solve this?

need your help on how to proceed with this scenario. Thank you in advance.

Versions: Apex: 4.2, DB: 11 g

Thank you

Daniel

Hi Daniel_A,

Daniel_A wrote:

I did my job in Page 4.

If the IS_VALID column is select as 'Yes' then the column hyper must be enabled, allowing the user to click on it. If she chose the 'no', then the column Hyper must be disabled for this line.

The initial question about toggle the hyperlink is resolved. Check your App-> Page 4 35160.

This is done with the help of two dynamic actions:

  • DA first loading of the Page / after updating of region "tabular":

Event: After refresh

Selection type: region

Region: The other 'tabular '.

Condition: No strings attached

Action: Run the JavaScript Code

Fire on loading the Page: Yes

Code:

$( 'select[name="f08"]' ).each(function() {
  if ( $(this).val() === "N" ) {
    $(this).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
  }
});

Items concerned: no item affected

  • Second DA on the evolution of the selection list:

Event: change

Selection type: jQuery Selector

jQuery Selector: select [name = "f08"]

Condition: No strings attached

Action: Run the JavaScript Code

Fire on loading the Page: No.

Code:

var el = this.triggeringElement;
if ( el.value === "N" ) {
    $(el).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
} else {
    $(el).closest("tr").find('td[headers="HYPER"]').find("a").removeClass("apex_disabled").bind("click");
}

Items concerned: no item affected

NOTE: as the original question/topic related to toggle the image link in the column, for the problem with the Page 5, please create a new thread with the details.

Kind regards

Kiran

Tags: Database

Similar Questions

  • Make a column based on another value of the column in the same table

    JDev 11.1.1.6.0

    It may be a silly question but I'm stuck

    I need to conditionally return a column that said Condition is as if the value in the other column of the same table B is equal to F. I should make A column only when this condition is met. I tried the following code:

    < af:column sortProperty = "PhoneNumber1."
    sortable = "false".
    headerText = "#{bindings." A.hints.PhoneNumber1.label}.
    ID = "c146.
    rendering = "#{rank." PhoneNumber1ResponseFlag eq 'F'} ">"
    < af:outputText value = "#{rank." PhoneNumber1}.
    ID = "ot130" / >
    < / af:column >
    < af:column sortProperty = "PhoneNumber1ResponseFlag."
    sortable = "false".
    headerText = "#{bindings." B.hints.PhoneNumber1ResponseFlag.label}.
    ID = "c80" rendered = "true" >
    < af:outputText value = "#{rank." PhoneNumber1ResponseFlag}.
    ID = "ot129" / >
    < / af:column >

    The data presented in the table for the PhoneNumber1ResponseFlag column are F. Still my condition does not work.

    Well, I've finally sorted it myself by managed bean.

    Here are the steps I followed:

    1. Wrote a new bean managed.
    2. Added a Boolean variable called flag and made to true when the "'PhoneNumber1ResponseFlag ' current line attribute is equal to F."
    3. Changing the property made column on this indicator.
  • Update the value of the column based on another value of the column to another table

    Hi all

    I have something very confused me and need your help.

    Having two tables A and B.

    Table A have 2 column (+ id + and desc1)

    Table B have column 2 also (+ transnum + and desc2)

    Now, I want to update the column desc2 of table B identical desc1 of table was where transnum of Table B same as the id of the table has.

    I use this SQL

    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1

    but this error occurs

    Error from line 5 in order:
    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1
    Error in the command line: 5 column: 35
    Error report:
    SQL error: ORA-00933: SQL not correctly completed command
    * 00933. 00000 - "command not properly ended SQL."
    * Question: *.

    * Action. *

    Hope someone can help me. TQ for help...
    SQL> create table a1 (id number(2),des varchar2(10));
    
    Table created.
    
    SQL> create table b1 (transnum number(2),des varchar2(10));
    
    Table created.
    
    SQL> insert into a1 values (1,'maran');
    
    1 row created.
    
    SQL> insert into b1 values (1,'ram');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> update b1 set des=(select des from a1 where b1.transnum=a1.id);
    
    1 row updated.
    
    SQL> select * from b1;
    
      TRANSNUM DES
    ---------- ----------
             1 maran
    
  • Firefox v15 and up to cause my computer (MAC OSX 10.8.2) to freeze for about 30 seconds every 15 to 30 seconds and I have to turn it off with the power button

    Firefox v15 and up to cause my computer (MAC OSX 10.8.2) to freeze for about 30 seconds every 15 to 30 seconds and I have to turn it off with the power button. It this causes only after I opened Firefox, my computer works well before the opening of Firefox. I h

    It looks a little like yo maybe has a hardware problem on your computer. have you tried to repair permissions on your hard drive? create a new Firefox profile? Use the Profile Manager to create and delete profiles Firefox

  • Looping through the names of columns that are based on a value of the variable

    I have an ArrayCollection collection with a series of columns named price1, price2... through price10

    I try through these columns based on a value of the loop variable, but may not understand the syntax:

    for (var column: int = 1; column < 11; column ++) {}
    testPrice = myGrid.selectedItem.price (column); <-this does not work
    }

    Try testPrice = myGrid.selectedItem ["price" + column];

    Don't forget to test this selectedItem is not null before you try to set the values.

    TS

  • I was handed this software this morning which is installed at the end of the day and I have never delt with cloud based adobe installation, I created the package this morning and have it installed on a machine but I'm not sure how to enable it

    I was handed this software this morning which is installed at the end of the day and I have never delt with cloud based adobe installation, I created the package this morning and have it installed on a machine but I'm not sure how to enable it

    Creative cloud learn & support

    http://helpx.Adobe.com/creative-cloud.html

    Cloud creation help / install, update or uninstall applications

    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

  • Table with list of value to load on another value of the column that is never changed by the user

    Nice day!

    I work with JDeveloper 11.1.2.4.

    I have a Table of the ADF that has 4 lines.  Each row has a column with a unique value.  The plan should include a LOV column in the row show a different list of values based on a single column value.  I have install the list of values, use a display with a variable binding criterion.  When you create the data LOV source, I Specifies the name of a single column for the value of the bind variable.  However, it seems that the LOV changes none selecting different lines.

    Is there a good way to handle this?  I did LOVs of person in charge in the past, but this isn't quite the same as the user can view only the value that depends on the LOV on.

    Any suggestions are greatly appreciated!


    BradW

    Hey, it's always a case of use of the dependent list of values. If the attribute that you bind the bind variable view criteria at part of the view object then the value LOV to be examined accordingly. I did a quick test case and I see my lists filtered by an attribute in line (I used the HR schema and posted employees as candidates managerId. The employee list is filtered so that it only shows the employees in the same Department that the employee I want to put a new managerId on) Frank

  • Photoshop CS6, turn it off and use it on another mac

    Hello

    I have a license for Photoshop CS6 sc 2012, burt currently Im using Photoshop CC via Creative Cloud.

    Can I install CS6 on another computer (belonging to my daughter) with the same serial number and save it with his account?

    Thx for the info

    Jef

    Hello

    You can install and activate the perpetual software (purchased) two computers of the same type (mac or pc), as long as you use it on one at a time. (lightroom is the exception because it is a product of multi platform, so it can be installed on the pc and mac platforms)

    For deactivation refer:- https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html

  • Why my product key not valid with an installation from another CD as the original?

    I had to reload a fresh install of Win XP on a Toshiba laptop. Given that the previous owner had lost the CD; I took one I had at home a try to install it on my laptop with laptop computer product key stuck under the laptop. but when I try to install said that it is a key of product not valid. This is false because before to format the laptop, it had windows XP installed with this product key and it worked fine. I sort of... ending up with the fact that the installation needs a corresponding product key... Am I wrong? If Yes, what can I do if I want to use my laptop product key and I don't have the Original CD of Installation?

    Thank you!

    You have installed using the installation XP bad disc. XP installation disks are related to the version of the operating system and the type of installation for each particular product key. You need to install either with the recovery media OEM Toshiba (best solution, solved by ordering the recovery disc from Toshiba for a little money - usually less than $30) OR a generic OEM installation disk for the version for installed XP (Home/Pro/Media Center).  If you use a generic OEM installation disc, then you will enter the product key for the thumbnail of the laptop. If you use a generic OEM install disc, then you should go to the Web from Toshiba site and download/install all the drivers and utilities for this laptop model. There is always a ton of them.

    To contact Toshiba support, buy recovery disks, do an install clean/restore factory with these discs. You won't need to enter a product key if you use the restore disks.

    MS - MVP - Elephant Boy computers - don't panic!

  • Problem with comma when you pass values in the URL

    Hello

    I have two pages, the first page to the second page, I'm passing some values using the url parameter passing

    but certain values contains comma ex:-P1_NATION field contains INDIA, United States, United Kingdom

    but the apex treated that as these are distinct values and assign it to separate elements

    Suppose that my intention is like P2_NATION, P2_EMPLOYEE, P2_EMPID: USA, UK, INDIA, SAGAR, 123

    but the apex dealing with like P2_NATION = INDIA: P2_EMPLOYEE = USA: P2_EMPID = UK

    is there any solution for this

    Please help me about this

    I use apex4.1, db 11g, ie, chrome, ff

    Thank you

    SAGAR

    SAG says:

    I have two pages, the first page to the second page, I'm passing some values using the url parameter passing

    but certain values contains comma ex:-P1_NATION field contains INDIA, United States, United Kingdom

    but the apex treated that as these are distinct values and assign it to separate elements

    Suppose that my intention is like P2_NATION, P2_EMPLOYEE, P2_EMPID: USA, UK, INDIA, SAGAR, 123

    but the apex dealing with like P2_NATION = INDIA: P2_EMPLOYEE = USA: P2_EMPID = UK

    is there any solution for this

    The best practice is not to transfer the data in the URL, other than the minimum possible number of discrete ID. Values required in a target page can be recovered in the element source and properties by default, calculations or using these values of process ID, or by referencing the other page element values or application already in session state. Collections can be used to store multiple values in session state to use through one or more pages.

    In URL of the APEX, commas in the item values can be escaped by encapsulating values of the backslashes ('-'), while the settlers may not appear at all.

    P2_NATION,P2_EMPLOYEE,P2_EMPID :\INDIA,USA,UK\,SAGAR ,123 
    

    Also, do not use unescaped reserved characters in the URI.

  • iPad pro is not turn on/off with create Logitech Keyboard box after 9.3 updated

    I updated my iPad iOS 9.3 Pro and now when I close the case keep it turned on, even, if it is disabled, open the casing is not turn on more. Does anyone else know this?

    I'm having the same problem.  very frustrating!

  • Look for the lines selected on a tabular presentation

    Hello guys and girls,

    I have a small problem trying to understand if/how I can check by pressing the "submit" button if there where no records selected in my tabular presentation.

    To explain better: I have a selection list in which the user select an employee. On this choice, a tabular presentation appears with the own products for this employee.

    The user must check at least one of the lines to go further.

    If the user does not select all and always press the "submit" button you should see an error message saying: "there are no selected product."

    What I was doing until now (stupid I suppose) was to create a Boolean as validation:

    DECLARE

    vRow directory;

    BEGIN

    BECAUSE me in 1... apex_application.g_f01. COUNTY

    LOOP

    vRow: = apex_application.g_f01 (i);

    If vRow is NULL then

    Returns false;

    on the other

    Returns true;

    end if;

    END LOOP;

    END;

    But does not work. If I have no active records it will say nothing and let me go. If I check something even record.

    Help, please.

    There must be something that I have no idea about.

    Thank you very much.

    Gabriel

    Checkboxes only support values for the lines. For example, a loop on the table will always return true since vRow will never be NULL. In addition, a table with a number equal = 0 will not be locked during all, again don't generate no errors.

    No loop, just check apex_application.g_f01. COUNTY. If it is 0, no checkboxes have been verified.

  • Total of the dynamics in a tabular presentation

    I have a tabular presentation where people will be be detailing a sum of money. They would like to enter the amounts in the lines of the tabular form and as they enter into their they want out automatically at the top of the form so that they can see that it will match the amount they're trying to detail. How can I do this? I looked into dynamic action, but it does not seem possible with a tabular presentation, so it is maybe possible with Javascript? I have no idea how to do it well. Can anyone help?

    Thanks in advance. Apex version is 4.0.1.

    The problem with dynamic action is that it would be able to calculate the total of lines that he can see. But for example:

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

    Calculates the total when you lose the focus of an element.

    The problem is the loading of the page, it is this same calculation several times - so either disable the execute on property to load the page and add a dynamic action similar to the loading of the page so that it works only once, or simply put up with it.

    Anyway, the DA:

    Event: change
    Selection type: jQuery selector
    jQuery selector: input [name = "f03"]
    Action: run the JS code.
    Code:

    var total = 0;
    $('input[name="' + this.triggeringElement.name + '"]').each(function(){
      total+=parseInt(this.value);
    });
    $s('P17_TOTAL', total);
    

    This could be also an action define the true value, which is a little better you declaratively specify which element to assign instead of having in the JS code. In the case of the defined value, simply the variable on the last line of the JS code.

    for example, set the value with JS would become:

    var total = 0;
    $('input[name="' + this.triggeringElement.name + '"]').each(function(){
      total+=parseInt(this.value);
    });
    total;
    
  • Vertical list with subtext and icon, where to find the names of the icons?

    Hello

    I use the model of this list, I would like to know where I can find the different names of icon I can use.

    Digging, by default a gear appears and if I put in the details (shared components) list, attributes defined by the user, the 2nd, the chartIconvalue, then an emblematic painting on the list point as a symbol.
    I want to know, what values I can put out there and for what symbols (I guess that there must be alternatives by default).


    TIA,
    Dionisis

    Ms. wrote:
    Hello

    I use the model of this list, I would like to know where I can find the different names of icon I can use.

    It's not immediately clear where we find the model of list of this list. When you have a problem, you will get an answer faster, more efficient including information as much information as possible from the outset. This should include:

  • Full version of APEX
  • Complete operating system DB, version, edition, host
  • Architecture of Web server (EPG, SST or APEX listener/host operating system)
  • Browser (s) and version (s) used
  • Theme
  • Model (s)
  • Region/section type (s) (particularly as to distinguish if a 'report' is a standard report, an interactive report, or indeed a 'update report' (i.e. a tabular presentation))

    Digging, by default a gear appears and if I put in the details (shared components) list, attributes defined by the user, the 2nd, the chartIconvalue, then an emblematic painting on the list point as a symbol.
    I want to know, what values I can put out there and for what symbols (I guess that there must be alternatives by default).

    This list template uses CSS Sprite technique, with the class attributes control what icon from those available in the sprite image. It is essentially the same technique described for Shakeeb buttons: Here you put the name of the class required in field 2 of the attributes defined by the user of the entry in the list.

    The theme CSS (/i/themes/theme_25/4.2.css) reveals the following class names to be supported:

  • calendarIcon
  • userIcon
  • chartIcon
  • gearIcon
  • reportIcon

  • Problem with adding a new value to the default login Page

    I hope he's a simple guy, I added an element of the selection list to the standard login page (P101) to allow the user to select a FIELD as well as their username and password.
    When the next page appears and I am trying to retrieve the value which is held in the new domain, it has been deleted, but the values entered in the elements
    P101_USERNAME and P101_PASSWORD are always present.

    I can't understand why the values that held in points P101_USERNAME and P101_PASSWORD are always present, but P101_DOMAIN has been deleted.

    I tried to create value to the zero page and writing in the field of value using pl/sql and javascript, but as soon as the page is requested, the value is cleared.

    Any ideas how to get around this problem?

    Thanks in advance

    I guess that your login page contains a process like this:

    BEGIN
       wwv_flow_custom_auth_std.login (p_uname           => v ('P101_USERNAME'),
                                       p_password        => :p101_password,
                                       p_session_id      => v ('APP_SESSION'),
                                       p_flow_page       => :app_id || ':1'
                                      );
       :t_random_number := :p101_random_number; /* this is something I added to my code */
    END;
    

    Now, if you go to this page:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:1

    Please note the random number assigned to you. Once you login, the same number will appear on page 1 (near the top).

    So, this is how you can solve your problem.

       :t_random_number
    

    is a part of the application.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • LabVIEW 8.6 compatible with current products of National Instrument

    Based on the above title, I'm currently have software LabView version 8.6. If I choose not to upgrade to the current version, the software will always be compatible with all National Instruments products? I'm hoping to create a centralized thereby lo

  • Can I get help in obtaining several security updates to install on my computer.

    I get windows updates were not installed messages for 3-4 days. I ran all kinds of virus scans without solving the problem. I have active Microsoft automatic updates but 4 updates will not install. They are updated security for Microsoft .NET Framewo

  • reading text on the screen saver

    Come to grips with the SW3 - already had a Martian passport which seemed much more user firendly. Can read emails I receive from google fine. When I receive a text on the game, I get a notification that I received a text but am not able to open other

  • Foglight APP monitor

    I'm having proplems with APP monitor where officers monitoring the APP breaks. I have Logfilter and Netmonitor successfully deployed from the cartridge to the OS, but only monitor APP agent fails Additional accessories: support_bundle_FglAM_npwcapa4.

  • BlackBerry Smartphones Music Album Images on 8310 Media Card will be not displayed

    I thought maybe wrongly, that the part of the music of the 8310 would be similar to my mp3 player it would display the cover of the album during playback of the album.  Different albums are on the map and the album art for each image is located in th