several attributes in the box?

Apex 4.2

I have a classic report with a box... I want to be able to disable the checkbox value is assigned to another column in the report.

I would also like to call an onchange event to disable some buttons if it is enabled.

I can get each of these actions to work separately, but not both at the same time.

I have created an example query below with the emp table. Can't seem to put two attributes in the apex_item.checkbox2

Does anyone know how to do this? whatever action I put everything first is executed and the second action is ignored.

Decode(DEPTNO,10,'disabled=disabled',null) OR 'onchange = "spCheckChange (this)",')

Select empno, ename, job, mgr, hiredate, sal, comm, deptno, apex_item.checkbox2 (1, empno,)

Decode(DEPTNO,10,'disabled=disabled',null), 'onchange = "spCheckChange (this)" ';) action of emp

http://Apex.Oracle.com/pls/Apex/f?p=36690:2:204906985086:

[email protected]

Whiskers1

Documentation:

APEX_ITEM

Definition of check box:

APEX_ITEM.CHECKBOX2(
  p_idx IN NUMBER,
  p_value IN VARCHAR2 DEFAULT NULL,
  p_attributes IN VARCHAR2 DEFAULT NULL,
  p_checked_values IN VARCHAR2 DEFAULT NULL,
  p_checked_values_delimiter IN VARCHAR2 DEFAULT ':',
  p_item_id IN VARCHAR2 DEFAULT NULL,
  p_item_label IN VARCHAR2 DEFAULT NULL)
  RETURN VARCHAR2;

How you set your call to it:

apex_item.checkbox2(
  p_idx            => 1
, p_value          => empno
, p_attributes     => DECODE(deptno,10,'disabled=disabled',NULL)
, p_checked_values => 'onchange="spCheckChange(this);"'
) action

You set other attributes by splitting them with a comma. You describe all the attributes of a single shot.

How it should be:

apex_item.checkbox2(
  p_idx            => 1
, p_value          => empno
, p_attributes     => DECODE(deptno,10,'disabled=disabled',NULL) || ' onchange="spCheckChange(this);"'
) action

Named parameters can help you cope with this kind of situation.

Tags: Database

