Model of input field

Apex 4.2.6.


Heyyo,

I am developing a custom theme, and I have a problem.

I need to create a model for input fields. (I want to add some custom classes for input fields).

But I can't understand how do. Closest I found was the model label, but of course its only for labels.

Para wrote:

Basically, there is no element templates. Develop a plugin point would be an alternative that you would include classes in the extra point, but would not be a component of theme.

HM, I thought plugin might be an option but I wanted to avoid that if possible for the same reason you mentioned.

Reason?

I am trying to import MDL as a new theme.

Relevant part currently

Especially this part

class = 'mdl-textfield__label' for 'sample1' = > text...

Interesting. The issue of not having a complete control of all the HTML generated by the APEX has concerned me since I started working with her in 2005. There are of course certain attributes that must be defined on the form for internal purposes of APEX controls in order for things to work, but a little more flexibility is however necessary. The possibility of including in the world the values of class on the control form elements generated by the APEX motor would be very useful and must be triggered for a feature request.

In regards to your immediate needs, I agree that the itinerary of plug-in is really not desirable that required components are not included in the theme. Because you can generate labels with their required class, the best solution would be to add a script containing a polyfill jQuery for the theme that applies to the entry class at the entrance of the controls that are adjacent siblings labels with the classes of MDL text fields:

$('label.mdl-textfield__label+input').addClass('mdl-textfield__input');

If a future version of APEX provides the possibility to include the class in a generic way, then this hack can easily be removed from the theme simply by removing the reference to the script.

Tags: Database

