How could put editable report column as read only based on the other domain

Hello world

I'm new to APEX. I have a modifiable tabular report (SQL query). When I choose the column (which is a selection list) of a certain value, I want column B to be read-only (depending on the result of an another SQL described below). It doesn't seem to be a READ ONLY section in the type of tabular report where I could put my SQL condition.

In other words, "column B" must be read only based on SQL returning following true or Exists:
Thus, to determine if column B is ready only, I need the following logic:

SELECT 'x '.
of tab1
where key = (value of column A)
and the flag = "Y".

Any help would be greatly appreciated!
Thank you
François

You can only do so if your tabular presentation is a manually created. In this example, it shows how to set this property:

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

You can use a case statement to set this property for specific lines.

SELECT empno,
       CASE
          WHEN ename LIKE 'A%'
             THEN apex_item.text
                              (34,
                               job,
                               80,
                               100,
                               'style="width:170px" readonly="readonly"',
                               'f34_' || '#ROWNUM#'
                              )
          ELSE apex_item.text (34,
                               job,
                               80,
                               100,
                               'style="width:170px"',
                               'f34_' || '#ROWNUM#'
                              )
       END job
  FROM emp

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

Tags: Database

Similar Questions

  • Field read only based on the authorization form

    Hello

    I have a field in a tabular presentation read only based on a permission scheme, as you can for a field in the region with the help of a condition of PL/SQL. Is it possible to do this?

    See you soon,.
    Andrew.

    Hi André,.

    Caught this idea,

    Please create a plus column within the report using as "alaisecolumnname" then

    column with editable text for authorization schema [ISADMIN] box
    draw sheet column with displayonlytext for authorization shcema [NOTISadmin]

    I hope that it will match your expected results, I tested it in my workspace works very well for me

    Thank you
    Select this option.

  • How could call a report from another report?

    Dear developers,

    How could call a report from another report?

    is this possible? and what is the call statement?

    Note: I use the 6i report



    Thanks in advance,


    Bil

    Hello

    It seems that you 'open' a quote before: orderby.
    You must "close" this quote after: orderby

    SRW.run_report ("report = SDCRVRF106 Cl_NO ='|"'|: CLIENT_no | "") ' || ' d1='||'''' || :D1 ||'''' ||' d2='||''''||:D 2 ||'' ' |' orderby =' | '''|| : o rderby | " ') ;

    concerning

  • How to do a bunch of fields read only value-based

    IM using jdev 12.1.2.

    I have a fragment with a few dozen jsff fields. I need to make these read-only or editable fields based on a value. I know how to do this for each field, but I was hoping there was a way to do this for each of them with a single property. For instance, all the fields are in a panelgrouplayout or a panelformlayout can I set a property on this provision which will set then all areas reporting to him read-only. I was just trying not to put the property read-only on each field of monkey.

    There is none of these goods or componentwhich allows you to do. All you can do is to set the readonly property of each field to the same property (bean or pagedef) and ppr the container so that the components are updated.

    Or you use a bean method that sets all the fields editiable readonly properties in a contianer orf true false. It would save that you set the property for each field.

    Timo

  • How can I convert an incoming call read only an attachment so I can change it?

    How can I convert an incoming call reads only attachment so that I can change it? Save in Word does not it, and find research peut t.

    So, the problem seems to be that attachments are stored as files read-only by Thunderbird and an application it can open without editing privileges, so you cannot change the. Read-only mode was chosen because these files are kept in a temporary location. For example, if you modify and save the back, they are deleted when Thunderbird is closed, so losing your changes. The idea is to force to save you to a different location. You should be able to do it, then open it from that location with full editing capabilities.

    For a permanent change in this behavior, go in the [tools >] Options > advanced > general tab and click on Config Editor there. After you confirm the warning, copy - paste browser.helperApps.deleteTempFileOnExit into the search bar and switch false to true by double clicking on it. Now, saved attachments are created with read/write permissions, but is more removed when Thunderbird is closed (i.e., stored in % AppData%\Local\Temp).

  • On adobe Illustrator, how could I sellect a selection of layers and move to the top of the tab layers everything always now on layers selcted, other than to scroll to the top?

    On adobe Illustrator, how could I sellect a selection of layers and move to the top of the tab layers everything always maintaining on the selcted layers in a sub-folder already done, other than to scroll upwards and gout? As it takes long time, if there are a few hundreds layers. Shortcut keys / setting?

    I'm afraid, is not a feature in artificial intelligence. [PS it would be Shift-Cmd / Ctrl +] or [.]

    Add as a feature here request: Illustrator feature request/Bug Report Form

  • How to fill a field read-only based on selections from 2 DDlists?

    Follow-up question:

    http://forums.Adobe.com/message/2417876#2417876

    I have 2 drop-down lists.  'Department' and 'unit '.

    The selection in DDlist 'Department' creates a single list in DDlist 'unit '.

    I select the appropriate of these two DDlists elements.

    When I do this, I want the text read-only 'NameOnIDBadge' field is filled with a predefined entry.

    Example:

    In DDlist "Department", select the item «Finance & Administration»

    In DDlist 'Unit', select the 'Food Service' item in the list that appears

    THEN:

    In the text field read-only 'NameOnIDBadge' of the following built-in read-only text appears: "contract food serv.»

    (Thanks to Paul, I already know how to do selection in DDlist 'Department' affect the selection list in DDlist 'Unit')

    "but I don't know how to make the choice of these two DDlists to create a new entry in a text field).

    I have attached a mock-up of the file that I work with...

    If ((firstDDList.rawValue="Whatever") & (secondDDList.rawValue = 'Whatever'))

    yourTextBox.rawValue = "the text on the right"

    This code would go under the second output of DDList event, replace the code I put in there to add the control to the first DDList

  • How to unlock my user account. or, how to unlock a document on a read-only mode?

    How to unlock my user account. or, how to unlock a document on a read-only mode?

    Hi TerriBuckley,

    1. what operating system do you use?
    2. what happens when you try to connect to the computer?
    3. have you made changes on the computer recently?

    Method 1
    If you forgot the password of the computer, then I suggest you to see the following articles.

    What to do if you forget your Windows password
    http://Windows.Microsoft.com/en-us/Windows7/what-to-do-if-you-forget-your-Windows-password
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-to-do-if-you-forget-your-Windows-password

    The Windows password problems
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Windows-password-problems

    Method 2
    I suggest you try the steps from the following link to open the file or folder.

    What are the permissions?
    http://Windows.Microsoft.com/en-us/Windows7/what-are-permissions
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-permissions

  • How to move a virtual machine from one virtual switch to the other since the SDK / command line?

    How to move a virtual machine from one virtual switch to the other since the SDK / command line?

    Joshua Smith

    Are you referring to the evolution of the virtual machines network portgroup of one to the other and in your case potentially issue on to another vSwitch? If so, take a look at this script: updateVMPortgroup.pl everything you do really makes a call to ReconfigVM_Task() and passing in a specification change and put to day the network in which you want to change

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    Twitter: @lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Why not make a text box read only based on drop-down of work?

    Hello experts.

    I received help on this a few hours ago, and it has worked very well so I closed the discussion and form.  However, now it no longer works and I don't know what I did.

    I have a form with a dropdown list and two text boxes.  The first text box is populated according to the value selected in the drop-down list, I used a simple table of the to do and it works as expected.  I had to bring textbox2 read only based on some selections in the drop-down field.  It worked very well at the beginning, but now it no longer works.  I did not any changes to the form except that I closed and since.

    I try to get the following to work:

    If (this.rawValue is "Junk" again)

    {textbox2.access = "readOnly" ;}

    If (this.rawValue is "More Junk")

    {textbox2.access = "readOnly" ;}

    I put this in the change event using javascript.  I use ARE 8.2 on Windows Vista 32 bit.

    Any help would be greatly appreciated.

    Thank you

    Jerald

    In the case of change you can't get the rawValue... So, use xfa.event.newText to get the modified text...

    Also, you have a space at the end of the value while comparing. In the code below I removed it.

    If (xfa.event.newText is "Junk Again")

    {textbox2.access = "readOnly" ;}

    If (xfa.event.newText == more "junk")

    {textbox2.access = "readOnly" ;}

    Thank you

    Srini

  • You have read-only access to the inventory of the Oracle

    I try to install on the AIX machine, I get the below error please help

    Hostname resolved - xxxxxx
    Supported operating system - AIX
    You have read-only access to the inventory of the Oracle
    Failure to meet all the prerequisites can lead to unsatisfactory results. If you have errors, please see the help or documentation for more information.

    There is a file. Oracle.properties which is an inventory of the oracle. Search and find which directory it is located, you may need to change the permissions to have full access. It is used during the installation to determine which products can be installed and what needs to be upgraded

  • Read only access to the database

    Hi all

    I am unable to give read-only access to a newly created in the Oracle database user. I grant only read permission to the user, but the problem, it's that this user is able to delete data from a table or schema.

    Must only give 'Read only' access to the user who will be sql query for any table, schema, etc.


    I followed the steps.

    1 creation of the user

    2 granted suite privilege

    CREATE SESSION

    SELECT_ANY_TABLE;

    SELECT_ANY_DICTIONARY

    Please guide on the same.

    user8934591 wrote:
    Hello

    I created the user "MFC".

    and granted 'create the Session '.

    Thank you and best regards,

    Fine. But I asked PUBLIC.

  • Setup error: you have read-only access to the inventory of oracle

    Hi guys,.

    In some versions of Linux, for example. Fedora, Ubuntu... every time I install the Hyperion product, I get this error "you have read-only access to the oracle inventory." and also the interesting thing, if this error comes Oracle does not settle "OpenLDAP' which is required to run shared services.

    With Oracle Enterprise Linux, and everything seems fine. and I did not get the above error also OpenLDAP is installed.

    any help would be appreciated. attached is the screenshot of the error.

    [https://docs.google.com/leaf?id=0BwB5xiYJ_HGwMDZkNjQ1OTEtMDg4Zi00NGM3LTk5NDAtYzE1ZmJkZTcyMzU0 & hl = en]

    Thank you

    Supported versions of linux, with you have found problems.
    I thought it was just Oracle Enterprise 4/5 and Red Hat Enterprise 4/5 that are supported.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to make a non editable report column in a master form / details

    Hi all

    I created a form master / detail. The detail columns are created in the form of report columns instead of creating as components. I need to make a non-editable column. Please let me know how to achieve this.

    Thanks in advance.

    simple just go and change the attribute of report and make the field display type as > "Standard report column.

  • How to 'Style' a report column onClick

    I have a report and a column is a link. When the user clicks on this link in the column, I display a report corresponding to the value of the column in the area below. How highlight or the particular column whose report figure of speech? any ideas are appreciated.

    Thanks for your help,
    Surya

    Surya,

    OK, I've updated the application to give you an idea of how it could be done. Do, I'll tell you that's not the best. You should really be seized off the coast of the ID of the user, not the name. This would mean that you would need to have another element hidden with the ID. Then I rewrite the code to be a bit more specific on the line to report selector. In addition, you will need to hit all the td elements in the line...

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen

Maybe you are looking for