APEX_ITEM. DISPLAY_AND_SAVE change in CSS question

Hello
I created a form in a custom table. I want one of my columns display only and have a different style than the other columns in the report. However, the change in style is not perform a column created using the APEX_ITEM. Function DISPLAY_AND_SAVE. I tried to get a simple solution to work before I have build up to match my real needs.

I have this in my report source region

SELECT
...
APEX_ITEM. DISPLAY_AND_SAVE(42,job_no) job_no_display.
...

I have this page: JavaScript: run when the Page loads

$("[name="f42"]').css({"font-size":"50%"});)

The column renders as expected but the style change is not applied. The text is rendered in full size.

As soon as I change the SQL code to be following the CSS change is applied, and the text is now small.

SELECT
...
APEX_ITEM. Text(42,job_no) job_no_display.
...

So finally, I want to know if I came across a bug and if someone can suggest a better work around that follows

SELECT
...
APEX_ITEM. TEXT (42, job_no, null, null, "readonly = readonly'") job_no_display,.
...

This results in terms of rendering as an area editable but works in a way only read with the change style CSS applied. It just looks too beautiful. =)

Version of the APEX = Application Express 4.0.2.00.07
Version of DB = Oracle 11 g database Release 11.2.0.1.0 - 64 bit Production

Kylie P

KylieWylie wrote:
Hello
I created a form in a custom table. I want one of my columns display only and have a different style than the other columns in the report. However, the change in style is not perform a column created using the APEX_ITEM. Function DISPLAY_AND_SAVE. I tried to get a simple solution to work before I have build up to match my real needs.

I have this in my report source region

SELECT
...
APEX_ITEM. DISPLAY_AND_SAVE(42,job_no) job_no_display.
...

I have this page: JavaScript: run when the Page loads

$("[name="f42"]').css({"font-size":"50%"});)

The column renders as expected but the style change is not applied. The text is rendered in full size.

Inspect the generated HTML code

APEX_ITEM.DISPLAY_AND_SAVE(42,job_no)

It produces:


221608781757257740671064788753627232380

The selector attribute jQuery [name = "f42"] applies style to the element with the name = 'f42' attribute. It's the entry hidden element that is not displayed. You want to apply the style to the span element according to the element with the name = "f42" attribute, using a Next Adjacent selector:

$('[name="f42"]+span').css({"font-size":"50%"});

(When you post here, please wrap code \ )

...\

Tags to preserve the special characters and formatting.)

Tags: Database

