Widget to get drop down values based on user input query string
Hi,
I have a requirement, where in user types in some text and clicks on a search button. On button click, a drop down or some box appears which has result based on the input string (from json ). User can select one of the values in the drop down or box. User should be able to select values from drop down or box only.
How can I achieve this. Is there any custom widget in CQ for this, or I have to write my own widget.
Can i use SuggestField widget for this? if yes, please give some example for this widget.
I want something similar to "authselection" widget. In case of authselection widget user names come from CQ, in this case user name will come from some other system using a CQ custom json.
If user types "gopa" and click on search , i should be able to call a json with query parameter "gopa" & the result from the query will be in the drop down.
Regards,
Gopal
Hi Gopal,
Out of the box there are many example. You can look for siteadmin has a reference.
Thanks,
Sham
Similar Messages
-
User wants to get the cumulative values based on his input.
Hi
I am working one FI Report; the out put values are Cumulative values for Current, Previous years. I developed and it fetches the data last 3 years Cumulative years data without any input FYMonth based on SAPexits and varible offsets. But user wants to put Fiscal year Month as input. So he wants get the cumulative values based on his input. For example, If his input SEP'2005(062005), Then Query gives the Output Cumulative Value (I.e., Sum of Total values of Form APR'2005 to SEP'2005)
Please provide the solution
Thanks
MannevMannev,
You can try doing this.
1. If the user input is fiscal period(2005006) , you can create a customer exit variable which will take the user value (i_step =2), and change the variable value to 20005001. (this is a simple code where tye last 2 digits are replaced by 01).
if the user is entering calmonth, you can use FM - DATE_TO_PERIOD_CONVERT, to convert the month to fiscal period.
2. You can create a rkf with restrictions on time char based on the customer exit variable and the user entered variable.
-Saket -
Derive values based upon user input
Hello,
I recieved a request for a report.
When a user runs the report they are to be prompted for a fiscal year/period.
Based on the fiscal year/period that the user provides I have the following columns (in bold below are 2 examples that may make the description more clear).
1. Revenue for the Fiscal year Prior to the fiscal year of the user input value
2. Revenue for the Fiscal year/Period prior to the input Fiscal year/period
3. Revenue for the Year to date accumulation up to the prior fiscal year/period that the user input
4. Revenue for the Year to date accumulation up to the prior fiscal year (fiscal year rolls back first) and prior period (for period 01, it then rolls back the fiscal year 1 more year) that the user input
Example 1: If the user ran the query and they provided the value 05/2007, then the values that need to be obtained would be:
1. Revenue for 2006
2. Revenue for 04/2007
3. Revenue for 01/2007 to 04/2007
4. Revenue for 01/2006 to 04/2006
Example 2: If the user ran the query and they provided the value 01/2008, then the values that need to be obtained would be:
1. Revenue for 2007
2. Revenue for 12/2007
3. Revenue for 01/2007 to 12/2007
4. Revenue for 01/2006 to 12/2006
Please help me with determining how to obtain the user input value, and then how to derive the time periods for the columns based upon that value.
Thanks,
Nick
(points available)
Edited by: Nick Bertz on Mar 13, 2008 9:43 AMHello,
See my example.. I am reading the value from Keydate Variable
WHEN ZVND01
READ TABLE i_t_var_range INTO w_var_range WITH KEY vnam = 'Keydate'.
IF SY-SUBRC = 0.
CLEAR l_s_range.
l_date = w_var_range-low.
concatenate l_date(6) '01' into l_first_date.
CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
EXPORTING
day_in = l_date
IMPORTING
last_day_of_month = l_last_date
EXCEPTIONS
day_in_not_valid = 1
OTHERS = 2.
IF sy-subrc EQ 0.
l_s_range-low = l_first_date.
l_s_range-high = l_last_date.
l_s_range-sign = k_sign_inclusive.
l_s_range-opt = k_option_between.
APPEND l_s_range TO e_t_range.
ENDIF.
Hope this example helps.. -
Key figure value based on user input.
Dear Friends,
We are using BI7.00 and NW2004S. In one of our report to monitor the number of notification closed and the number of notification open upto the user selected month. For this i have created a Query which has selection screen value as month. I have created a condition which will fetch the difference in days (notification completion - notification creation date) based on user entered value. For example if user enters 10 in the selection screen, report will fetch the notifications which have diffrence in days as 10.
The condition is okay for the above. What user actually wants is the number of notifications completed and that pending based on the value he enters in the screen. For example he enters 10 in the screen, system should show the values as shown below
> 10 days
Completed Pending
3 2
I tried various options but could not achieve this.
Experts help expected. Kindly provide solution.
Regards,
M.MHi,
As per my understanding 1 firstly u have to find out
the no of days (diff between dates notification completion, notification creation date .)
then u have to create condition on no of days which u
have find.there u have to create one user entry
variable for the user can enter his own parametrs.
Right?????
If It is right..
here are the steps..
1st:in the query designer at key figure coloumn create
one local formula.in that local formula create formula
variable with replacement path.in that take reference character
notification completion.in the next tab take replace ment
as key.in the last tab select "date".
2nd: do the same thing for the notification creation date.
3 rd : create 3 rd local formula and do the substraction
for the first 2 local formulas.
4th:create codition on the difference which u have find with
on that condition u can create one user entry varibale.
5th:while u defining the query put these 2 dates,i,e
notification completion, notification creation date in the character block.
If not system will ignore the formula variable which u created in
above steps.
Hope this wil help u.
regards....KP -
XSl formula for pulling values based on parameters or query strings
Hello,
I have a custom list in SharePoint
List Column/Fields (any time a new item is created these are the fields that need values)
Machine = ID2
SpecLabel = text string value
SpecValue = text string value
Using DataFormWebPart
I Filter values by Machine by creating a parameter with a query string as its source.
And pull the values
<xsl:value-of select="@SpecLabel" />
<xsl:value-of select="@SpecValue" />
On the browser I add the parameter to the URL sting to filter each machine ID.
?=Machine=1
Back in the XSL i use the same parameter to pull the value of the string as my header title.
<xsl:value-of select="$paramMachine"/>
Problem
I need a formula that will pull just the the SpecValue data for a specific item.
Example: I have thee items below and I need to just pull the “SpecValue” for the Built Year which is 2014.
Machine = 1
SpecLabel = Speed
SpecValue = 10
Machine = 1
SpecLabel = Color
SpecValue = Red
Machine = 1
SpecLabel = Built YearSpecValue = 2014
Any Suggestion?Hi,
According to your post, my understanding is that you wanted to the formula to filter a list item.
You can create the formula similar like below.
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[@City = 'Abington']"/>
More reference:
http://sympmarc.com/2011/08/15/compound-filtering-in-data-view-web-parts-dvwps-with-sharepoint-designer/
http://blog.jussipalo.com/2012/01/sharepoint-filter-data-form-web-part.html
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Restrict agent inbox status drop down values based on transaction type
Hi,
We have around 20 inbox statuses mapped to different tranaction type and status profile. Now when we can see many other irrelavent inbox statuses when searching for the transactions in the agent inbox.
Is there a way to display only the transaction specific statuses? i.e when I select a transaction type to search only the inbox statuses mapped to the transaction type to be displayed.Hi,
you do not have Transaction type exactly in search criteria - this is only the Category, which is more generic as it could be or transaction type or activity category.
and here only generic statuses mapped in CRMC_IC_AUI_MAP_STA are available as search criteria,
and not the statuses of transaction type directly.
This is because Inbox was created to enable work with many transactions of a different type like eg. emails and service requests together.
you can do something that you want but with custom development - you will need to enhance webui component ICCMP_INBOX. Here you should, based on a chosen by the user Category of a document in search criteria view, narrow the list of Statuses displayed. But I guess SAP standard already makes this as per config in CRMC_IC_AUI_MAP_STA.
But as I wrote at the beginning, it makes you requirement tricky. As you will need dynamically check if category or trans type is chosen as search criteria, and based on this determine its type, search for available statuses in config. And you should only cut down from the list in search criteria some of a generic statuses to help the user - not determine the whole list from the beggining.
I had a similar requirement and we were trying to create such a generic statuses for inbox which will have also the information about trans type status - eg. "In process - Forwarded externally", which was only for requests. there were also logical issues with how to search later using such criteria.
But finally we just added a column in results view with found transaction's status.
Summing up - I would propose you would make a mapping of a Category and statuses you want to display -to think it over, next check if you can put it into CRMC_IC_AUI_MAP_STA configuration.
Maybe this will be the most reasonable solution. -
Drop down values for table in a view not getting populated dynamically
Hi Experts,
The problem which i am facing is as follows
In an existing web dynpro component , i already have a view and it consists of table which has 3 columns.All the three columns are non editable
MATERIAL MAT_DESC MAT_DEL_FLAG
ABC
EFG
HIJ
Now i need to add 2 more columns after the MAT_DEL_FLAG.These two PLANt and STORAGE LOCATION columns must have drop down values
The context refers to a standard Database ZTABLE to which these two fields are added.
MATERIAL MAT_DESC MAT_DEL_FLAG PLANT STORAGE_LOCATION
ABC
EFG
HIJ
The Plant column must have the drop down values based on Material .
If we select some value for Plant , then based on the value of plant the storage location drop down values must be populated.
So as per this logic , the drop down values for plant for each row must be different.
Please let me know how to achieve this.
This is a normal table and not an ALV table.
Also please let me know whether the drop down field must be drop down by key or drop down by index.
This is very urgent.
Thanks in advance
SindhuRefreshing things again for you -
1. As I have already pointed, create 2 context attributes for VALUESETS for both plant and St.loc.
2. Create dropdown by indexes for both of them, assign valusets to respective attributes using node information.
3. Go to the plant dropdown and create the action for it ONSELECT event - when you chagne the dropdown of plant then populate the respective storage loc.
4.Now, As you are selecting a row (leadselect) you have populated the plant and loc details....write the code for lead selection event of the table
You will get the lead selection index right using node interface (IF_WD_CONTEXT_NODE)
LOOP AT ITAB INTO WA_ITAB.
if sy-tabix eq lv_lead_index.
clear wa_valuset.
wa_valueset-key = 'X'. "plant
wa_valueset-value = 'X'.
append wa_valueset to it_valueset1.
* popultae the storage location valuset based on the plant selected (bydefault it is 1 right in dropdown)
clear wa_valuset.
wa_valueset-key = 'XX'. "storage loc
wa_valueset-value = 'XY'.
append wa_valueset to it_valueset2.
else.
* Fill the valusets for all other rows as different or as per your requirement.
endif.
wa_itab-valuset1 = lt_valueset1.
wa_itab-valuset2 = lt_valueset2.
modify itab from wa_itab transporting valuset1 valuset2.
clear wa_itab.
ENDLOOP.
lo_node->bind_table ( it_tab).
Now for that Row, if a plant value is changed, respective storgae loc has to be filled right...then in that ONSELECT of plnat drodpwon again you need to write a piece of code...using the same code with a little modifications.
Hope this is clear.
Check this article on the same - but here ALV is used...the concept is same use it for your table -
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cbdde3-fe58-2c10-fcbc-8db18e693877?QuickLink=index&overridelayout=true
the above code you hvae pasted - i think it fills only for the 1st time....
Regards,
Lekha.
Edited by: Lekha on Dec 20, 2011 12:00 PM -
Drop Down value missing in MSA
Hi Experts,
I am not getting dropdown values(combo values)in fields for Transaction Type OPPORTUNITY in Mobile Sales Application Client. Does any know as what could be the problem as we we create and replicate opportunity from CRM enterprise.
Also while ceating Visit Planning in MSA we are not getting drop down values in field STATUS
Please help & Thanks in Advance
Regards,
Rahul
Message was edited by: Rahul Jagani
Message was edited by: Rahul JaganiHi Rahul,
You probably haven't downloaded all the customising to your mobile client. You need to assign the customising subscriptions to your site after you have done an initial load to the CDB.
Suggest following the best practice guides.
Cheers
Andrew -
Crystal report Chose from List or drop down value in parameter from UDT
Hi Experts,
I had face a issue while creating a report for my client in crystal report , I had create a report and in the parameter field I want to select the value from the chose from list or drop down value from the User define table.
In parameter had written field as : Code@Select * from dbo. [@UDT] ; but in the report filled I am not able to select the value.
Please Help me ! Thanks in Advance. :HI
Welcome to the Forum...
You cannot put all the values in a single parameter field so you need to select each field for each parameter...
Better you post it in this link for more reponses:
Reporting and Printing -
Over ride the drop-down value?
Hello,
I am developing an VISITOR Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
When i opened this VISITOR interactive form in a browser, right clicking and checked form PROPERTIES, then i saw the "PDF Version: 1.6 (Acrobat 7.x)"
I have a bunch of drop-downs in my interactive form, done by dragging & dropiing the 'Drop-down list' object, at the end i binded it with some data source, working fine, say its COUNTRY list.
As soon as use opened the form, he saw the 'USA' prepopulated in the drop-down field, fine.
User dropped down the entries, he saw a couple, like USA, Canada, UK, Spain, fine.
But, now user want to enter / override this USA entry with his own value, like FRANCE, but, my form is not allowing, its behaving like a 'readOnly' field!
Pls. let me know how to over ride a entry of drop-down values, as per user wanting value?Hello Srinivas,
You can overide the entry of drop-down list by:
selecting the "Allow Custom Text Entry" box of the field tab of the object palette
of that drop-down list.
Thanks,
Debadas. -
How to populate Second drop down based on the first drop down value
Hi Experts,
i have a HTML BSP page. with 2 drop down with SELECT and OPTION tags. i need to populate the second drop down based on the first drop down value.
i tried HTMLB script they work good as stand alone when i try to embed the HTMLB with HTML it does not work.
Please can you give me a solution only with ABAP script and HTML.
please clearly let me know on what event i should implement it. sample code is really appreciated .
With regards,
ChellaYou can have event handler for first drop down . Then populate the data for 2nd field when the event triggers on first field.
-
HCM F&P - How to set the field as Required based on drop down values
Hi Experts,
I have a requirement to set the Date field as mandatory when a particular value is selected in drop down list. I have already tried with MessageBox though it displays the error message but process moves further i.e. on clicking Check & Send button it throws an error message but still it moves further and i can see only Send button. Ideally it should halt there itself.
Thanks & Regards,
Jitesh TalrejaThanks for your valuable inputs
Chintan
I have already tried this. It only highlight the field with the red border but still allow to move further.
Mukesh
Yes, we can definately control this from the backend but that would be the last option i should execute. Ideally, this is something to be controlled in front end itself
Poornima
By setting the field attrbiute Required will set the field mandatory as a whole irrespective of drop down values or any other UI element.
Regards,
Jitesh Talreja -
Dynamic change of drop down values
hi gurus,
I got a peculiar senario.
i have three fields on modlue pool screen which are having drop downs.
based on the selected value in the first drop down second drop down values has to display.
suppose.
first drop down displays the bellow values.
technical documents.
type test.
if techincal documents is selected then display the bellow values.
test1
test2
test3
if type test is selected then display the bellow values.
test4
test5
i got the above logic.
one problem is what ever the value i am selecting is reflecting at the end of drop down .
second problem is bellow one.
now suppose that 'type test' is selected in first drop down and 'test5' is selcted in the second drop down.
if suppose again first dorp down selection is changed to 'technical documents' in the second drop down i am getting the bellow values.
test1
test2
test3
test5
already existing value on the screen is reflecting at the end.
but i have to get
test1
test2
test3 only
hope i am clear .
kindly sugest the solution.
thanks in advance ,
padmaja.Assuming your problem is related to custom/z development, i guess abaper might be able to help. In the program clear the internal tables before displaying the values.
rgds -
Retrieving the drop down value used in wdr_select_options for default
Hello Experts,
I populated drop down using the method add_parameter_field by using WDR_SELECT_OPTIONS component.
Now my requirement is I need to default the value in some other parameter field based on drop down selection value.But the problem is WDDOMODIFY method is not triggreing while selecting the value from this dropdown for defaulting the value and even there is no method or option in the interface if_wd_select_options for creating an action while selecting the drop down like on slect in our manually creation drop down.
Please let me know if there is any solution for this.
Thanks and Regards,
VenkatHi venkatesh,
The eventhandlet ONENTER of WDR_SELECT_OPTIONS wont work for the drop down and also
there is no ONSELECT event of drop down in select options.
So i think there must be some kind of button action.
As you told you need to default the value of selection screen field based on drop down selection
why dont you remove that field from selection screen as you can however use the value later
while executing depending on drop down value. -
Hi experts,
I want to create a Drop down in forms with values from Web dynpro Abap Node(0..N) and enable / disable other fields based on selected Drop down value. I binded the data source to DD but values are not populated in it. Please help me to fill values and do validation on selected dd value ....
-RKHi RK ,
I made an dropdownlist link with a parameter of the interface without trouble, so i thnik the only way to solve your problem is to populate an internal table which is send to the forms thru the interface.
Hope this help you
Regards
Maybe you are looking for
-
How to create a .exe script to start and stop Oracle EBS R12 in Linux
Hello, I have installed Oracle EBS R12 in Linux enterprise through Virtual box on windows 7 professional. It takes a long time to start and stop EBS as I have to start and stop the scripts manually - can someone please help me with the following (I h
-
I just upgraded to mountain lion and all my mail folders for storing all old emails are gone. How do I get them back?
-
How to create an image that when scrolled over automatically scrolls between 3 image
What i am trying or rather what i want to achive is, when an image is scrolled over it automaticly scrolls between 3 pictures and when it is rolled off of goes back to a specific image. How do i do something like this i know its going to have to be a
-
Operation level Component Assignment
In MTO scenario with VC and Engineering, the sales order specific engineering BOM is derived through VC and around 80% complete at the time of sales order creation. Engineering activities are carried out and sales order specific production BOM is der
-
How can I view previous passwords on Keychain/iCloud
Hi, So I accidentally entered the wrong password for a website and it asked me if I wanted to update the password on my keychain/icloud. Of course, I wasn't even thinking and clicked update. Now I have no clue what my correct password is for the webs