Disable or enable a text based on the recorded person field.

I have a requirement in a form based on an Oracle table. If my manager opens the top form, he could enter a value in a text box. But if employees open the same form that they could see the text field but cannot change the value in the text (i.e., its registered status and disable) box.

Please suggest me what I do? Enjoy it!

Thank you
NS

How you are authenticating users? You can install plans permission to hide and show elements, or you can set read-only properties.

Tags: Database

Similar Questions

  • Limit the number of characters in a text based on the first digit field

    Hello and thank you in advance for your help!

    I want to limit the amount of characters in the text field based on the first digit of the number (the text field is limited to a number format... no decimals, no comma).

    For example, if the number starts with a 3, I would limit the text field to allow only ten characters. I have three scenarios but if I could start with code and what is the best place to add (key combination or validation?) I can take it from there. Thanks again for your help!

    I wrote this code for you that does this. Use it as a typo of the custom field code:

    // Validate that only digits are entered
    if (event.change) {
        event.rc = /^\d+$/.test(event.change);
    }
    
    // Validate string length if it starts with 3
    if (/^3/.test(AFMergeChange(event))) {
        event.rc = AFMergeChange(event).length <= 10;
        if (!event.rc) app.alert("If the number starts with \"3\" it may not be longer than 10 digits.",1); // optional error message
    }
    

    You can duplicate the second part of it for additional terms, but keep in mind that this code won't let you even remove the first character in the field if the result is not valid.

    For example, if you enter "234567890123456" then you can't remove the "2" at the beginning because that would result in a number not valid. You can delete all the other numbers, even if and when it is 10 digits or less, then you can remove the departure "2" as well.

  • Sorting of virtual machines based on the record, they are in

    I want to sort vm based on the record, they are everyone knows how to do this? Even better export to the excel sheet.

    You want only the name of folder or the complete file path?

    If it's only the name of the folder, you can use a slight variation on the script in the list of VMS by folder name.

    Something like that

    $report = @()
    
    Get-Folder | %{
      $folder = $_.Name
      $_ | Get-VM | %{
        $row = "" | select FolderName, VMName
        $row.FolderName = $folder
        $row.VMName = $_.Name
        $report += $row
      }
    }
    $report | Sort-Object -Property FolderName | Export-Csv "C:\VM-by-folder.csv" -NoTypeInformation
    
  • change the field type selection list of text based on the data in the other domain.

    Hello

    We have a requirement where we are looking to display the page as element select list or a free text field based on the value of the item to another page.

    Say, we have two fields

    Day:

    Products:

    If day = 'Monday' produced a drop in low field of another product would be a free text field.   Is this possible in APEX?

    This is the configuration I did.

    I used the field produced twice (as a text and list field select) as an element of a page., dependent on the value of the day I used the dynamic properties of actions to show/hide these fields.

    However, when I click on submit, it throws an error:

    ORA-06550: line 1, column 108: PL/SQL: ORA-00957: name of column in double ORA-06550: line 1, column 13: PL/SQL: statement ignored


    Kind regards

    Satya

    You can have both share the same database column, the process of the APEX DML does not know how to consolidate.

    You will need to add a calculation and determine the real value based on two fields, up to an only one mapped to db.

  • Can the color of the text based on the value

    I searched for a way to change text color based on the value fields

    If Textbox =, then A will be blue

    If Textbox = B, then B will be red

    I just need help get the fi then code work, change of color after it is easy

    Any Suggestions...

    To change the boder, add the following script to the exit event:

    If (TextField1.rawValue is "Desired value")
    TextField1.border.edge.color.value = "255,0,0";
    .
    .

    For the fill color, add the following script to the exit event:

    If (TextField1.rawValue is "Desired value")
    TextField1.border.fill.color.value = "255,0,0";

  • How can I add Auto text based on the value in the numeric field?

    Need help... I'm trying to add the auto text to a text based on a value in a numeric field. I want my text fields (summary box) to say 'Success' if (box score) value is equal to 10 and say "is not good" If the value is less than 10. My digital field is calculated by selecting drop-down lists.

    Thanks in advance for your help.

    Ed Watson

    Here is a link to the document that I created...

    https://files.Acrobat.com/?TrackingID=KGLIT#folder/c3106c32-2e69-4a5f-8ef2-94d25623dbfb

    Try this:

    If (NumericField1.rawValue< 10)="">

    TextField1.rawValue = "does not."

    }

    else {}

    TextField1.rawValue = "passed."

    }

  • Passing DB values to the text based on the Select Value box

    Hello

    I'm very big thing back to the Oracle APEX. In my project, I have a requirement in which I need to pass different values for the corresponding text boxes on a different page based on the value I select in the item "Select Value".

    I tried using processes calling for demand, but could not get the desired result.

    Please suggest!

    Hello

    Can you repeat your scenario on apex.oracle.com? It will be easier to fix it this way.

    Kind regards

  • Interactive report, change in color of the text based on the value in another column

    I have a sample report at this url:

    workspace: homeworld

    username: test_report

    password: test_report

    APEX version 4.2.3 database 11 g release 2...

    # Application: 202: IR TEST REPORTS

    Page in question is #2 page

    I have the setup of the report and you must make the following change...

    I have 2 columns: Comm and bonus.

    If the bonus > comm, I need to change the text color of the color of the Red bonus

    If the bonus, comm, I need to change the text color of the bonus in green color

    If the bonus = comm, I need to change the text color of the bonus to black color

    I tried using the code with the select and am NOT wanting that, since he will be delivered with the data when they are downloaded in CSV or Excel... Had thought using the construction by highlighting, but that does not compare one column to another...

    Thought a dynamic action, but not clear on HOW to do this, so any help would be appreciated...

    Thank you

    Tony Miller

    Software LuvMuffin

    Hello

    I think that number with JavaScript conversion may not be good idea because it's difficult manipulating different digital formats.

    Check your example on page 3.

    I have added to the report query

    CASE WHEN COALESCE(bonus,0) > COALESCE(comm,0) THEN
     'red'
    WHEN COALESCE(bonus,0) < COALESCE(comm,0) THEN
     'green'
    WHEN COALESCE(bonus,0) = COALESCE(comm,0) THEN
     '#333333'
    END as fcolor
    

    Then I modify every column Expression HTML to be as

    #EMPNO#
    

    Kind regards
    Jari

  • AF:table - change disabled property of input text according to the value of the attribute line

    Hello

    I use Jdev 12.1.2.

    I have a table with the number of lines.  Each line has a FutureCode attribute and other attribute FutureComments.  I want to make sure FutureComments is disabled unless the FutureCode of this line is is 'OTHER '.

    I tried to go to the text of the FutureComments component in the table and setting the property to the expression for disabled:

    #{row.bindings.FutureCode.inputValue == 'OTHER'? false: true}

    But it does not work.  I messed around with the parameters in the table (distribution of content, immediate change), but I did not get a configuration so that it can work.

    A little more information, the text input component are always disabled.  I also tried using the expression evaluator in the debugger to check the value of my #{row.bindings.FutureCode.inputValue}, but it is null, no doubt because he does not know what line I'm talking about.

    Any idea on this?  Thank you.

    Hello

    There the lov on future code?

    will not have operator you used? Try

    #{row.bindings.FutureCode.inputValue! = 'OTHER'}

    If this does not work

    Try

    #{row.bindings.FutureCode. attributeValue ! = 'OTHER'}


    Thank you

  • Fill in the field of text based on the menu drop down.

    Here's the scenario: I have 2 drop-down lists on page 1 (list1, List2). Based on this selection, I want to fill in a text field on page 2 with their values, after clicking on a button to update at the bottom of page 2. I use the button click event, but how can I get the actual values of each drop-down list on the previous page?

    You must give the full path to the objects (i.e. form1. Page1.DDListName.RawValue). look in the view hierarchy to see the structure you want. Conversely, you can place the cursor in the script editor where you want the reference to appear, hold done the key ctrl and move the mouse to the object you wish to reference (it will change into a V). Then click on the mouse and the appropriate for this object reference is displayed in the script editor.

    Paul

  • JavaScript to fill the text based on the drop-down list field

    Hello

    I'm trying to write a javascript script to fill a "Textfield" based on what I select in 'Dropdownlist control' this has on a relationship between them. I tried to integrate the script on the category of 'Change' and the script was the following, but it didn't work. I would be grateful if someone can help me with the correct procedure.

    Thank you

    Vijay

    Form1. #subform [0]. DropDownList2 [0]: change - (JavaScript, both)

    function populateDescription() {}

    if (document.subform [0].) {DropDownList2 [0] .value == "BIH")}

    document.subform [0]. TextField83 [0] .value = "Burn in and PBI history."

            }

    }

    I solved this problem by using a script to switch.

    Please see my previous thread in this regard and Paul example will provide you with the right script for a script to switch.

    http://forums.Adobe.com/thread/479021

    script on the drop-down list as follows

    Switch (this.rawValue) {}

    case "dropchoice1".

    FieldName1.RawValue = 'choice of text here ';

    FieldName2. RawValue = "choice of text here ';

    break;

    case "dropchoice2".

    FieldName1.RawValue = 'choice of text here ';

    FieldName2. RawValue = "choice of text here ';

    break;

    }

    Good luck.

  • Display different text based on the time of day?

    Hello

    I want to have a msg text showing according to the time zone of the user of the native device. For example, when the user is during the day, it displays "Hello". And when the night time comes, it shows "good evening." Is there that an average muse can achieve this? If so, can you please tell me how? either use the widget or write javascript code by adding the html object? Thank you

    You can have fun with JavaScript date() functions. Search the Web. a lot of info on this around.

    Mylenium

  • Select texts based on the option "customer tracking/kerning.

    Hi all

    If it is possible to push all the texts of tracking/kerning table? If it is possible to attack with highlighting of text as shown below?

    Screen shot 2015-05-05 at 5.11.34 PM.png

    Screen shot 2015-05-05 at 5.12.36 PM.png

    So I put together a few lines.

    Try them and tell me if it points in the right direction.

    To use the Script, you need an InDesign file with text. Some characters have kerning (-100). On top, you need a character style in the InDesign document with the name of "red". If you change the color in the character style, you should see that the characters with kerning (-100) have given color after you run the script.

    Kind regards

    Daniel (from Switzerland)

    main();
    exit();
    
    function main() {
    
        // if there is an open document in InDesign
        if (app.documents.length > 0) {
            var myDoc = app.activeDocument;
    
            // get the selected text
            var mySel = myDoc.selection[0];
    
            if ((mySel != null) && (mySel.constructor.name == "Text")) {
    
                // create an array
                var charArray = new Array();
                alert("information \nText selected");
    
                alert("Information\n# characters selected: " + mySel.characters.length);
    
                for (var i = 0; i < mySel.characters.length; i++) {
                    var myChar = mySel.characters[i];
    
                    // if the kerning was changed
                    if (myChar.kerningMethod == "Manual") {
    
                        // output to the console
                        $.write("Character: >" + myChar.contents + "< kerning: " + myChar.kerningValue);
    
                        // if the kerning is -100 or  less
                        if (myChar.kerningValue < -99) {
    
                            // apply characterstyle to found characters no array needed
                            myChar.appliedCharacterStyle = myDoc.characterStyles.item("red");
                            $.writeln(" OK got it");
    
                            // push character into array
                            charArray.push(myChar);
                        }
                        else $.writeln();
                    }
                }
                alert("Information\nCharacters with kernig -199 found: " + charArray.length);
            }
            else alert("Warning\nNoting or no text selected");
        }
        else alert("Warning\nno document open");
    
        alert("Information\nI did my job, what about yours?");
    }
    
  • Need to fill out the field of text based on the selection after pressing an event in the OPS

    Dear all,

    I have a requirement as below

    I have a table of tip having a LOV field and I have a button to add a line so that I can add a row more lov field and after I am pressing a button to insert the LOV data into a table, my requirement is in the top of the page that I have text field, I have to fill the selected values of LOV in below format in this area.

    EX:

    Table of the advance:

    Row1:ABC

    Row2: DEF

    In the text field, I need ABC-> DEF in this format after pressing a button, and that the value should insert into the table in this form, please help me on this

    Thnaks

    Hello

    Advanced table: (SEE: SampleAdvnacedVO)

    RowNo ColLovValue

    1 ABC

    DEF 2

    Create an OAMessageTextInputBean (Id - ValueItm) and

    Set Property Render ${oa. RenderVO1.Render} with initial value as a BOOLEAN. FAKE.

    Button: Send

    Create a partial fire Action by clicking on the "submit" button

    Code central:

    Of the PFR:

    {if ("submitClick". Equals (PageContext.GetParameter (EVENT_PARAM)))}

    am.invokeMethod ("executeRenderVO");

    OAViewObject vo = am.findViewObject("SampleAdvnacedVO1");

    Line = vo.getAllRowsInRange ();

    String value = null;

    SampleAdvnacedVORowImpl voRow = null;

    for (int i = 0; i)< row.length;="">

    {

    voRow = rank (SampleAdvnacedVORowImpl) [i];

    value = value + "-->" + voRow.getColLovValue ();

    }

    System.out.println ("values-" + value);

    OAMessageTextInputBean valueItmBean = (OAMessageTextInputBean) webBean.findChildRecursive("ValueItm");

    valueItmBean.setValue (value);

    }

    GOT the Code

    public void executeRenderVO() {}

    OAViewObject vo = getRenderVO1();

    vo.executeQuery ();

    vo.insertRow (vo.createRow ());

    Line OARow = (OARow) vo.first ();

    row.setAttribute ("to make", Boolean.TRUE);

    }

  • Disabling and or hiding controls based on the value of a popup

    How should I do for this? I have defined indicators for the param popup to PF_ParamFlag_SUPERVISE as follows

    def. Flags = PF_ParamFlag_SUPERVISE;

    () PF_ADD_POPUP

    'Mode',

    6,

    1,

    "Option 1 | Option 2 |... »,

    POPUP_MODE_ID

    );

    And I am typing the command PF_Cmd_USER_CHANGED_PARAM as follows

    case PF_Cmd_USER_CHANGED_PARAM:

    ERR (UserChangedParam (in_data, out_data, params, output, reinterpret_cast < PF_UserChangedParamExtra * > (additional)); )

    break;

    ...

    static (PF_Err UserChangedParam)

    PF_InData * in_data,

    PF_OutData * out_data,.

    PF_ParamDef * params [],.

    PF_LayerDef * outputP,.

    PF_UserChangedParamExtra * additional)

    {

    PF_Err err = PF_Err_NONE;

    If (extra-> param_index == POPUP_MODE_ID)

    {

    If (params [POPUP_MODE_ID]-> u.cd.value == 2)

    {

    Code to activate and display controls

    }

    on the other

    {

    COSE to disable or hide controls

    }

    }

    return err;

    }

    I'm doing all right so far? What is the code that I put in the "if (params [POPUP_MODE_ID]-> u.cd.value == 2)" block to turn off a setting? What a difference the code would be to hide the parameter completely? Can I hid the subjects just like I can hide the parameters? I'd have a use for all three things, I just can't understand how do.

    Hmmm...

    everything seems ok...

    a number of things:

    1. use a NULL value instead of globP-> my_id

    2. who owns & meH? how it was created?

    3. making the previous calls to suites in the same scope work? (i.e. is this specific line, or is it just the first to be called)

