Matching user selection value with xml statements

I'm fairly new to the Spry framework and I'm trying to
accomplish a simple project with it and struggling. Can anyone give
me some direction or suggest some samples to look at?
I'm creating a survey and I've generated a radio button list
that will appear with each statement in my xml. I could write a
general javascript function that captures the value and totals it,
but it is a little more complex than that and that's where I'm
stuck.
Each statement has a career type associated with it (which
I've stuck in the code, but will hide it later). I want to get the
value of the user's checked radio button and then add it to a
variable based on the career type? How do I get that career type
and associate it with the user's choice? Do I need to put a
function in "onclick" and set it as the current row?
my html:
<head>
<script type="text/javascript"
src="assets/includes/xpath.js"></script>
<script type="text/javascript"
src="assets/includes/SpryData.js"></script>
<script type="text/javascript">
var jSurvey = new Spry.Data.XMLDataSet("survey1.xml",
"survey");
var jStatement = new Spry.Data.XMLDataSet("survey1.xml",
"survey/question");
function getValue(){
</script>
</head>
<body>
<p spry:region="jSurvey"
class="header">{jSurvey::surveyTitle}</p>
<form name="scale">
<table>
<tr>
<th scope="col">Statements</th>
</tr>
<tr>
<td><div spry:region="jStatement"><p
spry:repeat="jStatement"
class="{ds_EvenOddRow}">{jStatement::statement}<br
/><br />
<span class="">{jStatement::careerType}</span>
<input type="radio" name="option_{ds_RowID}"
id="{ds_RowID}" value="0" onclick=" " >Dislike</input>
<input type="radio" name="option_{ds_RowID}"
id="{ds_RowID}" value="1" onclick=" ">Uncertain</input>
<input type="radio" name="option_{ds_RowID}"
id="{ds_RowID}" value="2" onclick=" ">Like</input>
<input type="radio" name="option_{ds_RowID}"
id="{ds_RowID}" value="3" onclick=" ">Like Very
Much</input></p></div>
</td>
</tr>
</table>
<input type="submit" />
</form>
</body>
my xml:
<survey>
<question>
<statement>Use dental instruments within patient's
mouth.</statement>
<careerType>Dental Hygienist</careerType>
</question>
</survey>
Any direction or samples I should look at would help.
thanks, Brandy

Hi Brandy,
I would try writing out my radios like this:
<input type="radio" name="option_{ds_RowID}"
id="{ds_RowID}" value="0"
onclick="AddAnswer('{jStatement::careerType}', this.value); " />
And then define a function that tracks the answers by career
type:
var answers = {}; //. Associative array that will track our
answers by career type.
function AddAnswer(careerType, value)
answers[careerType] = value;
By the way, I see you doing something like this:
<input ...> ... </input>
Input elements aren't supposed to contain anything. That's
why in my example I used:
<input ... />
--== Kin ==--

Similar Messages

  • WCS#2009.10.20.11.20.34: No matching users were found with search string ..

    Hi,
    I setup my webcenter spaces using OID. I used the console application to setup OIDAuthenticator. I can see OID users and groups in the console application. I can also login to webcenter spaces using any of the OID user. But when I try to create a page in webcenter spaces I get error
    WCS#2009.10.20.11.20.34: No matching users were found with search string ..
    Also, when I try to change permission grants for a given page in webcenter spaces using 'Set Page Access' I cannot search for any of the OID users.
    I have modified my jps-config.xml to add
         <property name="username.attr" value="uid"/>
    <property name="user.login.attr" value="uid"/>
    inside the 'idstore.ldap' serverInstance as mentioned in the document. But stilll it does not work.
    Can anybody help me..
    I see the following error in my WLS_Spaces-diagnostic.log
    [2009-10-20T11:20:34.203-05:00] [WLS_Spaces] [ERROR] [] [oracle.webcenter.webcenterapp] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: executive] [ecid: 0000IHmjzSbFg4WFLzyGOA1ArTye00000E,0] [APP: webcenter] WCS#2009.10.20.11.20.34: No matching users were found with search string executive
    [2009-10-20T11:20:34.203-05:00] [WLS_Spaces] [ERROR] [] [oracle.webcenter.webcenterapp] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: executive] [ecid: 0000IHmjzSbFg4WFLzyGOA1ArTye00000E,0] [APP: webcenter] [[
    oracle.webcenter.webcenterapp.security.WCSecurityException: No matching users were found with search string executive
         at oracle.webcenter.webcenterapp.model.security.WebCenterSecurityUtils.getPrincipal(WebCenterSecurityUtils.java:494)
         at oracle.webcenter.webcenterapp.model.security.WebCenterSecurityUtils.getUserPrincipal(WebCenterSecurityUtils.java:377)
         at oracle.webcenter.webcenterapp.internal.view.shell.WebCenterPagesManagerImpl._grantCustomPermission(WebCenterPagesManagerImpl.java:650)
         at oracle.webcenter.webcenterapp.internal.view.shell.WebCenterPagesManagerImpl.createPersonalPage(WebCenterPagesManagerImpl.java:582)
         at oracle.webcenter.webcenterapp.internal.view.backing.BoilerplateBean._createPage(BoilerplateBean.java:818)
         at oracle.webcenter.webcenterapp.internal.view.backing.BoilerplateBean.clickCreatePageFromWizard(BoilerplateBean.java:947)
         at oracle.webcenter.webcenterapp.internal.view.backing.BoilerplateBean.clickCreatePageFromWizard(BoilerplateBean.java:929)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1282)
         at oracle.adf.view.rich.component.UIXDialog.broadcast(UIXDialog.java:81)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:145)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:145)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:81)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:787)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:280)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellPageRedirectionFilter.doFilter(WebCenterShellPageRedirectionFilter.java:210)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellFilter.doFilter(WebCenterShellFilter.java:603)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.processFilters(WebCenterLocaleWrapperFilter.java:256)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.doFilter(WebCenterLocaleWrapperFilter.java:228)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: oracle.security.idm.ObjectNotFoundException: No User found matching the criteria
         at oracle.security.idm.providers.stdldap.util.DirectSearchResponse.initSearch(DirectSearchResponse.java:171)
         at oracle.security.idm.providers.stdldap.util.NonPagedSearchResponse.<init>(NonPagedSearchResponse.java:52)
         at oracle.security.idm.providers.stdldap.util.NonPagedSearchResponse.<init>(NonPagedSearchResponse.java:43)
         at oracle.security.idm.providers.stdldap.util.LDAPRealm.searchUsers(LDAPRealm.java:480)
         at oracle.security.idm.providers.stdldap.LDIdentityStore.search(LDIdentityStore.java:265)
         at oracle.security.idm.providers.stdldap.LDIdentityStore.searchUsers(LDIdentityStore.java:358)
         at oracle.webcenter.framework.service.Utility.getUserFromUserName(Utility.java:571)
         at oracle.webcenter.webcenterapp.model.security.WebCenterSecurityUtils.searchUser(WebCenterSecurityUtils.java:315)
         at oracle.webcenter.webcenterapp.model.security.WebCenterSecurityUtils.getPrincipal(WebCenterSecurityUtils.java:486)

    I have run dead smack into this issue using AD also. Is there a solution? I have tried all of the options for the following settings which seem to control the look up process:
    <property name="username.attr" value="cn"/>
    <property name="user.login.attr" value="sAMAcountName"/>.
    For me, this issue rears its ugly head when attempting to add a role to an AD user. I can enter the login name in the find user box, click the find button, and the user is found. I select the user, pick the role, click "Add Member(s)", and then bam "No matching users were found with search string <login user>" message.
    Based on my analysis of the problem, my guess would be that the look up process, which works, differs from the role assignment process in source of data and/or the key-field used to find a match.
    Any help would be greatly appreciated.
    Thanks In Advance.

  • Regarding Can we store User Selected values in prompts

    Please help us in achieving the below requirement.
    Requirement is to store User Selected values in prompts when the report is opened by a User for the first time and make use of those values to refresh the report next time onwards.
    1.Can this be achieved in WebI ?
    2.If it is thru SDK(we use Java), any experience/help in doing this ?
    Environment : BO XI 3.1 with SAP BW Integration

    Hi ,
    If you dont want data to be displayed in this report for this two values , then exclude this two values when you restrcit your characteristic to the variable.
    If you want not to display this values when user opens help for entering the values where he can see all the possible values for selection for the variable, then it wont be possible.
    Hope this will help.
    - Jaimin

  • How to include input user parameter values in XML report output?

    How can i include input user parameter values in XML report output. I a have a report which can be run by providing start date and end date. I would like to include value of these parameters in XML output to enable me to figure out dates for report, just by looking at XML output.
    Rgds,
    manish

    I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
    XML Tag Attributes: myParameter="&<P_1>"
    where P_1 is your user parameter.

  • Retrieving user selected values in drop down

    Hello
    I am in trouble again
    I am trying to set the user selected values in the dropdown list but whatever i tried i always either get the default values or just the last selceted value or the first selected value
    Can anyone help please
    heres the code
    String values = request.getParameter("selectHeaders" + i++);
        while (values != null)
            selectedValues.add(values);
            values = request.getParameter("selectHeaders" + i++);
    [INSIDE HTML]
    <%
      for (int j = 0; j < headerList.size(); j++)
             String selectedHeaders = "selectHeaders" + j;
       %>
        <TD><%=headerList.get(j)%></TD>
        <TD><SELECT name="<%=selectedHeaders%>">
         <%
               for (int k = 0; k < sheetHeaders.size(); k++)
                       int m = 0;
                       int val = 0;
                       boolean isSelected = false;
                       if(selectedValues.size() != 0)
                            while((!isSelected) && (m < selectedValues.size()))
                                     String valueStr = selectedValues.get(m).toString();
                                      val = Integer.parseInt(valueStr);
                                     // logger.debug("THE USER SELCTED VALUE : " +val);
                                       // logger.debug("THE LOOP value k: " +k);
                                       if (val == k)
                                            isSelected = true;
                                        else
                                            m++;
                                    } //end of while
                                    logger.debug("THE BOOLEAN VALUE IS: "+isSelected);
                                    %>
    //this line is the one where all my confusion is
    <OPTION <% if(isSelected) {%> selected <%}%> value = '<%=k%>'><%=sheetHeaders.get(k)%></OPTION>
                            <% } //end of if(isSelectedValues.size())
                            else { %>
                                 <OPTION <% if (j == k) { %> selected <%}%> value="<%=k%>" ><%=sheetHeaders.get(k)%></OPTION>
                           <% } //end of else (selectedValues == 0)
                            } //end of for(k)
    [END HTML]

    I got the solution
    Thanx for your time
    have a nice day

  • Sequence.nextval doubles the returned value with Execute Statement (F9)

    There appears to be a quirk with sequences in Raptor.
    Has anyone noticed that depending on how you execute this sql (SELECT MYSEQ.NEXTVAL FROM DUAL;) the value returned is either the correct nextval or double what you expected?
    For example, MYSEQ is a simple sequence which increments by 1. If you Execute Statement (F9) then the value returned jumps by 2 instead of 1. If you Run Script (F5) then the value returns jumps by 1, as expected.
    If MYSEQ is changed to increment by 2. The when you Execute Statement (F9) then the value returned jumps by 4 instead of 2. If you Run Script (F5) then the value returns jumps by 2, as expected. No matter what you put for the increment by Execute Statement (F9) always doubles it.
    It always seems to be double. Executing the same scenario in TOAD always returns the correct value (i.e. properly increments).
    Is the query being executed multiple times with Execute Statement? Why is this happening?

    While there is no guarantee from Oracle that sequences produce sequential numbers, this is obviously a case where SQL Developer is running the select statement twice.
    The issue is that queries can actually change information, rather than just retrieve data from the database.
    The following package is a test case:
    create or replace package test_query is
    function get_next_count return number;
    end;
    create or replace package body test_query is
    cnt number := 0;
    function get_next_count return number is
    begin
    cnt := cnt + 1;
    return cnt;
    end;
    end;
    select test_query.get_next_count from dual;
    This query, which should return 1, 2, 3, 4, etc actually returns 2, 4, 6, 8, etc, because SQL Developer is running the select twice.

  • How to bind a user selected value to a view object bind variable?

    Hi
    I have two pages in ADF BC application. In the first page ,i will give a drop down menu to user which displays all the table names in my databse.
    when the user selects a table and goes to the second page..he should be given a menu or a check list of all the columns in the user selected table....
    to display the columns i have used the query
    Select COLUMN_NAME from user_tab_columns where table_name = : table_name in the view object.
    now how to bind the user selected table value in the first page to the table_name bind variable in view object ?
    thanks
    swathi.

    Hi,
    depends on how the select box is implemented. With ADF and ADF Faces, the default value selection is the list index. In a value change listener you could look up the selected value from the underlying iterator. Store this value e.g. in a session attribute and point the NDValue of the ExecuteWithParams operation to #{sessionScope.your_attribute}
    Frank

  • Duplication in SELECT query with XML column

    Oracle 11gR1 RHEL 5
    Hi all,
    I am having a small problem. I am selecting some rows from an XML column with the following query and for each row I get a new set of columns that are displayed.
    select extractvalue(old_row,'/xml/WORK_ITEM_RID') WORK_ITEM_RID,
    extractvalue(old_row,'/xml/PARENT_RID') PARENT_RID,
    extractvalue(old_row,'/xml/ASSIGNED_TO') ASSIGNED_TO
    from audit_trail
    where audit_trail_rid = 177147;
    So instead of getting this:
    WORK_ITEM_RID PARENT_RID ASSIGNED_TO
    4045 4044 2930
    I get:
    WORK_ITEM_RID PARENT_RID ASSIGNED_TO
    4045
    WORK_ITEM_RID PARENT_RID ASSIGNED_TO
    4044
    WORK_ITEM_RID PARENT_RID ASSIGNED_TO
    2930
    How can I get rid of this?
    Thanks.
    Edited by: JrOraDBA on Feb 12, 2010 10:14 AM

    Here is what I got so far...but it keeps telling me that I am missing right parenthesis (ORA-00907) at the assigned_date TO_CHAR(....
    insert into iswrnew.WORK_ITEM (WORK_ITEM_RID, PARENT_RID, ASSIGNED_TO, WORK_ITEM_TYPE_RID, FPRC_APPLICATION_RID, REQUEST_RID, ASSIGNED_DATE, EST_START_DATE, EST_COMPLETION_DATE, SHORT_DESCRIPTION, ASSIGNED_BY, COMPLETED, COMPLETION_DATE, LONG_DESCRIPTION)
    SELECT t1.work_item_rid, t1.parent_rid, t1.assigned_to, t1.work_item_type_rid, t1.fprc_application_rid, t1.request_rid, t1.assigned_date, t1.est_start_date, t1.est_completion_date, t1.short_description, t1.assigned_by, t1.completed, t1.completion_date, t1.long_description
      FROM fprchr.audit_trail,
           XMLTable('/xml'
                    PASSING fprchr.audit_trail.old_row
                    COLUMNS
                    work_item_rid                  NUMBER PATH 'WORK_ITEM_RID',
                    parent_rid                     NUMBER PATH 'PARENT_RID',
                    assigned_to                 NUMBER PATH 'ASSIGNED_TO',
                    work_item_type_rid            NUMBER PATH 'WORK_ITEM_TYPE_RID',
                    fprc_application_rid        NUMBER PATH 'FPRC_APPLICATION_RID',
                    request_rid                    NUMBER PATH    'REQUEST_RID',
                    *assigned_date                TO_CHAR(assigned_date,'YYYY-MM-DD HH24:MI:SS') PATH    'ASSIGNED_DATE',*
                    est_start_date                TO_CHAR(est_start_date,'YYYY-MM-DD HH24:MI:SS') PATH    'EST_START_DATE',
                    est_completion_date          TO_CHAR(est_completion_date,'YYYY-MM-DD HH24:MI:SS') PATH    'EST_COMPLETION_DATE',
                    short_description            VARCHAR2(50) PATH 'SHORT_DESCRIPTION',
                    assigned_by                    NUMBER PATH    'ASSIGNED_BY',
                    completed                    VARCHAR2(1) PATH 'COMPLETED',
                    completion_date                TO_CHAR(completion_date,'YYYY-MM-DD HH24:MI:SS') PATH 'COMPLETION_DATE',
                    long_description            VARCHAR2(4000) PATH 'LONG_DESCRIPTION') t1
    WHERE audit_trail_rid = 177147;I think I'm missing something obvious but I just cannot see it. I need a fresh pair of eyes to look at this :)
    Thanks for all your help

  • Matching a filter value with mutiple fact columns

    Hello,
    I have been given following requirement to implement in OBIEE dashboard. There is a dimension table which stores Sales Rep IDs and their names. Fact table stores the Sales opportunities identified by these sales reps. Now they can work on the opportunity in any role...say as consultant or primary rep or some other role. Lets call it Role1, Role2 and Role3. The requirement is when user selects a Sales rep name in the filter; the dashboard should show all those opportunities on which he worked in any of the capacities i.e.Role1 or 2 or 3.
    My Fact table has following columns
    Role1_Sales_Rep_ID
    Role2_Sales_Rep_ID
    Role3_Sales_Rep_ID
    The Dimension has
    Sales_Rep_ID
    Sales_rep_Name
    I tries putting following condition ion physical layer join
    Dim.Sales_Rep_ID = fact.Role1_Sales_Rep_ID
    Or Dim.Sales_Rep_ID = fact.Role2_Sales_Rep_ID
    Or Dim.Sales_Rep_ID = fact.Role3_Sales_Rep_ID
    but the RPD gives an error saying that Dim.Sale_Rep_ID used more than once. Please help me solve this scenarion or please suggest any alternate solution.
    Thanks,
    Vivek.

    Hi vivek,
    but the RPD gives an error saying that Dim.Sale_Rep_ID used more than once. Please help me solve this scenarion or please suggest any alternate solution. Ya the joins should be established correctly to achieve your scenerio,i.e here oneto many joins sud be established for example
    take the three fact tables role1,role2,role3 and the dimension table first click the dimension table and join it to role1 so it becomes 1:N the same way again click dimension table and click the role2 and repeat the process then you can achieve what you want.
    Another simpler work around is take all the fact tables into single folder/table and the important columns for your requirment.Then now 1 fact and 1 dimension so its simple for you.
    Hope it helps you.
    Best Wishes,
    Kranthi.

  • Select Query with Like statement

    Hi every one,
    My requirement is, user will enter part of the employee name.I need to search the employees whose name contains the word entered by the user.For that I have used the following query.Functionality wise,It is working fine.But its taking more time.Please kindly advise me how can I improve the performance.
    concatenate '%'  user_input  '%'   into v_user_inp_pattern .
    Select emp_name from <Database table>  into  table <internal table> where emp_name like v_user_inp_pattern.
    Thanks,
    Selva

    Hi Selva,
    if that is your only where condition...
    Select emp_name from <Database table> into table <internal table> where emp_name like v_user_inp_pattern.
    depending on db... and indexes you have to do one of this 4 options:
    a big range scan (with client, if the table is client dependent) -> expensive
    a full table scan
    a full index scan
    a fast full index scan
    the last one would probably be the fastest... and only possible if you are
    running on ORACLE and your index contains emp_name.
    If you could change your wild card to:
    concatenate user_input '%' into v_user_inp_pattern .
    it would be different... and faster solutions would become possible.
    Kind regards,
    Hermann
    However all options have to touch ALL records... (in index blocks and or table blocks)

  • Waiting in XI and matching an outgoing value with an incoming response

    Does anyone know how to "wait" in a normal XI interface?  I need to send data to a bank and retain the sum value.  Then wait for them to respond and see if the values match.  If they match I do nothing - If they don't I send an email.
    Thanks!
    Andrew

    hi,
    many ways to achieve that:
    - you can send a message with a BPM (and wait for correlated value)
    but it involves the use of a BPM + don't know how long you need to wait
    - with the first flow you can also store the value of the sum + some identifier
    and just check if with the bank's reponse with another flow
    faster as no BPM involved
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Displaying user selected value during PFR() in th same page again.

    Hi,
    I have search/Results both in the same Page.
    Hence initially Results(Advance table will be empty).
    Once user provides search conditions and clicks 'Go'.I perform VO query which is associated with the Advanced Table.Hence Results get populated automatically in the table.
    I need to display one of the search condition values as the Advanced Table header.Ex :Currency chosen (USD,Euro,INR etc)
    My Issue is
    I receive input conditions in the PFR().
    Once I query the VO i assume that OAF invokes PR() for the page.
    How can I pass the Currency unit received in PFR() to PR() to programmetically edit the Header of Advanced Table.
    Thanks,
    Gowtam.

    Gowtam,
    Set the values which you want to show as header as parameters when you are in PFR handling the search Go button request. In PR make sure to set the set the text for the header bean dynamically at each execution. If you get the parameter values, set them as header text as required and in case the parameters are null i.e. when you come to page for the 1st time, put your default text or null as required.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • InfoPath will generate a new sequential value (Unique ID) based upon a user-selected value

    I am trying to create an Infotpath form that is submitted to SharePoint and I have it working but not the way I would like it to work. Any help with much needed detail would be greatly appreciated due to the fact I am still a "newbie".
    I have two fields one called Ref Number which is a read only text box to the users and another field called Own Info which is a Drop-Down list. Bascially I would like it to where when the user clicks the submit button the Ref Number will get incremented.
    I have the form incrementing with leading zeros but every time the submit button is clicked and I would like it to be determined by the Own Info and not like this : concat(Own_Info , "-", substring("000", 1, 4 - string-length(max(ID) +
    1)), max(ID) + 1).
    Example:
    1.Own Info: D652 Ref Number : D652-0001
    2.Own Info: D652 Ref Number: D652-0002
    3.Own Info: D653 Ref Number : D653-0001
    4.Own Info: D653 Ref Number : D653-0002
    5.Own Info: D652 Ref Number : D652-0003
    So the Ref Number increments based off of the Own Info which will be about 25 different options. Again any help with much needed detail would be greatly appreciated. Thanks in advance!!!! 

    I have also done something like this using a list for the next reference number:
    Set up a list with the Own Info number and Next Ref Number
    Populate the list with the possible Own Info Numbers and the next available ref number for each one
    Own Info | Next Ref Number
    D652      |    0004
    D653      |    0003
    Use a workflow when the submit button is clicked that looks up the Own Info number from your custom list and gets the next ref number that corresponds to it
    concatenate the two and use for the combined number
    use the same workflow to update the next ref number
    One thing to be wary of when you set something up like this, is that if the workflow will run often (the form is being used and submitted heavily) a race condition can exist where two workflows might try to update the same Own Info->Next Ref Number. This
    is probably not the solution to use if this is your scenario.
    Marlene Lanphier MCTS

  • Parameter weirdness: Report not using user selected parameter value

    I am writing my first report and cannot for the life of me figure out how to deal with this issue.
    When I call a report and pass the parameters in, it appears that the user cannot then change the parameter values and run the report again even though the parameters are displayed. When user hits run report, the values revert to what was passed in by original
    call.
    Scenario
    Report B has Parameter Period : Month, Quarter, Year displayed in a drop down list.
    Report A calls Report B and passes it the parameter: Quarter.
    Report B loads. User now changes parameter to Year via the drop down parameter list and hits Run Report.
    Instead of loading the report with user selected value (Year), it reverts back to the parameter it was called with, Quarter.
    I have tried changing the refresh option on the parameter to always, but no joy.
    The only way that seems to work is to put textboxes on the report to change the parameter.
    How can I stop this behaviour, and use the users new selection. 
    This should be really straight forward, and its driving me nuts that its not allowing the user to change the parameters
    Any help would be much appreciated.
    Thanks Jon

    Hi Jon,
    Did you use SSRS 2012? Based on my test, the issue is occurred in SSRS 2012 Business Intelligence Development Studio (BIDS). When we deploy the report to report server, it will disappear.
    In this situation, we can add another duplicate parameter to work around this issue. Please add two parameters in the report, and then hide one of the parameter. We can pass the parameter value to the hide parameter. If we want to select other values, we
    can change the visible parameter values.
    Alternatively, I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/. If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the
    level of service provided.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How do I get a  value of a  cell when user selects in a JTable?

    Hi everybody,
    I need some help in order to complete my task. I 've a JTable. When user selects any particular column . I should able to get user selected value. I added a MouseListener to the table. And I 've written the following code - in mousePressed()
    JTable table = (JTable) e.getSource();
    iint col =JTablePartNumbers.getInstance().getSelectedColumn();
    int row = JTablePartNumbers.getInstance().getSelectedRow();
    System.out.println("row col value" +JTableModelPartNumbers.getInstance().getValueAt(row,col));
    I'm getting col and row value but when I'm using TableModel.getValue(row,col) - it is giving me null value.
    And my getValueAt() method is defined as
    public Object getValueAt( int nRow, int nCol )
         System.out.println("the nRow" nRow "And nCol " nCol "And row count" + getRowCount());
         int rowCount = getRowCount();
         System.out.println("the row count" +rowCount);
    if ( ( nRow < 0 ) || ( nRow >= getRowCount() ))
         return null;
              // Taking
              StartNewRevisedGenericSGMLFragmentsModel row = (StartNewRevisedGenericSGMLFragmentsModel) partNumberDetails.elementAt( nRow );
         //     System.out.println("row value" nRow "Col value" +nCol);
              switch ( nCol )
                   case 0:
                   return row.getParNo();                               case 1:
                        return row.getRev(); // gets model data
                   case 2:
                        return row.getDoneDate( );// gets revision data
              Vector rowVec = (Vector) partNumberDetails.get(nRow);
         return (String) rowVec.get(nCol);
    so please help me out resolving this problem.
    Thanks in advance
    purnima

    try calling jtable.getSelectionModel().addListSelectionListener(...)
    by the way, any good design of a generic UI Table must have a feature to do what you're talking about in an easy way. If it didn't, why would anyone use it?

Maybe you are looking for

  • Adobe premiere elements serious msg appears

    Everytime i click in to start the programme adobe premeire elements it comes up with this message : Sorry, a serious error has occurred that requires Adobe Premiere Elements to shut down. We will attempt to save your current project." Can someone ple

  • Error while reversing Material Invoice document.

    when i am trying to Reverse the Material Invoice receipt in MIRO I am getting the following error "Balance not zero: 757.86-  debits: 21,171.86  credits: 20,414.00" Message no. M8534 The actual situation is : The total Invoice amount is Rs 20414 Mate

  • How do I re-connect to a drive on my network?

    We have 2 Macs connected through a router. I access drives from my G4 to our G5 all the time - but this morning I accidentally "ejected" one of the G5 drives I was connected to, and now I can't re-connect. When I use the normal routine (Go -> Connect

  • Creating Editable PDF from Form Created in LiveCycle

    I believe the anwser is no, but I want to confirm. If I create a pdf form in LiveCycle Designer, can I load and populate that pdf form with a different library such as iText or do I have to use continue to use the LiveCycle PDF Services. (2.5) Thanks

  • Unable to scan and email to hotmail

    yesterday i did a disk clean up not sure if this is related to this or not. i always scan, save and email to hotmail. Today it i an scan but when i try to send to hotmail address it says error unable to receive or send messages to hotmail. What is wr