creating a dropdown list of country having 'other' as option. when user select 'other' as a option,display user input box - drop-down-menu

creating a dropdown list of country having 'other' as option. when user select 'other' as a option, then display user input box . after that user give manual country name and pressed submit button. Data is store as other: user manual input value.
ex-
there are 3 options of country dropdownlist like India,china and other. if user select other option then we have to display atomate user input box using java script or any other language. Finally, we stored the value
as the following manner.
if Country=India
Dispaly
select value is India
if Country=Other then populate input box. User fill populate input box the we display like as
selcet value is Other: populate input box value.
enter image description here
ex-
there are 3 options of country dropdownlist like India,china and other. if user select other option then we have to display atomate user input box using java script or any other language. Finally, we stored the value
as the following manner.
if Country=India
Dispaly
select value is India
if Country=Other then populate input box. User fill populate input box the we display like as
selcet value is Other: populate input box value.
[

Related

How to display combobox only under the lightning-input field which has a User Action?

I have a JSON which I have extracted. There is a field under the node 'NumberBlockDetails' under that, there is a field 'AreaCode' which is displayed as iterated. Currently based on the iteration, that field 'AreaCode' is displaying four times. It is based on one lightning-input condition only. But now as the user edits any one, the combobox is displayed under all 4 fields of Areacode. How can I display it only on 'Areafield' which has a user Action (like Onchange).
````<ul key={num}>
````<lightning-input type="text" label="AreaCode" value={userValue}> </lightning-input>
````<template if:true={flagValue}
````<lightning-combobox
````name=""
````options={}
````</lightning-combobox>
````</template>
````</ul>
````</template>
Currently for all 4 it is displaying when user clicks inside the field, how to show only under the field which is currently in action by the user for the same <lightning-input> field.
Can anyone suggest on this

Oracle Apex Interactive Grid set one value for all rows

My goal is to have a button that when user clicked it, it will prompt text input. Once closed, the value inputted in prompt text will be assign/display to all the rows in a given column. So for example, I inputted '9'. Once dialog page closed, All 10 rows from column A of Interactive Grid will have '9' as a value. This is to lessen the user typing the same value for multiple rows.
If I understood you correctly, user enters the page that contains an interactive grid and starts entering values; you'd want to use the same value for some column in all rows user enters.
If that's so, then don't reinvent the wheel, but:
navigate to interactive grid's column that should have the same value throughout all rows
go to its properties
set the Duplicate copies existing value property ON
Therefore, user would enter that value only for the first row and simply duplicate that row.
Alternatively:
create a page item (let's call it P1_DEFAULT_VALUE)
set it to "Submit when ENTER pressed" (or create a submit button which would do the same; because, item's value has to be in session state, otherwise you can't use it)
navigate to interactive grid's column that should get value entered into P1_DEFAULT_VALUE
go to its properties
scroll down to Default section
set
type = Item
Item = P1_DEFAULT_VALUE
Doing so, column would "inherit" page item's value for each row entered.

Populate a Text Box based on a Combo and Text Box Input

I have one Combo Field and one Text Box Field in my Access DB's Form.
I would like to have my 2nd Text Box Field to get the data from a Table based on the Combo and Text Box Field Data.
Is it possible? or auto-fill in the Access text box only can base on a combo box?
Example:-
The combo field was selected from table-1 consists of the equipID_PK and equipDesc.
The 1st Text box contains the data obtained from the table-2 Block, Floor, and Room. When Block was selected, the floor and room (1st Text Box) will auto-filled.
Based on the combo field (equipDesc) and 1st Text Box data (Room Field), I want the 2nd Text Box to fillup a subEquipDesc which is from Table-3.
I need help on how to set up this Table-3. Some of the Equipment (EquipDesc-in Table-1), when placed in a different room, will have a different description (different software loaded), I called it SubEquipDesc.
Hope is clear and let me know if more explanation is needed. Thanks.
If you add the extra field to your combo box, increase the column count, and set the column width to be 0 (so that it isn't shown to the user), you can then set the ControlSource of the text box to show this hidden column:
=[Combo0].[column](2)
Note that columns in a combo box are 0-indexed, so the example above shows the third column of data.
Regards,
I think that you are describing a "junction" table. Your table set-up should be something like:
tblEquipment - EquipID (Primary key), EquipDesc;
tblRoom - RoomID (Primary key), Block, Floor, Room;
tblRoomEquip - RoomEquipID (Primary key), EquipID (Foreign key from tblEquipment), RoomID (Foreign key from tblRoom).
In the form that is based on tblRoomEquip, you should be using combo boxes to select the information for Equipment and Room, based on the respective tables. Using a text box is not recommended when you have the information already stored in a table.
Regards,

Oracle Apex 5.1: Report column based on LOV(List of values) showing returned value not display value

I have created an interactive report with a form. In the form I have two select lists. The first select list is a list of values defined in the shared component. And the second select list is another list of values which is also defined in the shared component but this select list populates its LOV based on the selected item in the first select list.
Let the names of the select lists are:
Region.
Country(which is dependent on the selected item in Region field).
Now when I press save/create button in the form, a row is created in the report. The Region column and Country column in the report are both "Plain Text(based on List of Values)". But what I see is the Region column is showing the correct display value of the LOV but the Country column is showing the returned value of the LOV.
I want both of these columns show the display values rather than the returned value. Could anyone help me find the solution?
Are you using the same LOVs in form and interactive report? If so and in the conditional LOV (countries) you refer your form item (ex. PX_REGION) it will not work correctly in IR. Probably IR is showing the returned value because the option "show extra values" is checked.
If this is the case my suggestion is to change your IR and instead of a "Plain Text(based on List of Values)" you make it plain text and change the query to an inline query in IR query to obtain the value you want to show.
If you don't want/like to put your LOV queries in different places I suggest you to use this approach shared by Nick Buytaert
Hope this helps you solve your problem.

Can JQGrid Form Editing Div Tag Hide and Show?

JQGrid Form edit input screen, Can u give some idea on how to hide the selected area and also to display it on click of the check box.
for example
my form editing window have
show full details check box and First, Last Name, Age, and Address, Zipcode, City, State and Country
if that check box is checked First, Last Name, Age, and Address, Zipcode, City, State and Country fields are shown else all fields are hidden
Is it possible ?
If I understand correct your question you want test the value of some field from the Edit form and hide some other fields of the form depend on the tested value.
You can implement the behavior inside of beforeShowForm callback. If you you have for example column with name: "sold" in the colModel which has formatter: "checkbox" then you will find the corresponding value in the edit form in the checkbox having id="sold". So you can use $("#sold").is(":checked") to test the value. You can do such testing inside of beforeShowForm callback which will be called after the form will be initialized, but before it will be shown. To hide information from "address" column for example you can use $('#tr_address').hide();. The $('#address') represent the input field for the address and $('#tr_address') represents the full row of the edit form with the information.
You can find and example which very close to what you need in the answer.

Resources