Maybe you are looking for

  • How can I remove the zone of silence at the beginning of a track?

    Hi, new to Logic Pro X.  None of the documents makes no sense to me.  Everything I need to know how to do today is to rub the silent areas at the beginning and end of a track.  Intuition says just drag to select the area I want to go and select cut. 

  • HP dv7-7270 envy: module Intel Centrino Advanced-N 6230 WLAN 670691-001

    ENVY of HP dv7 - 7270ca Notebook PC Model #: C2H79UA I would like to upgrade my laptop to work on the Strip fi wi 5 mhz. Are there any recent changes or updates to this issue?  The last time I checked the module Intel Centrino Advanced-N 6230 WLAN 67

  • Lost recovery disk Toshiba Satellite A50

    I am currently in the United Kingdom. I bought my laptop TOSHIBA to Hong Kong in 2004. I lost the recovery disk and cannot restore my laptop after the recent attack of virus on my laptop. Please let me know how I can get the recovery disk. The operat

  • Unable to make calls from my iphone6s ougoing

    Hello Apple, I have an Iphone Apple 6 white (16GB). I am facing a problem in so many days. My outgoing call service is temporary not available at any time, but at the same time I am able to receive incoming calls, mobile internet and send, to receive

  • Paper jam in the printer hp photosmart c4480

    Paper jam in the printer hp photosmart c4480 How do you get the A6 envelope to remove it?