I have Select List item based on List of Values (Shared Components). As default value is null and there is problem, I have another Select List item based on SQL Query which one uses value of first Select List. Cascading List of Values not helping. How I can set first Select List value as first value by default? Clientside value is not null, but serverside is. Exactly I can change Source of first Select List item, but I don't want use the same query which one I use in List of Values from Shared Component. Page submit or item submit in Dynamic Actions is slow and user see that. Are there any other solutions?
P.S: For example first Select List displays Countries, second Select List displays cities. In my case when first Select List is null, second Select List displays all cities from all contries, I don't want this, I want to make first Select List without null value and second Select List with values (cities) by value from first Select List (country, not null).
In one of application page it works like I need, but I can't understand how, and I can't find the difference in code. In page where it works session page displays item value (Page Items, Session State), in another isn't.
If you set "Display NULL value" to "No", it will show the first value of the select list
Related
I want to create a Select List where some values can have a list of sub-values, like this:][1
You can't (at least, as far as I can tell).
What you could do, is to create two select list items (or any number of them) so that they represent a cascade, which means that the 1st item is "master". The 2nd item contains its own query which - in its where clause - references the 1st item which is also to be set as the parent item for the 2nd item.
And so forth, for all cascading items.
I'm using the page below a POS sales list. Here the user can use the barcode pistol and pass the article and the code is translated into the item no.
The problem is when they use the pistol and end to pick a item and want to pass to next one the line go automatically to the first column (Item type) and my goal was to force to go into the second column (Item no), because the Item type is by default the type "product".
Only change the order of columns of Item no to Item product is not enough in this case.
Since ACTIVATE is not supported for controls in RTC.
Not many good options here.
Try using QuickEntry Property. Set it to false for all controls on subpage except No..
Create custom page with as less fields as possible, use it as buffer to scan all items and create sales lines upon closing of this new page. You can implement desired behavior on this page and keep original page almost unmodified
Create add-in that will intercept scanner output somehow.
I have several tabs. There is a date picker on each tab. I need that date to be the same on all tabs no matter what. So, if the user changes the date on Tab 1, then goes to tab 2, the date on tab 2 will have changed also. I have never created an application level item before and I thought that might be the most efficient way to accomplish what I need (by setting that item's value to the date the user selected). My problem is that I don't know how to set the value of the application item and also how to retrieve that value on another tab.
You didn't describe what exactly you're trying to do, but - if each tab represents its own table, why do you keep the same date value in all of them? Doesn't look like a normalized data model. Consider using a single date column (in one - master - table) and use (i.e. reference) it in others (i.e. details).
As of your question: How about creating a global page (i.e. page 0) and having a date picker item on it? You can display it on any other page you want. For example, if you set its value while on tab 1 and then move on to tab 3, you can again modify that value which will be visible on all other pages. Basically, you'd maintain just one item instead of as many as number of tabs involved. (BTW, doesn't that remind you of what I described in the first paragraph?).
Alternatively, create a date picker item on tab 1 page; on all other pages, create a "lookup" (display) item which would simply display what's been selected on tab 1. That's easy to do, just make its source to be an "Item", such as P1_DATE_ITEM.
In Shared Components > Application Items create new Item called G_DATE.
Then for every datepicker add Dynamic Action on Event Change.
In True action Set Value select Type PL/SQL Expression with code
:G_DATE := :P1_DATEPICKER1;
and Items to Submit :P1_DATEPICKER1
Next in every datepicker Source set Type PL/SQL Expression with code
:G_DATE
used Always (...)
Regards
i have a select list displaying all the names from the table X
i want to add id of that corresponding name in to another table naming Y.
HOW TO GRAB VALUE FROM SELECT LIST AND STORE IT IN TO DATABASE TABLE???
A list of values doesn't depend on anything; you can write any query you want (which includes your table X), as long as it returns two values: display and return ones. For example:
select name display_value,
id return_value
from table_x
where <some condition, if there's any>
order by name
If you create a form page and make its source table Y, choose which one of the columns should contain an ID returned by the Select List item and put the above query into its LoV property.
Run the page;
choose a value from the Select List;
Submit
Should be OK.
You need to create an Apex process to perform your desired action, like store the value in your database.
Once your user selects a value from your LOV, usually you'll want to submit the page, which you would tell to run that process.
Alternately, you could create a Dynamic Action on the LOV that runs a PL/SQL process to do your database change.
You may have gotten an answer by now but I thought I'd take a swing at it. I'm trying to get my reputation over the next threshold. :-)
I am using a drop link field disclaimer having 3 values in my sitecore item country, whose data source i have populated using query which is : query:../../*[##templatename!='Country selection' and ##templatename!='Folder'].
I want to set the default value also so that every time a new item is created the default value for the disclaimer field is set using query.
Also, i don't want to set the default value for the entire drop links but to disclaimer field only which is for a particular item.
Go to disclaimer tempalte standard values and select the country which you want.
When ever a new item gets created , then country will be pre-populated with default value