Similar Questions

  • Two quick questions (hopefully) - right way to dynamically change the CSS class and put of Splash screen implemented

    Couple of quick questions have left me speechless!

    So, it seems obvious that many JavaFX applications want to dynamically change the CSS styles.  Is the best way to do it through la.getStyleClass () .add ("classname") < node >?  The underlying data structure is a list of observable.  So let's say we have 5 styles that simply to change the fill color of a circle of 5 different colors, respectively.  So if I have a condition in which I want to dynamically apply 1 of these 5 styles, as I do now it's by setting all 5 styles as a string in a list by using a static initializer, then I call < node > .getStyleClass () .removeAll (list), then getStyleClass () .add ("classname").  I do this to avoid adding again and still the same style and inflate the underlying list.  What is the right way to manage dynamic CSS styles?

    Finally a very simple I think.  So I know there's a little differently to implement a splash screen.  My app has certainly got bigger in the last few months of development and I noticed there are about a 5 second delay between when I run the application when I see the main stage.  I was thinking what a splash screen would be nice to fill that time.  I had no time to prototype using a Preloader and I fear that using another, early stage start-up again would be too long of a delay.  "I actually thought that using the Nice and simple JVM argument" - splash: image name > "would be simple, easy and effective.  Unfortunately when I try to do, the splash screen appears but never goes away.  Anyone know what is happening with this?

    Your mechanism to manage the css style classes is a good approach; I've used several times. I wonder why the style classes have been implemented as a list, instead of a game, but there may be cases of good use for the use of a list.

    In some cases you can also consider using CSS PsuedoClasses, which were presented in JavaFX 8. Here is a little easier to use, especially if you have two options. But a use case might look like:

    public class Message {
        public enum Status { NORMAL, WARNING, CRITICAL }
    
        private final ObjectProperty status = new SimpleObjectProperty<>(Status.NORMAL);
        private final StringProperty message = new SimpleStringProperty();
    
        // constructor, getters, setters, and property accessors....
    }
    
    public Label createLabel(Message message) {
        PseudoClass warning = PseudoClass.getPseudoClass("warning");
        PseudoClass critical = PseudoClass.getPseudoClass("critical");
    
        Label label = new Label();
        label.textProperty().bind(message.messageProperty());
        message.statusProperty().addListener((obs, oldStatus, newStatus) -> {
            label.pseudoClassStateChanged(warning, newStatus == Message.Status.WARNING);
            label.pseudoClassStateChanged(critical, newStatus == Message.Status.CRITICAL);
        }
        return label ;
    }
    

    And then your css looks like

    .label:warning {
        -fx-text-fill: orange ;
    }
    .label:critical {
        -fx-text-fill: red ;
    }
    
  • How to fix: Page Template styles do not respond to changes in CSS files in the text editor of 'Developing' Admin Console

    I bought a model site.  It has a css file, /styles/screen.css

    It also has a template page 'home' with the link to the style sheet within the < head > section:

    "< link href="/styles/screen.css "rel ="stylesheet"type =" text/css"media ="screen"> < / link >

    I am tempted to change screen.css, by editing the file in the 'Develop' administration Console and pressing the 'Save' button on the file when changes are made.

    However, the changes do not appear in the preview of the Page template.

    However, if I do a < style > section in the head <>of the page template and put the change, it displays correctly.

    It's like the Page template does not recognize changes to the screen.css.

    I press "Save draft" and "Update" before you press 'Preview' to check for changes.

    My question is how to fix the Page Template styles that do not respond to changes in CSS files in the text editor of 'Developing' administration Console.

    I am a new user of BC and I agree it is likely a result of not knowing how the css BC.

    Thanks in advance for any assistance with my issue!

    Hello

    I think that you too complicate the thinking problem that BC is a non-standard way of processing applications to a css file. This looks more like a cache or perhaps a code problem. However, I would be happy to take a look at your code and see if I can remember where is the problem. Try Skype me and screen-sharing and I'll see what I can do. It is probably fixed quickly :-) My ID:s 'noviumdesign '.

    Anton

  • Can JavaScript get value from an apex_item.display_and_save point? How?

    I have a PL/SQL region that displays a table using htp using the data of a query that creates some elements apex_item.text and apex_item.display_and_save.

    Excerpt from the query:
    select wil.sort_order
           -- item_nbr
           , apex_item.text(11, wil.item_nbr, 20, 20
             , 'id="itemnbr_'||wil.sort_order||'" name="itemnbr_'||wil.sort_order||'" style="text-align:left; "
               onchange="this.value=this.value.toUpperCase(); confirmItem(this);"
               onFocus="hideItemSearch();" ondblclick="showCustItemList(this);"')   item_nbr
           -- item_desc
           , apex_item.display_and_save(21, wil.item_description, 'item_desc_'||wil.sort_order)          item_description
           -- qty
           , apex_item.text(12,wil.qty, 10, 10
             , 'id="qty_'||wil.sort_order||'" name="qty_'||wil.sort_order||'" style="text-align:right; "
               onFocus="hideItemSearch(); hideSearchResult(); " onChange="updateCollection002(this); verifyQty(this); "
               onBlur="hideAvailability();"')   qty
           -- uom
           , apex_item.display_and_save(22, wil.uom, 'uom_'||wil.sort_order)          uom
           -- put_up_cnt
           , apex_item.text(13,wil.put_up_cnt, 3, 5
             , 'id="pu_cnt_'||wil.sort_order||'" name="pu_cnt_'||wil.sort_order||'" style="text-align:right; "
                onBlur="updateCollection002(this);"')   put_up_cnt
           -- put_up_size
           , apex_item.display_and_save(23,wil.put_up_size, 'pu_size_'||wil.sort_order)   put_up_size
         .
         .
         .
    In a JavaScript function I am just checking that the quantity entered is an integer multiple of the put_up_size.
      function verifyQty( pThis ) {
        var l_ndx = pThis.id.substring( 4 );
        var l_qty = $v( pThis );
        var l_pu_size = $v('pu_size_'+l_ndx)*1;
        var l_pu_cnt = ( l_qty / l_pu_size );
        var l_new_qty = l_pu_size * l_pu_cnt;
        alert("l_qty = "+l_qty+" and l_pu_size = "+l_pu_size);
        if ( l_pu_cnt != l_qty / l_pu_size ) {
          alert( "Auto Qty correction. Qty must be a multiple of Put Up Size. You entered "+l_qty+". Changing to "+l_new_qty );
          $s( 'qty_'+l_ndx, l_new_qty );
        }
      } /* end function verifyQty */
    I tried different fields in the first alert statement and it looks like I can get a value for an item of type text, not an item of type display_and_save.

    Can't the JS API to get the value of an element of display_and_save?

    Thank you

    Gregory

    Gregory:

    var l_pu_size = $x('pu_size_'+l_ndx).innerHTML;
    

    CITY

  • How an apex_item.display_and_save total column

    I created a tabular presentation dynamically using apex_item.text. My query includes three columns; cash, cheque and credit. My last column in the query is a total column of cash, check and credit added together gives me the total for that line. My request;
    Apex_item.display_and_save(10,id) SELECT id,
    apex_item.display_and_save(11,transaction_date) transaction_date.
    apex_item. Silver Text(12,cash_amt,15,15),
    check the apex_item. Text(13,check_amt,15,15),
    apex_item. Text(14,credit_amt,15,15) credit,
    apex_item.display_and_save (15,
    (cash1_amt + cash2_amt + check_amt + credit_amt)) total
    Deposits

    In the form, if I change one of the amounts, is it possible to update the total column without having to submit the page (javascript maybe)?
    I don't know how to reference apex_application.g_fxx (i) in javascript, if that's even possible.

    Concerning
    Mark

    You are welcome!

    Thank you
    -Matt

  • No there is no way to override the lock 8 hours AFTER you have changed all your questions?

    No there is no way to override the lock 8 hours AFTER you have changed all your questions?

    < object edited by host >

    use the contact for Apple at the bottom of this page and ask them if it is a question about the security of your account.

  • I want to change the secret question. Can someone help me? TQVM

    I want to change the secret question. Can someone help me? TQVM

    Security issues Apple - ID

    Account security issues almost always require directly contact a representative from Apple to firmly establish your identity as the account holder. You can configure so that Apple you call, either immediately or at a time convenient to you.

    1. go to http://www.apple.com/support/appleid/

    2 choose to contact Support, then click on contact Support

    3. choose other subjects of Apple ID and choose the appropriate topic for your question (questions of security or password)

    4. choose, no thanks, continue

    5. choose the best method for you to contact Apple

    By the end of 2012 Mac minis, macOS?  Watch, 38 mm silver AL, Watch BONES 2.2.2; iPad 2 Air & iPhone 6 + iOS?  Apple Airport Express

  • I can't change my security questions

    I can't change my security questions

    If there is no reset option, you must contact the Apple Support: Contact Apple for assistance with the security of the Apple ID - Apple Support accounts

    More information: If you forgot your Apple ID - Apple Support security questions answered

  • I forgot the answer to my security question, I tried to update these answers, but to update them also, I must first answers old issue of security which I forgot how can I update and change my security question and the answers?

    I forgot the answer to my security question, I tried to update these answers, but to update them also, I must first answers old issue of security which I forgot how can I update and change my security question and the answers

    ?

    You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.

    (143315)

  • How do I change the security questions?

    How do I change the security questions?

    Hello

    If you set an alternate e-mail address, you can reset your security questions. Follow the instructions here to check if this option is available:

    Otherwise, you will need to contact the Apple Support. The information is available here:

    (I'm afraid that no one here can solve the problem for you.) You don't talk to Apple here - it is a community based on the user).

  • How to change the security question

    in fact, I forgot the security issue when I want to pay for the Bill, however, I forgot my security question answer and I try so many times that they are locked, then I find a way I can call to hotline, however, the programme of assistance for the hotline still ask me to answer the question of safety If I know the answer, I don't need to call them right? so, my question is, how do I change my security question, thank you.

    The following may help: If you forgot your Apple ID - Apple Support security questions answered

  • I couldn't change my security questions? How can I do?

    Im trying to change my security questions, but I couldn't. How can I do?

    Please be specific on "... but could not...» »

    Tell us a story detailing your flow of action with a beginning, middle and end.

    Often, screen captures are useful for us - but be sure NOT to show personal identification information.

    The exact words of the error message may be sufficient.

  • I would like to change the secret question but I forgot the answer.

    How can I fix the "too many attempts of incorrect verification", please help.

    And I want to change the security question, but I've forgotten the answer, I can solve it?

    Julien inconu Security Questions and answers - Apple ID

  • How do you change your security questions

    How do you change your security questions

    can someone help me please I want music on iTunes, but I'm not because I forgot my security questions

  • Hello I want to change my security questions, but I don't get any link reset in my rescue email security issues

    Hello I want to change my security questions, but I don't get any link reset in my rescue email security issues

    Also I have an aid station and I entered my acount appl but any e-mail have'nt was sent to my rescue station

Maybe you are looking for

  • USB stick does not appear on the desktop

    With the help of Mavericks OSX, I just format a USB Flash drive; but the Flash drive icon appears on the desktop.  What should I do to get the icon to display on the desktop?  (I formatted a formerly DiskWarrior USB Flash Drive).

  • How do light turn on and off?

    Sorry if this has already been posted, but I don't know exactly how to express issues and has failed to find something similar. I want a led on the front panel when you press a specific button, but I also want it stops at the end of the routine, it s

  • Upgrade CPU R400 options

    Hi, I have R400 with Celeron 575 M 2 GB of RAM, but there is a big problem - this really laptop does not work with Windows 7. I check in wikipedia that is Socket P, some of these processors supporting, but I do not know will be they really work T5670

  • His monitor refresh rate

    Hello, I am a high school student and I am doing a project where I need to analyze the sounds from a microphone. I could listen to the microphone and the waveform was updated over time as the sound from the microphone released. My problem is that the

  • How can I remove my windows xp from my pc?

    I need to uninstall windows xp from my PC, I have remove all the programs add / remove programs, but I have not found remove windows xp from him? You guys can give me answer for details. This Windows XP is OEM System Builder.