Using the Current Function in a repeating table with cascading drop-downs
I have a Repeating Table where a customer can choose the values for three cascading drop-downs. I then want the member to start a new entry with the same cascading drop-downs but with different results based on their most current input not
based on all their input throughout the form. I also do not want the current input to affect previous inputs replacing what was already entered.
Please assist.
-Ben
Hi,
Based on your description, you don't want to meet the following issues:
The first row returns back all the data from the list up to the value selected.
Any new item added, replaces the value in the other items.
Here is an article about InfoPath Repeating Table Lookup control on SharePoint List, refer to it:
http://www.sumitrawat.net/2009/10/infopath-repeating-table-lookup-control.html
Besides, here is a similar post, you can use as a reference:
https://social.msdn.microsoft.com/Forums/office/en-US/43253974-990d-4307-bf54-cc615618362a/issue-with-cascading-dropdown-in-a-repeating-table
Best Regards,
Lisa Chen
Lisa Chen
TechNet Community Support
Similar Messages
-
Using the same field on a form for multiple menu/drop down list
I have a form that tracks people that attend orientations. It is possible for an Attendee to attend the same orientation up to three times.
In using the Update record wizard, I have two recordsets, rsAttendees and rsOrientation from two separate tables.
I want to be able to use the rsOrientation to create a drop down list, but I want to use that same recordset field as the source for the dropdown 3 times on the same record.
There are 3 fields on the Attendee form:
Orientation1, Orientation2, and Orientation3.
Using the wizard, I set each up as a Menu, then select the rsOrientation, Orientation.Date as the source for all 3.
The problem is that only the Orientation1 field is populated. Orientation2 and Orientation3 dropdowns are blank.
Name:________________________
Orientation1: __________________<-----------Using Wizard, pull Menu list from Orientation.Date This one works fine
Orientation2: __________________<-----------Using Wizard, pull Menu list from Orientation.Date This one is blank
Orientation3: __________________<-----------Using Wizard, pull Menu list from Orientation.Date This one is blank
Do I need to reset the rs somehow?>Do I need to reset the rs somehow?
Very possible. You haven't mentioned what server model you are using. -
How do I configure a dynamic table with Data-Drop Down selections to store separate values?
I am attempting to use LiveCycle to create an Order Form that uses an ODBC to a SQL database. When a user makes a selection, a separate column in the table references the "Item #" associated in the SQL table, and generates a corresponding barcode.
My problem is that when I select an Item from the drop down list, all the items in the table change. What am I missing here to separate the rows as different line items? I tried adding a [*] to the end of the connection string, and that allows me to select different options but does not generate the "Item #" or "Barcode" field.
The screenshot below shows the basic form. When I select any of the data drop downs, all of the Items change.
I used the auto generated script for the "Add Row +" button shown below. Is this my issue? Or do I need to alter the way I'm setting up the Data Binding in for my Data Drop Down?
this.resolveNode('Table1._Row1').addInstance(1);
if (xfa.host.version <8) {
xfa.form.recalculate(1); }package pruebadedates;
import java.sql.*;
* @author J?s?
public class ClaseDeDates {
/** Creates a new instance of ClaseDeDates */
* @param args the command line arguments
public static void main(String[] args) {
java.sql.Date aDate[] = null;
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql://localhost/pruebafechas", "root", "picardias");
if(!con.isClosed()){
stmt = con.createStatement();
stmt.executeQuery ("SELECT dates FROM datestable");
rs = stmt.getResultSet();
while (rs.next())
aDate[] = rs.getDate("dates");
catch(Exception e)
System.out.println(e);
//System.out.println(aDate);
}Hi, There is my code and the errors that I get are:
found : java.sql.Date
required: java.sql.Date[]
aDate = rs.getDate("dates");
Actually I have No idea as How to get a Result set into an ArrayList or Collection. Please tell me how to do this Dynamically. I have like 25 records in that Database table, but they will grow, so I would really appreciate to know the code to do this. I suspect my problem is in the bolded part of my code.
Thank you very much Sir. -
Dynamic table with dynamic drop-down list values
Hi,
I need to display a dynamic table with 2 columns on an interactive form.
My Context is defined as below:
Root
StudentData 0..n
StudentName
StudentCourses 0..n
Text
Value
The 1st column should display student name, 2nd column should display student courses. The courses will be different for each student. I populated the context properly. I checked it by printing them. My DDL is bound to "Student Courses".
When there is one row -> The DDL is populated with the courses of student 1 (as there is only one).
When there are more rows -> The DDLs for all the students are populated with all the courses of all the students.
I want to see the data populated like:
TEXTFIELD DROP-DOWN LIST
Student 1------Student1-Course1
Student1-Course2
Student1-Course3
Student 2------Student2-Course1
Student2-Course2
Student2-Course3
I tried to do this in plain web dynpro using SVS.. it is also working similarly.
I have set the singleton property of nodes "StudentData" and "StudentCourses" to false.
Could any one tell me where I am going wrong?
Thanks
RamRam,
I'm not sure how much this will help, but I know I had the same problem as you when I tried to get a similar thing working, but I can't remember which of the many changes I made fixed the problem, so I'll just show you my code and perhaps you can see if anything is different than yours.
Here's where I'm creating my dropdown - in my case EastNew_RegOut is the same as your StudentData, and RateTypeDropValues is the same as your StudentCourses (the comments in the code are not meant to sound bossy to you, this is actually an example piece of code that other developers in my company "steal", so I have to put very specific instructions in there!):
int nodeSize = wdContext.nodeEastNew_RegOut().size();
for (int i = 0; i < nodeSize; i++) {
//create an element called "table", that's the element at i. So, basically it's a row. Maybe I should have
//called it "row" instead of table.
IPublicDeviceExchange.IEastNew_RegOutElement table = (IPublicDeviceExchange.IEastNew_RegOutElement)wdContext.nodeEastNew_RegOut().getElementAt(i);
//this line of code just executes an rfc that finds out what rates need to be in the dropdown for this particular row
executeRateTypeDropdown(rateCategory, table.getNum(), wdContext.currentEastNew_MeterOutElement().getReggrp());
//clear out what's already in there before we re-populate it.
table.nodeRateTypeDropValues().invalidate();
//now, I'm looping through all the values in the *actual* rate type dropdown (the one that's an RFC, populated by the above "execute" method)
for (int j = 0; j < wdContext.nodeEastRatetype_DropdownOut().size(); j++) {
//for each element in the *actual* Rate type dropdown, I'm going to create an element in my node that I created
//and set the values from the *actual* one as the values in my node.
IPublicDeviceExchange.IRateTypeDropValuesElement element = wdContext.createRateTypeDropValuesElement();
IPublicDeviceExchange.IEastRatetype_DropdownOutElement rateTypeOut = (IPublicDeviceExchange.IEastRatetype_DropdownOutElement)wdContext.nodeEastRatetype_DropdownOut().getElementAt(j);
element.setText(rateTypeOut.getText());
element.setValue(rateTypeOut.getRatetype());
//here's another key - notice how I don't say wdContext.nodeRateTypeDropValues() - it's the one that's
//directly off that table I created earlier - the thing that's essentially a row in my newReg table.
//So, what I'm doing here is adding that new element I created to the dropdown FOR THAT ROW!
//(btw, if you're trying to duplicate this, and this method does not exist for your "table" object, it's
//probably because you didn't listen to me above and you didn't create your node with the singleton property
//set to false.)
table.nodeRateTypeDropValues().addElement(element);
As for my layout... my table is bound to the EastNew_RegOut node, and the column with the dropdown is bound to RateTypeDropValues.Value (that's probably obvious, but there you have it anyway)
Finally, in my context, EastNew_RegOut is singleton = true (I was surprised about this, actually, I would have assumed it was false) with a selection of 0..1 and RateTypeDropValues has singleton set to false with a selection of 0..1
I hope that helps to some degree!
Jennifer -
Hi there,
I cannot use InfoPath. But I need functionality like InfoPath Repeating Tables. Do I have any option? Any JavaScript or anything else?
Thanks so much.Hello,
You can also use gridview to create dynamic rows.
http://www.codeproject.com/Articles/467788/Dynamically-adding-and-deleting-rows-from-ASP-NET
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Using the IF function with a range of numbers
I am working with the IF function and trying to get it to work "if" the number I'm examining is within a range of numbers.
Example:
If a wigit costs between $1000 and $1999, then a discount of $100 is given
If a wigit costs between $2000 and $2999, then a discount of $150 is given
If a wigit costs between $3000 and $3999, then a discount of $225 is given
And so on.
If cell A1 always holds the current cost of the wigit being sold.
cell B1,B2,B3 holds the value of the discount values respectively.
In cell C1 I would like to return what the current discount value is to be given for the wigit price in cell A1?
How do I do this using the IF function or is there another way?
Thanks,
RyanHI Ryan,
In this post you have, except for the issue noted by Badunit, the basis for the discount table described by Wayne:
I'm trying to devise a way of knowing what Cash Card a customer will receive depending on the amount of the purchase, based on the following table:
$0 to $999 purchase = $50 Cash Card
$1,000 to $1,999 purchase = $100 Cash Card
$2,000 to $2,999 purchase = $200 Cash Card
$3,000 to $3,999 purchase = $300 Cash Card
$4,000 to $4,999 purchase = $400 Cash Card
$5,000 to $5,999 purchase = $550 Cash Card
$6,000 to $6,999 purchase = $700 Cash Card
$7,000 to $7,999 purchase = $850 Cash Card
$8,000 to $8,999 purchase = $1,000 Cash Card
$9,000 to $9,999 purchase = $1,200 Cash Card
$10,000 to UP purchase = $1,500 Cash Card
To take care of the issue noted by Badunit, you need to revise the top line to state the minimum purchase necessary to earn a cash card, then add a line above that to handle purchases under that amount. I've arbitrarily chosen a $500 minimum, which results in these two lines:
$0 to $499 purchase = $0 Cash Card
$500 to $999 purchase = $50 Cash Card
To write this as Wayne's table, you need to remove all of the text (including the $ currency markers), the top end of each range, and the = sign. What you're left with is two columns of numbers: The bottom number of each range of values, and the number telling the dollar amount of the cash card for that range. Here's your table, edited to make it work with LOOKUP:
Here is a second table (Main), containing only the labels and the two cells involved in the calculation of the cash card amount. The Purchase amount is the amount used in your example. The Cash Card amount is produced by the LOOKUP formula below the image.
Purchase price is in cell B1 of the table "Main". The LOOKUP formula is in B2:
B2: =LOOKUP(B1,CC Amt :: A,CC Amt :: B)
LOOKUP acts essentially as you request in your post containing the iPad image with the time shown as 1:46. But it takes a much simpler approach.
Here's the syntax:
LOOKUP(search-for,search-where,return-from)
LOOKUP gets the search-for value (2535) from cell B1.
It looks in column A of the table "CC Amt" for the largest value less than or equal to the search-for value, and finds 2000.
It returns the value from the same line of column B (200).
Below are two more examples. Main-2 and Main-3 are copies of the Main table. Both contain exactly the same formula as Main, but have had a different Purchase price amount entered. LOOKUP uses the same CC Amt table as is used above, and returns the appropriate Cash Card value for each of the two new amounts:
You may, as implied in your 1:46 post, use a pair of cells to calculate the Cash Card amount for each widget in the purchase, then total the Cash Card amounts, or you may use a single pair of cells, one containing the total purchase amount, the other containing the Cash Card amount due for that total. That choice is yours. The formula is the same for either case.
Regards,
Barry -
Multivalue error when using the previous() function
I am getting a multivalue error when using the previous() function on a dimension object in the report. I thought that the previous function was supposed to look at the current report and then look at the previous record's contents. How could this possibly give me a multivalue error when the value is clearly output in the previous row? Anyone have any ideas?
By the way, this is a valuable function for the types of reports that I design. The next() function would be even more valuable.
Thanks for your help.Hi Michael,
Could you please test the following solutions it might help you to resolve the issue.
Solution1:
Use slice and dice to reset all the tables that have #multivalue in it. The only problem with this workaround is they have to do the formatting manually.
Solution2:
Also, test the issue by changing the object to dimension if it is a measure or to measure if it is a dimension.
Regards,
Sarbhjeet Kaur -
How to use the set functions effectively in webi ,please let me know with detail
how to use the set functions effectively in webi ,please let me know with detail
Hi,
we use use set functions on heirarchies with aggregate functions mostly .
If you include member_set, Min returns the minimum value of the aggregated data for all members in the member set.
Member_set can include multiple sets separated by semicolons (;).
The list of member sets must be enclosed in {}.
If the member set expression does not specify a precise member or node, the hierarchy referenced must be present in the table, then the member set expression references the current member in the hierarchy in the table. If the hierarchy is not in the table, the function returns the message #MULTIVALUE.
Eg .
1) Ancestor
=Sum([YTD] ; {Ancestor([Test Hierarchy];2)})
2) IsLeaf
=[Test Hierarchy].IsLeaf
You can use this function when you want to show your Measure only at lower level .
3) .Depth
=[Test Hierarchy].Depth
This is also function used with hierarchy to find Level of Members .
Follow this link for PDF reference .
Page 147
https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CDIQFjAB&url=https%3A%2F%2Fhelp.sap.com%2Fbusinessobject%2Fproduct_guides%2Fboexir4%2Fen%2Fxi4sp5_ffc_en.pdf&ei=nBAUU-iUM4WWrAeMuoCoDg&usg=AFQjCNHakXsEjd_yUk2y3lVdibf3PXpEOA&bvm=bv.61965928,d.bmk
search on SCN this question was discussed before also one those links .
http://scn.sap.com/thread/3183380
Hope this will help you . -
I am currently away from my MAC and want to send an email through apple mail with the bcc functionality. I am using the cloud to get to my mail, however, I can't figure out how to use the BCC functionality, please help. Thanks!
Open your mail,
lower left corner click on settings,
go to composing and check BCC, save and your done -
How to Use the language function for assignment and validation
Hi All,
If anyone can explain me in details with example ,how to use the language function for assignments and validations?
Thanks
ArnabHi Arnab,
The expression is checked only for the current MDM session.
If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
Try connecting to the DM with the XYZ language.
It should go to the if part rather than else.
Hope it helps.
Thanks,
Minaz -
How to use the CMS functionality in Sun Portal Server 7.2
Hi All,
How to use the CMS functionality using the ccd.war(Portlet) which is available in the library as i could add it to my channel but not able to show the functionality as it is showing the error msg "You are currently not logged in. Please login." should I create userid and there respective roles inorder to use the CMS functionality.
Has any one used this as I could this in glass fish server.
Any Input is appreciated.
Thanks & regards
SrikanthHave a look at the "*Roles*" section of the portal server 7.2 content management system guide
http://docs.sun.com/source/820-4275/index.html . You can also look at [project mirage|https://mirage.dev.java.net] for some screencasts
Alternatively,
1. ccd.war has 3 portlets in it:
(a) custom content definition portlet
(b) custom content portlet
(c) workflow portlet
2. Inorder to work with these portlets, user needs to be in anyone of the below roles:
(a)Consumer (b) Editor (c) Approver (d) Administrator (e) Submitter (f) Contributor (g) Publisher
3. By default ccd.war gets deployed using a default roles file (/var/opt/SUNWportal/tmp/ccd.roles.properties)
Note: In windows, you may not find this file
4. Access the portlets as a user in any of the role mentioned in the ccd.roles.properties
(OR)
you can use a new roles file which has mapping to your custom roles. For this , undeploy existing ccd.war and deploy again with a new roles.properties file
Hope this helps! -
How to use the 'swc_element_get' function?
Hi Experts,
In my workflow there is a requirement where I want to take up some container elements and insert those values into a z table . For that i am using the 'swc_element_get' function. I am confused about the import parameter 'field' and the parameter 'Container'. Can someone please suggest how to use this function?
Thanks & Regards,
Samrat DuttaHi All,
I have been able to get the value of a container element by using the macro 'swc_get_element' .I have used it in the method of my task and saved the value in a z-table. For this I have set the 'Export' property of that particular container elemnt .Now my problem is I want a second container element to be stored in the database , I have set its 'Export' property , but inspite of that it is not visible in the task container. As a result I am not able to access it from inside my method and unable to save it in the z-table. So please give me some solution.
Thanks & Regards ,
Samrat Dutta. -
Using the lookup function in Numbers '09
I'm looking for the way to have the lookup function in Numbers '09 return an error for a non-exact match. Eg. I want an invalid part number to state this, but currently all I can get is the return of data for the closest match. Thank you.
when you use the VLOOKUP() function the last, optional, argument can request and exact match. When an exact match is not available VLOOKUP() will return an error.
you can use the IFERROR() function to trap errors like this:
=IFERROR(<FUNCTION_TO_TRY>, "NOT FOUND")
In your case.... if <FUNCTION_TO_TRY> is you VLOOKUP(<WHAT_TO_FIND>, <RANGE>, <COLUMN>, 0), the "0" specifies exact match and you could then place all this in the IFERROR() like this:
=IFERROR(VLOOKUP(<WHAT_TO_FIND>, <RANGE>, <COLUMN>, 0) "NOT FOUND")
<WHAT_TO_FIND> is what to look for,
<RANGE> is where to look,
<COLUMN> is the number of the column in the range you want to return -
Hi,
I have following Query
WITH SET [Union name set test] AS {[Union].[Union Name].&[2],[Union].[Union Name].&[3],
[Union].[Union Name].&[4],[Union].[Union Name].&[5],[Union].[Union Name].&[6]}
SELECT {[Measures].[Emp Count]} ON 0,
{ORDER({[Union].[Union City].[Union City]*[Union name set test]},
[Union name set test].CURRENTMEMBER.MEMBERVALUE, BASC)} ON 1 FROM [Federations];
when i run this query from code as well as SSMS i get following error...
The CURRENT function cannot be invoked in this context because the 'Union name set test' set is not in the scope.
Please help me for this ....Hi Mihirhp,
Base on my research, there are some similar issues and the resault turn out that the Tabular model engine can’t associate .currentmember with a set. The workaround is to use .current in the MDX query. Please try the query below.
WITH SET [Union name set test] AS {[Union].[Union Name].&[2],[Union].[Union Name].&[3],
[Union].[Union Name].&[4],[Union].[Union Name].&[5],[Union].[Union Name].&[6]}
SELECT {[Measures].[Emp Count]} ON 0,
{ORDER({[Union].[Union City].[Union City]*[Union name set test]},
[Union name set test].CURRENT.MEMBERVALUE, BASC)} ON 1 FROM [Federations];
Hope this helps.
Regards,
Charlie Liao
TechNet Community Support -
Hi,
I have a time dimension with levels AllTime, Year, Month, Week, Day. I set the chronological key to the day and created an Ago Measure in my fact. The repository global consistency was successful. However when I used it in answers, I got the following error message:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22040] To use AGO function, the storage level of the query ('[DIM_DATE.DIMENSION_KEY]') must be a static level. (HY000)
SQL Issued: SELECT DIM_DATE.CALENDAR_YEAR_NAME saw_0, F_TEST.MEASURE saw_1, F_TEST.YearAgoMeasures saw_2 FROM WMS ORDER BY saw_0
Does anyone have any idea please? Note that the DIM_DATE.DIMENSION_KEY is the primary key of the time dimension table.
Thanks a lot
MarijaHi Wildmight,
I restarted everything and got the "must be a static level. (HY000)" error fixed. Then I checked the chronological key in the level "year" but it seems not to be working. It's taking a long long time to show the results (I finally cancel it).
Reviewing the nqquery log file, I don't really get how obi retrieves the todate info, it uses the analytic function: ROW_NUMBER() OVER (partition by....), do you get the same?
Thanks again.
Maybe you are looking for
-
Ipad2 built in speakers are not functioning ?
My built in speakers are not working for applications, However, I still can get the sounds thru the headphones.. Knowing that in sounds settings I still can hear the ringtones thru the speakers ??!!! Is there any procedures to fix the built in speake
-
So I tried using the voice option on the swype keyboard to text, and for some reason it requires me to be connected to the internet. I am not sure why and I can't seem to find much information on why it does, has anyone else came across this issue?
-
When will we have ME TV in the Fairmont WV area
ME TV when will we have it in the Fairmont WV area
-
My Iphone 5 is frozen with a screen message restore failed ...I can't even turn it off ?
-
Currency translation at the time of transformation
Hi All, Can any body please explain me the procedure for currency translation at the time of transformation with some example. Thanks and Regards, Prashant