set the height of the rows in the table according to the integer value

Hello.

jdev version - 11.1.2.3

My requiremnt is that I have an integer input value, when I provide a value for it assumes that 10, then only 10 lines should be visible on the rest of the table should come when scroll us. Basically, I want to adjust the height of the lines on the change in value of my entry value providied.

Thank you

If the counter returns a number, you can convert entire

public void button(ActionEvent actionEvent) {
Number n = spinbox.getvalue();
table.setFetchSize(n.intValue());
}

Timo

Tags: Java

Similar Questions

  • When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?

    When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?

    Hi kevin7frg,

    You can go to "file > create > scanner > configure presets PDF»

    The dialog box that appears, you can choose 8.5 X 11 as the default width and height of PDF pages to scan.

    Hope that helps.

    Kind regards

    Ana Maria

  • How to set the default value of the component selectOneChoice in the table to the ADF

    Hi all

    I use jdev 11.1.1.6.0 version.

    I used an adf table in which an attribute is selectOnceChoice.

    To create the table and selectOneChoice I used the data control java bean.

    and drag and drop a table and after that I have drag and drop one of the attributes as selectonechoice and linked with the return of the method list as < key, value > pair.

    I want the default value to select only one option in each attribute rows.

    I checked with simillar issue on post next, but not yet resolved.

    
    
    
    
    

    My jspx code is

    
    <af:column id="c11"
                                             headerText="Invoice To" >
                                        <af:outputText value="#{row.invoiceTo}" id="ot19"/>
    <af:selectOneChoice value="#{bindings.invoiceTo.inputValue}"
                                                        label="#{bindings.invoiceTo.label}"
                                                        required="#{bindings.invoiceTo.hints.mandatory}"
                                                        shortDesc="#{bindings.invoiceTo.hints.tooltip}"
                                                        id="soc3"
                                                        autoSubmit="true"
                                                        valuePassThru="true">
                                      <f:selectItems value="#{bindings.invoiceTo.items}"
                                                     id="si4"/>
                                    </af:selectOneChoice>
    </af:column>
    
    
    

    where invoiceTo is the table attribute and the invoiceTo attribute is dragged and dropped as a SOC function list Source data mapped data value with the List attribute

    and the display attribute

    Data value = invoiceTo List = lovMasterKey attribute

    Display attribute = lovMasterValue

    that list is maintained at < lovMasterKey, lovMasterValue >

    According to the value of invoiceTo line, it should show as default value is selectOneChoice, but its showing no not as a default value.

    Please, help me how set the default value of selectOneChoice in the table according to each value line invoiceTo.

    Thank you all for the help on this issue.

    Problem has been resolved.

    Reason for this was used

    It is solved using code used for the list built for selectoneChoice more

      List lovMasterList = new ArrayList();
    
    SelectItem siItem = new SelectItem();                      
    
    siItem.setLabel(objAfCmnLovMasterListVO1.getLovMasterValue());
    
    siItem.setValue(objAfCmnLovMasterListVO1.getLovMasterKey());
    
      lovMasterList.add(siItem);
    

    Now, I used the code where the line below. InvoiceTo is the key and row.invoiceToItems are the list of articles for selectOneChoice.

    
    
    
      
    
    

    Thank you very much...

  • How to set the minimum value of a graphic waveform window?

    I have a graphics property of waveform "minimum value", but the graph is not take the value that I gave him. He tends to zero, as well as the first two sliders that I put on the graph. The maximum value "will be" no problem, just like the second slider value. Everyone knows about this problem? Here's a screenshot...

    Is there a reason why my chart does not have what I have to say?

    Thank you

    Sometimes you may have problems if the new minimum is higher than the maximum of old.  Try to write at least again in another node in property after you set the maximum value

    Without seeing your VI and some parameters of the example, (old max and min) new max and min, it is otherwise difficult to say.

  • &lt; af:valueChangeListener &gt; sets the new value back to the old value

    Hi people,

    I'm trying to implement a search bar with < af:inputText > and < af:selectOneListbox >.

    When the user selects an item in the listbox control, the inputText will be updated. After hitting the "ENTER" key, the search action will be taken.

    The valueChangeListener will be called when the selection of items in the listbox.

    The problem can be described by the following two cases:

    (1) the user types something in the inputText box and hitting 'ENTER' key for a search. The valueChangeListener is called and sets the value of the string user typed.

    (2) the user selects something in the list box, each time changes the selection in the listbox control, the valueChangeListener will be called. But when the user presses the "ENTER" key, the valueChangeListener is still called, and it sets the return value to the old value. For example, the list has 'a ', ' b', 'c '. The user selects 'a', then 'b '. After hitting the "ENTER" key, the value in the inputText is replaced with "a".

    The code is as follows:

    Code in .jspx:

    < af:inputText value = "#{pageFlowScope.word} '"

    autoSubmit = 'true' immediate = "true".

    valueChangeListener = "#{pageFlowScope.update}" / >

    < af:selectOneListbox valuePassThru = "true" >

    < f: selectItems value = "#{pageFlowScope.items}" / >

    < / af:selectOneListbox >

    Bean managed code:

    publicvoid update (ValueChangeEvent event) {}

    This.Word = event.getNewValue (m:System.NET.SocketAddress.ToString ());

    }

    I don't know how the valueChangeListener behaves like that.

    Could someone provide me with clues or tips?

    Thank you

    Carl

    Carl, tell us your version of jdev, please!

    There is something wrong in your implementation. I do not see an inputText field who's value stored in a variable pageflowscope "word". This field has an attached valuechangelistener which is obsolete, because the field already stores its value in the variable pageflowscope. The same that you are trying to do in the valuechangelistener. So I don't see a selectonelistbox which does not store the value selected anywhere because it doesn't have the value property for it. There isn't an attached valuechangelistener so I wonder how your valuechangelistener is called at all when you change the selectoneListBox.

    Timo

  • Extension of EO or CO to set the default values?

    Hi all!

    I spread an EO, ExtBankAccountsEOImpl, which contains the bank details of a provider.

    When I create a new retail bank, I want to set the default value of some fields (for example the currency)

    According to the nationality of the supplier (all fields are null by default oracle). See below.

    bank_det.PNG

    Is this possible with EOs? Can the EO extended somehow get their hands on the party_id?

    Or do I have to extend the CO instead?

    Best regards

    Christian

    Christian,

    Thus, your EO extension works very well, no?

    You need to check the standard code (controller and methods of AM which is called by the CO) and see if the party_id is stored as part of the operation or not. If so, you should be able to get the values in extended OS.

    If this isn't the case, you must extend the CO.

    Note: Changes made by extension EO EO will affect all pages using the OS, if any other page exists.

    I hope this helps.

    See you soon

    AJ

  • How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Mr President.

    How to set the default value of the attribute with a sequence number? Is it possible to add a string to seq.no. like abc0001?

    Concerning

    For the date, you can use groovy expression adf.currentDate to set the current date. reference http://adfgouravtkiet.blogspot.in/2012/11/how-to-set-default-values-for-entity.html

    You already have ways to use the sequence.

    How do you add a new value in the form. You're creating a new line of your page (user interface) and by engaging with validation operation? Unless you commit you will not be able to see anything in the table.

    Thank you

  • How to set the initial value programmatically in af:selectOneChoice

    Hi all

    How to set the initial value programmatically in af:selectOneChoice

    filled with view object instance, but I want to show the value initial programmactically

    This can help you: Re: how to set the default value of the component selectOneChoice in ADF

    and the default af:selectOneChoice programmatically from backing bean

  • How to set the return value of the method to the /outputText inputText field

    Hello

    How to set output return value method of a /outputText adf inputText field

    Concerning

    sevanan

    Well put method's return value to a managed bean variable.

    Create a variable in the bean and set the return value to this variable.

    the inputText and outputTextValue to this managedBean.variable value

    That's all...

    and add partial trigger for inputText programmaticly

  • Call a method before the following operation to set the selected values

    Use case: I display a VO as an ADF multiple checkbox select. This VO is the detail of a master/detail. I managed to store the selection state in a bean managed on autoSubmit. Then the user navigate to the record of the master, and then goes back to the previous record. The buttons next and previous were created using operations in data controls. I want to back up the State of the selection by clicking previous or next.

    There are a lot of tutorial on how to get the selected values, but none on how to set the selected values. How would you do it?

    11 GR 1 material JDev

    What I ended up doing:

    1 redefine listener action for the navigation buttons

    {} public void nextQuestion (ActionEvent event)

    saveSelectedState();

    navigateQuestion ("Next");

    restoreSelectedState();

    }

    {} private void navigateQuestion (string operation)

    OperationBinding operationBinding = ADFUtils.findOperation (operation);

    operationBinding.execute ();

    }

    2 Save and restore the selection state using bindings

    Guava Multimap

    Private ListMultimap selectedIndices.

    private void saveSelectedState() {}

    Get id question

    DCIteratorBinding questionBinding = ADFUtils.findIterator ("QuestionsView1Iterator");

    Question of rank = questionBinding.getCurrentRow ();

    Number questionId = (Number) question.getAttribute ("Id");

    JUCtrlListBinding listBinding = (JUCtrlListBinding) ADFUtils.getBindingContainer () .get ("AnswersView2");

    int [] valueIndices = listBinding.getSelectedIndices ();

    selectedIndices.putAll (questionId, Ints.asList (valueIndices));

    }

    private void restoreSelectedState() {}

    Get id question

    DCIteratorBinding questionBinding = ADFUtils.findIterator ("QuestionsView1Iterator");

    Question of rank = questionBinding.getCurrentRow ();

    Number questionId = (Number) question.getAttribute ("Id");

    int [] valueIndices = Ints.toArray (selectedIndices.get (questionId));

    JUCtrlListBinding listBinding = (JUCtrlListBinding) ADFUtils.getBindingContainer () .get ("AnswersView2");

    listBinding.setSelectedIndices (valueIndices);

    }

  • ODI 11 g | How to set the default value in the Interface mapping?

    Hello
    I m interpreting data OID of Oracle DB load target FOR Hyperion Essbase.
    Its my requirement to set the default value for any size target source system it becomes same record for a specific column.
    I thought that it would be fixed in the Interface, but I was not able to do.

    Example:
    Target Essbae Dimension
    Size of account must have the value "FixAccount".
    Dimension of the year must have the value "FY13.
    Dimension of the view must have the value "ActiveView.

    looking for your

    Concerning
    Sher

    Yes

  • How to set the threshold value for single tablespace in the 11g grid control

    Hello

    I want to set the threshold value for a single tablespace in the 11g grid control,
    Please give me a navigation path.

    Sandy wrote:
    Can you please give me the full navigation path?

    go to the target--> databases
    Select the database that you want to set this alert to
    Link select settings and policy settings

  • How to set the default value of selectOneChoice

    Hi all
    I have two selectOneChoice (soc1 and soc2) in two respective pages with the same datacontrol. Now, I need set the default value of soc2 according to the value selected in soc1.
    For example: -.
    If the user has selected a value in soc1 say 'Bag' in the list then it must affect the default in soc2 as 'Bag' when loading the second page. The time as selectOneChoice was created using the same data contol.

    How can I achieve this?
    Please suggest.

    You can try with this?

    Place curIndex pageflow scope and use

    This.SOC2.SetValue (Integer.ToString (curIndex));

    ~ Abhijit

  • How to set the default value of a column from the value of the 2 columns given

    Is it possible to set the default value for a column A, as the concatenated values of columns B and C of the create table statement itself without using the trigger.

    for example, in a line, if column B is 'James' and column C is "smith" then the column has must be "james Smith".
    in another line if column B is 'Bob' and column C is "Taylor" then column should be "Bob Taylor"

    Thank you
    YG

    Yes, it is possible. But what is your version of the database? Try to use "virtual column. Search for a virtual column in the following link.
    http://www.Oracle.com/technology/pub/articles/Oracle-database-11g-top-features/11g-schemamanagement.html
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_7002.htm

  • Error when setting the minimum value of entry number Spin Box...

    Hai
    I drag and drop a VO and created a table. In this table, I cast a column that contains an InputText field to entry number Spin Box. During loading of the page, the table retrieves data from the database and display of numerical values in the SpinBox.After who, when I scroll the table through vertical scroll bar, the table * "data extract" * and error began as * "the value must be the number" *... In the original Version, this attribute is a number.
    THIS ERROR will PRODUCT ONLY when I put the minimum value of the counter... The purpose of minimum value, I want only the user to select the value of ve only... How can I prevent the user to select only values of ve... ? (IE, * how to set the minimum value of counter?) *

    Try changing the data type of your attribute in the EO to be Double instead of number.

  • set the input value using a workflow setting?

    Jdev 11... 2
    I have a taskflow browse master / detail that called the edict taskflow passing parameters to a router that will either modify it or create method for the detail record (change/create master is in a different position). I can successfully modify/create the main form and I can change/create the detailed form, but I didn't understand how to set the input value for the agency_Id (of the master) in detail. I control data binding to create my detail record 'create', and I have a task flow parameter that has the agency_id I want as the default value in the detail. I don't know where to put the input value. I tried to add another method to the method call that has her 'create' binding for retail, but it seems that I can have only a single method. Do I need another method call to set it? Or should I do something programmatically? (I'm Javaless, so hopefully I can do declaratively).

    Thanks much for any help. If I can figure out how to make this piece, I'll have the beginning of an application that does something useful.

    LB

    Hello

    There is a new Createmethos called 'create with Params' that you can use for this.

    http://www.Oracle.com/technology/products/jdev/tips/fnimphius/createWithParameters/createWithParameters.html

    Simply plug the parameter to the variable of pageFlowScope containing the input parameter

    Frank

Maybe you are looking for