Similar Questions

  • ColdFusion files downloaded with several attribute in the tag input processing

    Hello, all,.

    (For the first time), I try a function which will be posted via HTML5 form from one code files < input type = "file" multiple = "multiple" name = "images" / > tag.

    Specifically, how do I determine how many files have been selected for download on the side Server?

    The goal is to use CFFILE to READASBINARY the images, and then insert that the directly into a MySQL database.  (That last part, I think I have down pat.)

    V/r,

    ^_^

    OK... It's CF10, so I don't have the luxury of form definition to present several elements (such as check boxes, boxes option or others who submit a list separated by commas of data) in a table instead of a list... However...

    What I've discovered, is that file multiple entry shall submit a list separated by commas of the files.

    So what I learned is that if the form is present, use REMatchNoCase() on form.fieldnames looking for the name of the input file element and the length of the array will be the number of downloaded files.

    
        
        
        There are #arrayLen(results)# files being uploaded.
    
    

    The downside of this VERY simplistic code is that the form element exists even if no file is selected, it will always display at least one.  Adding validation to make sure that one has the other thing that an empty value would be a good idea. but for brevity, I'm not add that here.

    HTH,

    ^_^

  • Add attributes to the class IMAQdx

    I have a Subvi change several attributes of the camera; However, none of these attributes are included in the class IMAQdx.  Therefore, I have to use a long doubling property node where each value, I want to view or change, I must first write this attribute as current attribute.  Is it possible to add attributes to the class, so they will fill in the list of nodes of property of the attributes of the camera?

    Sorry, no, it is not possible today. We are actively seeking improvements API to address this kind of problem in the future versions, however. Out of curiosity, are properties youj are eager to change provider-specific or are common already specified by the features Standard Naming Convention (http://www.emva.org/cms/upload/Standards/GenICam_Downloads/GenICam_SFNC_2_2.pdf)

    Eric

  • Corrupt mail? My new gmail address mail went down fine. Then I lost a large part of it in the box in. Sent mail seems to reproduce several times in my project. Also in the trash without my help. Help appreciated. Thank you.

    Corrupt mail?

    My new gmail address mail went down fine. Then I lost a large part of it in the box in.

    Sent mail seems to reproduce several times in my project. Also in the trash without my help. Help appreciated. Thank you.

    Yosemite of OS X running.

    Also went to Applications > utilities, disk utility. and 'Repair permissions' restarted when finished. Don't know if this will help future emails.

    To project e-mails, open the preferences Mail account tab select the account gmail and go to the behaviour of the ball. Uncheck the tab where you will store draft messages on the server.

    Give a little more detail on other issues. For the lost emails, they lack also the site of the gmail webmail?

  • Problem in creating several attributes XML with the same name of the attribute

    I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:



      
         
         
         
      

    I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)

    Then I call AddAttribute with add, key & Key0, then with add, value & 0.  This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces ""and I find myself with"" only.

    I do something wrong or CVI is not able to create an XML of this type?

    Thank you

    Here's how you do it. I show not to keep things simple error checking.

    #include

    public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
    {
    Add the CVIXMLElement;
    CVIXMLNewElement (parent, -1, 'Add', &add);)
    CVIXMLAddAttribute (add, "touch", key);
    CVIXMLAddAttribute (add, "value", value);
    CVIXMLDiscardElement (add);
    }

    void main (void)
    {
    CVIXMLElement root, and appSetting;
    Doc CVIXMLDocument.
     
    CVIXMLNewDocument ("configuration", &doc);)
    CVIXMLGetRootElement(doc, &root);)
    CVIXMLNewElement (root,-1, "appSetting", and appSetting);
    CreateAddElement (appSetting, "Key0", "0");
    CreateAddElement (appSetting, "Key1", "1");
    CreateAddElement (appSetting, "Key2", "2");
    CVIXMLDiscardElement (appSetting);
    CVIXMLDiscardElement (root);
    CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
    CVIXMLDiscardDocument (doc);
    }

  • my hp deskjet3520 scan several pages, even if the box is unchecked to create separate files

    I have a Hp Deskjet 3520 printer all-in-one.  The user manual says there is a way to scan multiple pages to a pdf file.  However, even though I unchecked the box in the settings for 'create a separate file for each analysis', it gives me still no option to analyze the elements more after the first.  I've looked everywhere for the solution and it seems not to be.  It's as if the program for mine just does not work, as it is not recording I have unckecked this option for unique digitized files.  The manual was useless, it simply gives a very brief statement to use the software to analyze several elements instead of the interface of the printer, which i have done all this time anyway.  If someone could please help solve this problem, I would be very grateful.

    Hello

    Open the HP software by using the icon named as the printer model.

    Under Actions of scanner, select scan a Document or Photo.

    Select the PDF shortcut, make sure the preview Scan option is checked and to ensure the resolution resolution configured as 300 dpi or below, higher do support not several pages of analysis...

    Click Scan and then you should see an Add button in the preview scan dialog box.

    Kind regards

    Shlomi

  • How to use a function switch box to the reference that is used several times in the previous drop-down list options?

    I use JavaScript coding in LiveCycle and development of dependent drop-down areas, but I find it difficult to write correct code. See the example below. I'm trying to use a multiple box function that refers to an option that is listed several times in the previous pull-down menu. The problem I am running into is that when I refer to any color or Nissan and Chevy, it returns the results of the color in the "Ford" column only. I'll always see color (blue, black, green and purple) options in my second drop-down list and it seems fine, but then the third drop reference only the options and colors 'Ford '. (I don't have the code for the third menu list drop-down).

    I want the client to choose Chevy or Nissan and have her drop downs (based on the color they chose)-dependent, but I can't seem to make this work.

    I hope it is clear enough (probably as mud...). I would appreciate help!

    Form1. #subform [0]. #subform [1]. cboModels::exit - (JavaScript, client)

    cboColor.clearItems ();

    {Switch (this.) RawValue)}

    case "Ford":

    cboColor.addItem ("Blue");

    cboColor.addItem ("Black");

    cboColor.addItem ("Green");

    cboColor.addItem ("Purple");

    break;

    case 'Chevy ':

    cboColor.addItem ("Blue");

    cboColor.addItem ("Black");

    cboColor.addItem ("Green");

    cboColor.addItem ("Purple");

    break;

    case "Nissan":

    cboColor.addItem ("Blue");

    cboColor.addItem ("Black");

    cboColor.addItem ("Green");

    cboColor.addItem ("Purple");

    break;

    }

    Form1. #subform [0]. #subform [1]. cboColor::exit - (JavaScript, client)

    cboPrice.clearItems ();

    {Switch (this.) RawValue)}

    case "Ford":

    case "green":

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    break;

    case 'Chevy ':

    case "green":

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    break;

    case "Nissan":

    case "green":

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    break;

    }

    You can use '\n' for newline in a string, so

    "Option 1, \nOption 2, \nOption 3;

    Put each on its own line.

    Bruce

  • I used him copy / paste to add several checkboxes on my form, but now in preview mode when I check the first box it automatically checks all the boxes.  How can I stop this from happening?

    I used him copy / paste to add several checkboxes on my form, but now in preview mode when I check the first box it automatically checks all the boxes.  How can I stop this from happening?

    For later use, it happened because your fields have the same field name, and fields with the same name automatically have the same value.

    So all you had to do was so each had a unique name and it would have worked, but using the command create several fields is preferable because it renames the fields for rename you them.

  • Add several attribute of a tag in the xml file

    Hello

    I have a donnees_xml in the xml_test_table of the table in the format

    <? XML version = "1.0"? >
    rowset <>
    < ROW >
    < CLASS > XII has < / CLASS >
    KATE < TEACHER > < / TEACHER >
    < STUDENT_STRENGTH > 30 < / STUDENT_STRENGTH >
    < 50 OFFICES > < / DESKS >
    < / ROW >
    < ROW >
    B XII < CLASS > < / CLASS >
    < STUDENT_STRENGTH > 40 < / STUDENT_STRENGTH >
    < NUMBER OF GIRLS 15 > < / NUMBER OF GIRLS >
    < NUMBER_OF_BOYS > 25 < / NUMBER_OF_BOYS >
    < / ROW >
    < / LINES >

    I need to change the xml in this format:

    <? XML version = "1.0"? >
    rowset <>
    < ROW >
    < CLASS > XII has < / CLASS >
    < age TEACHER subject = "37" = "Math" > KATE < / TEACHER >
    < STUDENT_STRENGTH > 30 < / STUDENT_STRENGTH >
    < 50 OFFICES > < / DESKS >
    < / ROW >
    < ROW >
    B XII < CLASS > < / CLASS >
    < STUDENT_STRENGTH > 40 < / STUDENT_STRENGTH >
    < NUMBER OF GIRLS 15 > < / NUMBER OF GIRLS >
    < NUMBER_OF_BOYS > 25 < / NUMBER_OF_BOYS >
    < / ROW >
    < / LINES >

    You will need to add several attribute to all the 'teacher' in the XML tag.
    I am able to add a single using attribute

    Select insertChildXML (donnees_xml, 'game of LINES/LINES/TEACHER', '@age', ' 37 ") of test_xml_table;

    Thanks in advance

    In this scenario, we have a simple find and replace the XML function using which i can replace the tag with (I understand this is not good was to solve this).

    Why not use two calls separate insertChildXML?
    The premiera adds the attribute to @age, and the other adds the attribute @subject on the result of the first.

  • Unable to write by e-mail to in the box. I tried the compaction, but TB goes for several hours and then stops responding. I erased my in box on the server.

    I'm now 17 nstmp folders. my 3 TB drive C is only about 60% full. It is true that I've never compacted my Inbox before. I currently have about 1169 messages in the box. my server is POP3. mail.armscomm.com network solutions. I am able to download mail on another computer using Outlook Express. ask if you need more information

    Jonathan arm

    There is another way. I just try and avoid it.

    • It is essentially a compact manual.
    1. Create a folder in Thunderbird and copy all mail in the Inbox.
    2. Go to the menu Tools (alt + T), and then select account settings
    3. Select the server to the account settings (or if it is a local folder or a problem of global Inbox of local records)
    4. On the right at the bottom of the screen will be a local directory. Click Browse.
    5. In the window that opens on the right click on the highlighted entry and select Explorer. This should open windows Explorer to the folder that the file in question is
    6. Close Thunderbird by clicking Cancel on all Thunderbird Windows, you opened, and then the X
    7. Delete the Inbox and Inbox MSF files
    8. Restart Thunderbird
    9. Copy your mails to Thunderbird created when he started toward the top of the Inbox.
    • Thunderbird has its own javascript engine, it is part of the program.
    • Reinstall Thunderbird will not help because the problem is with your profile and who is unaffected by the resettlement process.
  • After first load FF and I typed something in the search box, I type several words, then clears the box and I have to re-enter my search words. Why?

    Loading Firefox 8 I frequently get right into the search box to enter something I want. Usually I can type two or three words, then remove it from the box. I then re - type my search words. It seems that after the first load there is a delay the program refreshes then so what I typed in the search box, I have to enter a second time.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • several events in the attributes of the Html form element?

    How can we put more than one event in the Form Html element attributes?
    For example, I have:

    onChange = "zeroTenScaleCheck (this); »
    and
    onClick = "checkScroll (this); »

    I want both of you to be active on the same element. It is possible and if so, how?

    Another related question is, is it possible to have two handlers listening on the same
    event?

    Thank you!

    Hello

    Place the HTML Form attributes of the element element

    onchange="zeroTenScaleCheck(this);" onclick="checkScroll(this);"
    

    Call two javascripts for example the onchange event, place to the Form HTML element attributes

    onchange="zeroTenScaleCheck(this);checkScroll(this);"
    

    Kind regards
    Jari

  • Several unique attributes in the entity

    Hello

    I'm looking on the forum (as seems to be a general question), but I found nothing.

    I use JDev11g (11.1.1.1.2)
    So here's my question. How can I make a pair of attributes of the single entity (single pair)?

    Thank you
    agruev

    Basically, you need to create a secondary key based on multiple attributes, and then a single validator according to this key...
    http://download.Oracle.com/docs/CD/E12839_01/Web.1111/b31974/bcentities.htm#CJACCDID

  • How to manage the selection with the box in a table

    Hello


    JDev 11.1.2.4

    I have a table with an attribute of EO/VO, transitional to manage the selection. This attribute is displayed as a check box. The user makes a selection by clicking on the checkbox. Then, the user clicks on a button that displays a pop-up window. Inside of this pop-up window, that user can create, insert, delete, or update values in a table based on an other EO/VO.

    When the user clicks OK, the pop-up window is closed, then the data is committed.

    When the user clicks Cancel, the popup is closed and the changed data are ignored. To remove the data, I call a Rollback. It works fine, but all the transitory values are lost which is correct because of the discount after the cancellation.

    It's a problem because the user must be able to open the pop-up window several times with the same selection. This means that the restoration is not appropriate in this case.

    How to ignore data edited inside the pop-up window and keep the selection?

    Thank you

    You can try to put the popup in his own taskflow and define a backup point before entering the taskflow. When the user cancel the editing restore you to previous backup. This should dispel the changes.

    Or you save the selected rowkeys, call rollback and backward selection later.

    Timo

  • change the order of the boxes in the different media queries

    How can I change the order of the boxes in the different media queries?

    Is the only work round copy box to the other control and pass the Display attribute in different media queries?

    Hi, thanks for your question. Reflow follows the rules of CSS and HTML. There is not a way to share or move objects in the DOM without using something like Javascript. We have avoided that and focuses only on CSS and HTML with reflow.

    Yes, you can use several boxes in different places and change their display as required. But I could to warn against this as it can add work for you and anyone else who can take this design and put into production. I could take a look at why you want to move the boxes autour and maybe find a simpler or more effective design model to follow to get a result, you would be happy with that. Hope that doesn't sound preachy, you should try it if you want and don't listen to me. Be that as it may, I would like to know how it goes!

Maybe you are looking for

  • EPIC causing 10.11.6 breaks down?

    I've updated to El Capitan 10.11.6 recently and now my MacBook Pro has crashed several times in epic form. The screen becomes split with pinstripes through it. I have to use the power button / stop. What is happening and what is the solution? I have

  • iTunes is not my playlist of device synchronization

    Hello I can't synchronize my playlist of the device after the upgrade of my iTunes to 12.4.2.4. Also, I recently upgraded my 5s to 9.3.3. Since then my device playlist will appear whenever I try to add a track on my device. I am able to view my playl

  • Unable to connect with the network via iphone or ipad

    Unable to connect the Apple TV (2nd generation) with the network via Wi - Fi using the remote app!

  • Equium-A100-147 - broken sound and video

    Hello world I have the satellite A100-147, its working well for the past couple of year.But in recent weeks has get problem in sound and video (broken sound and video). The sound is breaking and sometimes uable to listen + video and so delay breaking

  • Why can't I find the recovery from system to system tools

    went I went on the system tools there is not option for recovering the system how do that