Setting maxlength for each row in a multiline texbox - max

I want to set maxlength to 5 characters for each row in a mulitiline textbox.

if you are talking with respect to asp.net textbox control then it can be done by setting the columns property to 5

Related

jqGrid, set initial value for a dynamic dropdown inline edit

jqGrid.js v5.3.2
Hi all,
I have been trying to figure out a way for 10 hrs for below situation:
the grid is set to inline edit.
there are two dropdown/selects. ddl1 and ddl2
the options list of ddl2 depends on the value of ddl1. This means each row may have different options.
I have been able to dynamically populate/select/save ddl2 based on ddl2's initial Key value or the selected value of ddl1 during
Editing by setting dataUrl of ddl2 and "change" of dataEvents on
ddl1 (column).
I want to display the Value(not the Key) of ddl2 initially. is there a way I can set a row's "formatter"'s "value" property dynamically in
loadComplete? I forcefully set the html content of the "td"/cell
during loadComplete but the content wont survive a round of
Edit/Restore.
TIA

Orbeon Repeat Grid Issue Dropdown Issue

In my Repeat Grid I have
1. First Dropdown
2. Second Dropdown
3. Input Area
When I select value from First Dropdown, data of Second Dropdown will be loaded. (I'm using On Value Change Action)
When I click on Plus (+) the value of Second Dropdown of First Row changes!
Similarly if I change any row First Dropdown, the values getting bounded for all the Second Dropdowns. Whatever I selected initially will be reloaded again!
Is this the bug in Orbeon or is there a way to load them differently?
This was the behavior prior to Orbeon Forms 2016.1. You can read more details in issue #1770. You can consider upgrading to Orbeon Forms 2016.1, or using the Dynamic Data Dropdown control as a workaround.

How to Hide/Show of UI component in oracle adf

I am new to oracle adf in my application one of the field is id and it is sequence generated value Whenever I entered remaining values and click on save then only it has to display with sequence generated value before saving it has to be in hide mode. Can any one help me how the approach is.
set visible property for seq field. like below
visible="#{binding.filedName.inputValue != null}"
by default seq field value is null so it will not display. once u click save button, this field value to be set to next seq value so it will display
Just remove this value from UI and do your number generation for this field in model.
You can set the visible attribute of the field in your page to be based on an expression language such as #{viewScope.showfield}, then add a setPropertyListener to your save button that sets the #{viewScope.showfield} to true.

Datatable editable - make cell editable based on a condition

I am using Jquery Datatable Editable. I wanted to know if it is possible to make a cell editable based on a condition.
For example if my data is rendered this way,
Key text
1 Help
2 Choice
3 Edit
Key and Text are 2 columns, I want to make the cell with value choice only editable and the cells with value Help and Edit remain readonly. Is it possible to achieve this via Datatable editable ?
You may use jEditable js to make a particular class editable. Click HERE.

Xpages - CompositeData - Repeat Control

I have a repeat control, repeatControls = false, rendered = true, using both indexVar and var. Value is an array from a sessionScope variable, so if 4 values, 4 items are shown.
Printing Computed Fields isn't an issue
I added an Edit Box inside repeat and set it to bind data using compositeData.editField1
no Partial refreshes
Then there is a button which has to set the data of all rows of editable fields to a sessionScope variable,
if I just do
sessionScope.put("editField1", compositeData.editField1), I just get the value of the last row. how to add the values of the other rows of edtitable fields ? There are no bindings to Notes views or documents as they aren't needed. Thanks
If you have input fields, you need to bind them. Binding them to a scope is perfectly fine. In the same question Michael was pointing to is the link to a sample with add/remove row logic (just substract the part where it goes back to the field).
Excercise 23 has all you need.

Resources