Similar Questions

  • Fonts of Zwaygi appears in the input fields (very well elsewhere)

    I'm working on a site of two language www.eprpinformation.org. The version of Myanmar becomes automatically the font family for body text Zwaygi-One which works wonderfully well on IE, Chrome and Firefox.

    Except, that is, to input fields. For some reason these screen unknown, although characters by looking at the css for the entry, the correct font family is applied. Please see screenshot > > http://eprpinformation.org/images/firefox-zwaygi-font-issue.jpg.

    Any help would be grateful.

    Mark

    Hi cor - el,.

    Thanks for the quick response! It didn't completely solve the problem, but he put me on the right track.

    It turns out that the css rule is not applied to select or input so I did which is explicit and it now works fine.

    M

  • Validation of input field in the OPA for the optional input fields

    Hi all

    OPM, I have a text input field. To do this, I wrote an entry of Validation Using Regular Expressions to allow the alphabets and numbers.

    Also, I did the same field as "optional-always.

    Then in debugging, it is always check for the Input Validation and displaying the error message when I do not enter any value.

    How can I request an entry for an optional input field Validation.

    Thank you

    Siri

    I'm not an expert on regular expressions, but my guess here is that your regular expression must change. If an empty string is an acceptable entry, then you should allow for her in the regular expression. I don't know the regex code for this on the top of my head, but I hope that you will find quite easily with a few searches on Google.

  • PDF form - instructions from input field

    I need to put instructions in an input field which disappear when the user clicks on the field.

    I read a response that provided a custom Format for this script. However, the person does not specify where the entry script. In the text field properties? Under Actions? The format? Validate? Any help will be greatly appreciated.

    Thank you.

    The custom format script would be placed under Format.

  • I'm looking to have an input field with the search button, search button click the search button below the search results to display. How can I do?

    I'm looking to have an input field with the search button, search button click the search button below the search results to display. How can I do?

    Hello

    998765 wrote:

    You are right

    Please pass by the database 2 day + Application Express Developer's Guide

    Check this code example

    1 create a text field element I say P1_INPUT_FIELD

    2. create a button

    Name of the button: search

    Action: Send the page

    3. change your report query and where clause to your query below

    It will search on ename and empno, in this way, you can add more columns

    SELECT EMPNO
               , ENAME
               , SAL
               , MGR
               , COMM
      FROM EMP
    WHERE TRIM(UPPER(ENAME)) like '%' || TRIM(UPPER(:P1_INPUT_FIELD)) || '%'
           OR TRIM(UPPER(EMPNO)) like '%' || TRIM(UPPER(:P1_INPUT_FIELD)) || '%'
    

    4. we find the source of the region-> page article to submit-> P1_INPUT_FIELD

    Hope this helps you,

    Kind regards

    Jitendra

  • Convert records for input fields

    Hello

    I wonder if there is a way to convert documents created in a BP to be fields of seizure in another PB.

    Let's say that I entered 4 records in the BP source:

    -Registration has

    -Record B

    -Record C

    -Record D

    These records will be the master data.

    The next thing I want to do is to enter a value for each of these main files through another BP. When I insert this BP, I need all 4 records is available in the form of input fields. Thus, when a new record E entered source BP, which E record will automatically be added as a field.

    -The value of the A record is 30

    -The record value of B is 40

    -The record value of C is 50

    -Record the D value is 20

    -Value of the e-record is 60

    I have created the BP source as a simple type BP. But I have no idea on how to create the other PB that sets the value. Later, I expect to enter several values for each of the files, so that at the end of the day, I can make a cumulative values for each of these files. Is it possible to do this thing in unifying? If this isn't the case, you guys have ideas about this kind of solutions to fix this problem?

    Thank you.

    Thanks for your reply, George.

    The problem is that I have a lot of records is going to appear as the master; It's going to be more than 30. I'll take issue if I load up with a selector. I think my main list to be a line item BP and place them as line items. The other PB who defined their values will be a line of billing BP as well, so I can use consolidate the line items to load the main list. This method would be appropriate?

    Thank you.

  • Bind the time range slider to input fields

    I went through a bunch of tutorials and can't seem to find the answer to this. I'm trying to implement a cursor of the chronological range for entry into a database. I started with the example

    http://codepen.io/caseymhunt/pen/kertA.

    I have two input fields IDs StartTimeEntry and EndTimeEntry . How can I get the values of the scabbard for updating the values of these two fields of entry form?

    Thank you.

    Locate the following line in the script jQuery on CodePen:

    $('.slider-time').html (hours1 + ':' + minutes1);

    Replace it with this:

    $('#startTimeEntry').val (hours1 + ';' + minutes1);

    Similarly, replace this:

    $('.slider-time2').html (hours2 + ':' + minutes2);

    with this:

    $('#endTimeEntry').val (hours2 + ':' + minutes2);

  • Table created from a text input fields for loop

    I am new to AS3 and animate CC. I'm not a programmer. I learn how the code I want (from YouTube and various web sources). I put the next set of various web tutorial. What I'm trying to do is create a user input field and input variable which will set the number of new text fields created by a loop for. Then store the text fields in a table to access their values to use elsewhere. The problem is, I don't know how to access the values of the input fields created in the table.  The loop for works to create the new text entry fields, I do not know how to retrieve their values.  In fact, I don't know even if the text that I entered new fields is currently stored in the table. I think that the text field itself, as an object, is stored but not the text I enter the text field (which is what I want).  I hope someone can help me...

    to import flash.display.SimpleButton;

    import flash.events.Event;

    import flash.text.TextField;

    import flash.text.TextFormat;

    import flash.text.TextFieldType;

    var captureText: Array = new Array();               meant to be the text of "aTextFields" of the "aTextFields" table values

    var text3: String;                                               variable as containing "captureText [0]"

    var aTextFieldsText = new TextField();             dynamic text field called 'TextFieldsText '.

    aTextFieldsText.border = true;

    aTextFieldsText.width = 100;

    aTextFieldsText.height = 25;

    aTextFieldsText.x = 300;

    aTextFieldsText.y = 55;

    addChild (aTextFieldsText);                              Add "TextFields" to the value of the scene and the variable "Text3" poster

    var nTextFields: number = 2;                          creates the number of input fields, and would be attached to an entry on the scene.

    var aTextFields: Array = new Array();              array that contains ""input TextFields text fields " "

    for (var int i; i < nTextFields; i ++) {/ / loop for who created him ""text fields of seizure of TextFields " based on the "nTextFields" value"}

    aTextFields [i] = new TextField();

    aTextFields [i] .Guy = "entry";

    aTextFields [i] .width = 100;

    aTextFields [i] .height = 25;

    aTextFields [i] .border = true;

    aTextFields [i] .text = "";

    aTextFields [i] .x = 150;

    aTextFields [i] there = 15 + i * aTextFields [i] .height + i 5;

    captureText.push (aTextFields [i]);                 Push the table 'captureText '.

    addChild (aTextFields [i]);

    }

    var MyButton: SimpleButton = new Button;

    myButton.x = 339;

    myButton.y = 268;

    addChild (myButton);

    myButton.addEventListener (MouseEvent.CLICK, test1, false, 0, true);  "Text3" variable on captureText set button [0]

    function test1(event: MouseEvent): void {}

    Text3 = captureText [0];                                "Text3" variable to captureText [0]

    aTextFieldsText.text = text3.toString ();       displayed in the text field "[TextField object]" instead of the text value of the entry at index [0]

    trace ("aTextFields =" + aTextFields);

    trace ("captureText =" + captureText);

    trace ("Text3 =" + Text3);

    }

    captureText is an array of textfields and not a textfield. This line:

    Text3 = captureText [0];

    Maybe should be:

    Text3 = captureText [0] .text;

  • Disable "clickToEdit" for the input field text selection

    Hi all

    I use JDeveloper 12 c (12.1.2).

    I added an af:table with the editingMode = "clickToEdit."

    In the documentation at http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_table.html he was part of the behavior is "5.  Text entry field selection: when a cell contains a text input field widget, the text is automatically selected when the widget has focus. »

    Is it possible that I could disable or take action against this problem does not happen?  I tried to do a 'click' listener customer event, but my javascript skills are not so big so I don't know if I'm doing things.  I tried the selectionStart/end value, but it seems to do nothing.

    Any help/advice would be appreciated.

    Thank you

    Derek Hansen

    You can try to tie af:clientListener to each inputText component and listen to 'theme' of the ceremony.

    Then call javascript function similar to this:

    function unfocus(evt){
      var comp = document.getElementsByName(evt.getCurrentTarget().getClientId())[0];
    
      setTimeout(function(){
          if(comp.setSelectionRange){
              comp.setSelectionRange(0,0);
          }
          else if (comp.createTextRange) {
              var range = comp.createTextRange();
              range.collapse(true);
              range.moveEnd('character', 0);
              range.moveStart('character', 0);
          }
      }, 200);
    }
    

    Dario

  • input field

    Hello

    How coud I create a text entry field in Adobe animate CC?

    Thank you

    Canvas mode does not natively support the widgets GUI either. You get the text, bitmap images and vector basic support. For an input field, you will have to layer an input HTML on top of the stage element. Example of code to add items HTML here:

    How to load the video in Html5 Canvas?

    Using this function, you could do for example:

    makeDiv(0, 0, 200, 50, "");
    
  • How to reset a contextual input fields

    Hello

    This question is asked repeatedly, but the solution that does not work.

    I have a dialog box in a popup defined as:

    < af:popup childCreation = 'deferred' id = 'updatePopup' contentDelivery = "lazyUncached" binding = "#{components ['updatePopup']} ' autoCancel ="disabled ".
    resetEditableValues = "whenCanceled" >
    < af:dialog id = "dc_d1".
    title = "#{"CREATE"eq Bindings.action1.inputValue? viewcontrollerBundle.SERIAL_RIGHTS_MASS_CREATE_TITLE: SERIAL_RIGHTS_MASS_UPDATE_TITLE}" "
    type = 'none' closeIconVisible = 'false' contentWidth = '800' contentHeight = "100" >

    The popup is set with lazyUncached contentDelivery and whenCanceled resetEditableValues. I am it would be enough to reset the fields, but apparently not. In the dialog box (type none is on purpose), I have a Cancel button calling an actionListener:

    Popup RichPopup = (RichPopup) JSFUtils.resolveExpression("#{components['updatePopup']}");

    Popup.Cancel ();

    I also tried popup.hide () the same problem.

    The purpose of components is a card component of link as a scope of the request:

    < managed-bean >
    < description > holder of all component links. < / description >
    components of < managed-bean-name > < / managed-bean-name >
    java.util.HashMap < managed-bean-class > < / managed-bean-class >
    application of < managed-bean-scope > < / managed-bean-scope >
    < / managed-bean >

    So how do reset you the popup/dialog input fields?

    Thank you

    JDev 11.1.2.4

    PS: on a side note, why when I copy paste my code, the editor of the forum will create tables.

    Hello

    Tried with

    ADF RichClient API - af:resetListener

    ?

  • AutoFill the form based on the input field

    Hey everybody,

    I have a form on the EMP table, with a text field containing the empno.

    When I get a (valid) empno, I want to give all the necessary information (ename, job,...) automatically in the fields.

    I read somewhere that I just write a query for each input field + dynamic action that refreshes the entire region with the shape when I change the value empno.

    Now is it possible to ignore the write request and only use the RFA process?

    Thanks in advance,

    Jules

    If you don't want to again... You can use DA, which executes PL/SQL code, with the code as ' select yyyy in: PXX_ITEM "for example...

    To trigger this DA, you can anyway implemented by the DA, or you could set it as "CUSTOM" event and pressing this extraction, enforce a jscript that would un.event.trigger ("Custom_name") $;

    Who should do to avoid submission... If that's what you want.

  • filters table based on two input fields

    Hello

    I need help, I'll have a single VO read and query is included with where clause and bind variable assume them query is like

    (select in... where updatedate > =: p_fromdate and updatedate > =: p_todate).

    In the user interface, I need to take two input fields date fromdate and to this day, when I get the table of dates (read only VO) should filter.

    what I want is if I enter Fromdate and gets stuck on day of entry values: p_fromdate and: p_todate.

    And I want without using the view criteria.

    Hello

    It would really help if you could give us some basic information, yet vital such as your version of JDev.

    There are many ways to implement your requirement. One of them uses a method of AM that will define and execute your view read-only object.

    Please follow these steps:

    (1) generate the implementation of AM class

    (2) create a custom method like the following:

    {public executeMyReadOnlyView Sub (fromDate Date, Date to date)
    ViewObjectImpl readOnlyView = getReadOnlyView();
    readOnlyView.setNamedWhereClauseParam ("p_fromdate", fromDate);
    readOnlyView.setNamedWhereClauseParam ("p_todate", to date);
    readOnlyView.executeQuery ();
    }

    (3) expose this new method via the client interface

    (4) drag this new method into the page as a button (and link the fromDate parameters and to this day)

    Antonis

  • Validate VMName / Hostname in input field before execution of workflow

    I'm trying to understand if it is possible to validate the input fields before you run a workflow. The scenario I have is commissioning a new virtual machine. The user must enter the VMname both host name before sending the workflow. I have a couple of actions which will check to see if a VMname or host name is already in use. I want to be able to go is to stop the user to submit the workflow for execution, if the name entered already exists. Is it possible that I can do this?

    Thank you

    If the action returns an empty (or null), this is considered a successful validation.

    Any non-empty string is considered to be the validation failed, and the string value is displayed as the error message in the presentation of the Workflow Wizard.

    (If your action return type is not a string but something else, and you do not change, you can build expression OGNL in the property editor for custom validation, which will compare the result of GetAction () .call () with the desired value and return an empty string or string of the error message.)

  • I want to extract information from the same input field in multipal PDFs (created using document pro) and export them to an excel file. Is this possible? If this isn't the case, Adobe seeks to make this project a reality.

    I want to extract information from the same input field in multipal PDFs (created using document pro) and export them to an excel file. Is this possible? If this isn't the case, Adobe seeks to make this project a reality.

    -Extract all data from a single file can be done via the tools - forms - more form Options - export data...

    -Extract some data from a single file will require a script to measure.

    -Extract all the data from multiple fields in a single file can be done via the tools - forms - more form Options - merge data files into spreadsheet...

    -Extraction of data from several files will require a script Custom Action, as I've written before.

Maybe you are looking for

  • Satellite A200 (PSAE6E) - hotkeys drivers for vista needed

    Hello I installed a new copy of windows vista 32 bit and I can't find the hotkey utility driver page All hotkyes does not react to the FN + F [0-9] can someone help me with a link or something? Thank you Ofir

  • Re: Satellite L850-1HP - activation windows 8.1

    Hello everyone I received an update yesterday from Microsoft update after the update has been successfully installed, I noticed that my PC account did not work and he says I need to activate windows! My windows 8 has already been activated out of the

  • My laptop locked out

    Can Hi anyone help? I just changed my password on my laptop and the next time I went to use it, it does not recognize the new or the old password and I can not connect. What is a Toshiba or a problem of operating system? Does anyone know what I need

  • How to connect to the internet with no phone service

    I cancelled the phone service to my iphone 4 and now try to erase all content and settings but it rises as unable to join the network.  My network is fine as I use it on my new phone.  How can I get this phone to connect to the wi - fi so it will era

  • where can I get accompanying scanjet G4050 photosmart software

    I bought my scanjet when I had XP to scan slides and it worked very well. Have not used in a few years. Now, I've upgraded to windows 7 (64) and I have several slides to be scanned. The scanner is not recognized by hp or scanvue (I used both a couple