Routine does not get its value from: quantity* net price

Dear all,
I have a problem with routine. Could you suggest me any solution for it.
If quantity =1 there is no problem. But if quantity different than 1 routine still calculates as quantity 1.
What migh be problem here?
I have routine as:xkwert = xworkk - xworki.
I assigned it YODI condition.
To give an example: xkwert = xworkk - xworki.
NETW                                              200,00
OWST                         16,00
     Sub Total                               216,00 = XWORKK
YOFI                         100,00 =XWORKI
YODI                                                   8,00 =XKWERT*Here routine calculates as XWORKK=108 and XWORKI= 100.
How can  I fix it?
Kind Regards,
Edited by: Fsmehmet on May 13, 2011 7:02 AM

Dear Amit,
My routine: xkwert = xworkk - xworki. And it works when quantity is 1.
But when quantity is different then one, calclation is wrong.
For example;
Quantity=2 Net Price=100 And NETW=2100=200*
OWST 16,00
Sub Total 216,00 = XWORKK
YOFI 100,00 =XWORKI
YODI 8,00 =XKWERT*Here routine calculates as XWORKK=108 and XWORKI= 100.
Regards,

Similar Messages

  • Solution Manager does not get service definitions from SAP in self diagnosi

    Hi,
    In our production solution manager transaction solution_manager, self diagnosis we are getting a warning message on our development solution manager. 
    Solution Manager XXX does not get service definitions from SAP.
    The production Solution Manager is the master in SDCCN for the test Solution Manager.  In the test Solution Manager, the scheduled task REFRESH SERVICE DEFINITIONS has task System ID of O01.  It is pointed to RFC destination SDCC_OSS, not the production Solution Manager system.
    It gives the same warning if I point the task to the production Solution Manager system.
    Has anyone seen this before?  Any ideas?
    Best regards,
    Russ

    Hi,
      i guess have you activated SDCCN from your solution manager system too?
    if not please activate. since that setup helps solman retrive the service definitions used in SDCCN from SAP (SAPOSS).so this ultimately allows you to set solution manager system as Master, so all the satellite system get the service definition from solman and do not need a direct SAPOSS connection.
    and Please check this Note 1143775 - SAP service content update
    the wiki for trouble shoot ["EarlyWatch Alert is Red Flagged - how to resolve" |http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=228262728]
    please check.
    Thanks,
    Jansi

  • I can not get link-value  from af:tree.

    Hello.
    I use jdeveloper 10g.
    I can not get link-value from tree.
    I use following code:
    <f:facet name="nodeStamp">
    <h:panelGroup binding="#{backing_dialogDic_dic_ETS.panelGroup1}"
    id="panelGroup1">
    <h:outputText value="#{item.vidNum} #{item.vidName}"
    binding="#{backing_dialogDic_dic_ETS.outputText1}"
    id="outputText1"/>
    <af:commandLink
    binding="#{backing_dialogDic_dic_ETS.commandLink2}"
    id="commandLink2"
    action="#{backing_dialogDic_dic_ETS.returnObject}">
    <af:setActionListener from="#{item.idVid}"
    to="#{processScope.ETSId}"/>
    <af:objectImage source="/images/icons/10.gif"
    shortDesc="Выбрать"
    binding="#{backing_dialogDic_dic_ETS.objectImage2}"
    id="objectImage2"/>
    </af:commandLink>
    </h:panelGroup>
    </f:facet>
    </af:tree>
    //in java bean:
    public String return_Object() {
    Object ob = JSFUtils.getManagedBeanValue("processScope.ETSId");
    System.out.println(o);
    return null;
    In console I see null.
    How I get this value???
    I can get this value if i use treeTable instead of tree.
    Thx, Dema.

    Hi,
    not that I think it matters, but the processScope is not a managed bean but a memory scope. So if
    JSFUtils.getManagedBeanValue("processScope.ETSId");
    assumes a managed bean then this may be incorrect as most likely there exist no managed bean with this name. You should be able to access the process scope from AdfFacesContext.getProcessScope(), which then returns a Map, which you call get("ETSId") on
    Frank

  • Could not getting field values from form

    hi,
    hellow, can you help me for solving the bellow problem
    i have form its enctype attribute of form tag is setted as multipart/form-data. when i am submiting this form, i call a request.getParameter(); in the submitting jsp file. But for any controls such as text,checkbox,select box etc could not get its corresponding value.

    Its obvious why its not picking up the change in the second action.
    Lets see...
    Here is your case I
    You get the populated form which is also put in the request with updated value from the JSP....
    (1)
    protected Forward updateGoalObjective(GoalsForm form)
    form.setGoalId(44); //int field set to 44
    return new Forward("success");
    You set one of the fields some other value....in one but how will the second action know about it???
    You try to execute the second action and the action grabs the form from the request again. This is the original form submitted by the JSP so you still see that value...
    You will have to pass in the customized or processed form for the form to be able to get it...
    protected Forward showGoal(GoalsForm form)
    System.out.println(form.getGoalId()); //prints 68
    return new Forward("success");
    In your second case you create a new form...why would you want to do that if you have a form value being set in JSP??
    The answer is you should be doing something Like this:
    * @jpf:action form="goalsForm"
    * @jpf:forward name="success" path="showGoal.do"
    protected Forward updateGoalObjective(GoalsForm form)
    //other code
    form.setGoalId(44); //int field set to 44
    return new Forward("success", form);
    * @jpf:action form="goalsForm"
    * @jpf:forward name="success" path="Goal.jsp"
    protected Forward showGoal(GoalsForm form)
    System.out.println(form.getGoalId()); //prints 68
    return new Forward("success");
    }

  • Java does not get file list from shared folder in another server.

    Hi,
    I'm using java 1.4.2.16,
    Command below does not get file list.
    import java.io.;*..
    File file = new File("\\\\10.242.22.28\\SapMII");
    File[] files = file.listFiles();
    SapMII folder is Everyone full Control permission.
    How can i solve this problem?
    Thanks.

    Could you please post replies in a more helpful way? Just informing me that it was an NPE doesn't really tell me anything. Post the stacktrace (Exception#printStackTrace()). And the listFile() methods API has this to say:
    Returns null if this abstract pathname does not denote a directory, or if an I/O error occurs.I'm able to run this sample code easily:
    import java.io.File;
    public class TestFileList {
         public static void main(String[] args) {
              File file = new File("\\\\10.40.55.33\\shared");
              File [] files = file.listFiles();
              for(File currentFile: files )
                   System.out.println(currentFile.getName());
    }

  • Applet does not get client certificate from browser (Firefox, IE7)

    I'm writing a web service which runs Tomcat through Apache. One critical requirement is that the service be able to invoke certain device drivers on the end user's machine. Fortunately, there is a Java API for this, so this requirement can be fulfilled using an applet.
    Here's the problem. This is a B2B application, so we're using SSL and requiring client authentication. I'm no web security guru, but I managed to get SSL set up through Apache (with a self-signed certificate for now; we'll get a real one from a real CA when we're ready to go to production). I also managed to set up client authentication by creating my own CA and generating a client certificate, which I then copied to my test client (Win XPSP2) and imported into both Firefox (2.0.0.15) and IE (6.0.2900). The applet is signed with a real certificate, and that causes no problems. And all of the pages for my web service work as expected.
    All except one. The page which is supposed to load the applet pops a dialog stating 'Identification required. Please select certificate to be used for authentication', and presents a list of zero certificates.
    Actually, I get this dialog in Firefox on my XPSP2 box, and also when I test on a Vista Home Premium box running IE 7.0.6000. Puzzlingly, this behavior does NOT occur on my XPSP2 box when running through IE 6.0. It seems that with XPSP2 and IE 6.0, the JVM can manage to obtain the required client certificate from the browser and pass it along to Apache, but the JVM can't do this when running in Firefox or in IE 7.0 on Vista.
    I have gone to the Java Control Panel and verified that the 'Use certificates and keys in browser keystore' option is selected on both boxes.
    I've done a fair amount of research for this (including in this forum) and see that this appears to be a chronic difficulty with applets. What makes it worse is that I don't think I can use the standard workaround, which is to download the applet from a different host/virtual host, because the applet needs to communicate with the web service. Since we have the additional layer of Tomcat container-managed user authentication, the applet needs to be communicating with the server using the same session token as everything else.
    So at this point, I'm stuck. Does anyone know a solution to this problem? Two thoughts (I'm reaching at straws here):
    1) I have the certificate imported in both Firefox and IE as a 'personal' certificate. Is there someplace else I can put it so the JVM will know how to find it? A rather old thread in this forum mentioned something about setting properties in the Java Control Panel, but I see no place in the JCP to specify such properties, so I'm guessing that solution is no longer operative.
    2) I'm using a trick I found on the internet to make the applet load cleanly with both Firefox and IE, namely, I'm using the <OBJECT> tag to specify the applet class and codebase for IE, and then using <COMMENT><EMBED ... /></COMMENT> within the <OBJECT> declaration to specify the information for Firefox. Is there some other way of doing the markup that will give the JVM a hint that it should get a certificate from the browser?
    BTW . . . I would hate to drop support for Firefox, but if someone has an IE-only solution, I'll take it. Unfortunately, I reckon a Firefox-only solution would not fly.
    Thanks all.

    My applet is also signed by a valid certificate. The question of whether the applet is signed/self-signed/unsigned >isn't an issue --- I just wanted you to make sure the Applet runs because it is a know valid Java2 Applet that is 100% signed properly and verified to run.
    This eliminates the possibility that it is a JVM issue. However after reading your message further I am afraid
    it is not relevant to your issue.
    due to the client authentication, my browser (Firefox, IE7) refuses to even download the applet.
    I went to your site, and I can see your applet in both Firefox and IE6. However, I don't believe your site is set up >quite like mine, because it appears I can run your applet whether I have imported your X509 certificate or not. What I >did was:If that is true we are all dead :) No I think you just missed the cert in the IE databse. It doesn't have to be in the
    Applet database to function. Surprise!
    Check your IE/tools/internet options/content tab/certificates/trusted root certification authorities.
    I then opened the Java control panel and verified that the certificate isn't listed there, either. So unless the certificate >is being cached/read from some other location (which could be, this certificate stuff is largely black magic to me), >then your server isn't requiring client authentication, either accidentally or by design.No HyperView is a valid java2 Applet and actually writes to a file "hyperview.dat" though it is probably empty.
    If you click on a component in the view and then on the view and type "dumpgobs" it shoud write out some data about the current graphics objects so you can see it has complete read/write access..
    Further it opens up a complete NIO server ands starts listening for connections on a random port
    (Echoed in your java console) You can connect to it with telnet and watch impressive ping messages all day :)
    This all goes back to a few years BTW back before there was a plugin and there was only Netscape & IE.
    There are actually 2 certificate databases and what loads where depends on which type of cert you are using. Now self signed or not doesn't matter but what does matter is the type of certificate. IE: is it RSA/DSA/Sha1
    etc. The Netscape DB was a Berkley DB and MS used whatever they use. The Cert is a DSA/Sha1 cert
    which I like the best ATM as it (X fingers it stays so) always has worked.
    Sadly that tidbit doesn't help you either I am afraid.
    What I'm trying to do is require client authentication through Apache by including the following markup in a virtual >host definition:
    SSLCACertificateFile D:/Certificates/ca.crt
    SSLVerifyClient require
    SSLVerifyDepth 1You got me there I avoid markup at all costs and only code in C java and assembler :)
    Now unless I am wrong I think you are saying that you want the Applet to push the certificate to the server
    automatically and I don't think this happens. Least I have never heard of this happening from an Applet automatically.
    On my client machine, I have a certificate which was generated using OpenSSL and the ca.crt file listed. Testing >shows that the server is requiring a certificate from the client, and the web browser is always providing it.
    The problem is that when the browser fires up the Java plugin to run an applet, there is not sufficient communication >between the browser and the plugin so that the plugin can obtain the certificate from the browser and provide it to >the server.
    So the server refuses to send the applet bytecode to the JVM, and we're stuck.In terms of implementation ease I think you may have the cart before the horse because I think it would be far easier to run an Applet in the first place to do the authentication, and then send, for example, a jar file to bootstrap and run
    (or some classes) in the event the connection is valid. Then again one never knows it all and there may be some classes which enables the plugin as you wish. I have never heard of this being done with the plugin the way you suggest.
    I am thinking maybe there is another method of doing this I do not know.
    Did you try pushing the cert via JavaScript/LIveConnect?? That way it could run before the Applet and do the authentication.
    Maybe someone else has other ideas; did you try the security forum??
    Sorry but I am afraid that is not much help.
    I did snarf this tidbit which may have some relevance
    The current fix for this bug in Mantis and 1.4.1_02 is using JSSE API, Here are the step:
    In Java control panel, Advanced tab -> Java Runtime Parameters, specify:
    -Djavax.net.ssl.keyStore=<name and path to client keystore file>
    -Djavax.net.ssl.keyStorePassword=<password to access this client keystore file>
    If it is a PKCS12 format keystore, specify:
    -Djavax.net.ssl.keyStoreType=PKCS12
    In our future JRE release 1.5, we will create our own client authentication keystore file for JPI and use that for client authentication, for detail info, please see RFE 4797512.
    Dennis
    Posted Date : 2005-07-28 19:55:50.0Good Luck!
    Sincerely:
    (T)
    Edited by: tswain on 23-Jul-2008 10:07 AM

  • IVew does not gets personal no from MSS TeamViewer.

    Hi Experts,
    I have a page in which I have Teamviewer and another iView. The first time the page loads the pesonal number is fetched from the teamviewer and passed to the iView but when i click the second selection (employee) next time from the teamViewer, nothing changes, the data remains the same in the iView. I have figured out that first time the page loads, the personal no is passed to the iView from the teamviewer, but on every subsequent selection, my method (below) does not return the personal no of the employee that has been selected from the teamviewer.
    protected String getPerNo() {
    String perno = null;
    try
    CKey cKey = CKey.retrieve(this, request, "P ");
    request.getServletRequest().setAttribute("cKey", cKey);
    perno = cKey.getObjectID();
    temp = perNo;
    cpCvBean.setTemp(temp);
    if(perno == null)
    throw new CpCvException("Unable to retrieve Personnel Number from Teamviewer");
    catch(CpCvException me)
    message = me.getMessage();
    processError(message, me);
    catch(Exception e)
    message = e.getMessage();
    processError(message, e);
    return perno;
    The codes are as following :
    component----
    import com.sapportals.htmlb.page.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.resource.IResource;
    import com.sap.pct.hcm.orgmanagementeventing.CKey;
    import com.sapportals.portal.prt.session.*;
    import java.math.*;
    import java.util.*;
    import java.util.Calendar;
    import com.sapportals.portal.prt.service.jco.IJCOClientService;
    import com.sap.mw.jco.JCO;
    import com.sapportals.portal.prt.service.jco.IJCOClientPoolEntry;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.IRepository;
    public class CpCv extends PageProcessorComponent {
         public DynPage getPage(){
              return new CpCvDynPage();
         public static class CpCvDynPage extends JSPDynPage{
              private CpCvBean cpCvBean = null;
              private CpCvErrorBean cpCvErrorBean = null;
              protected IPortalComponentRequest request;
              protected IPortalComponentSession session;
              protected IPortalComponentContext context;
              protected IPortalComponentProfile profile;
              protected String message = "";
              protected String perNo = "No Data";
              protected String userId;
              protected String sapSystem;
              private final static int INITIAL_STATE = 0;   
              private final static int OUTPUT_STATE = 1;
              private final static int ERROR_STATE = 2; 
              private int state = INITIAL_STATE;
              // variabler for test
              private boolean gender=true;
              JCO.Function function = null;
              protected String temp = "saurabh";
              public void doInitialization(){
                   System.out.println("cpCv - Code is rendered: " + Calendar.getInstance().getTime().toString());
                   state = INITIAL_STATE;
                   getPortalParams();
                   perNo = getPerNo();
                   cpCvBean = new CpCvBean();
                   cpCvErrorBean = new CpCvErrorBean();
                   session.putValue("cpCvBean", cpCvBean);
                   session.putValue("cpCvErrorBean", cpCvErrorBean);
                   // fill your bean with data here...
                   connect();
              }// end doInitialization
              protected void getPortalParams() {
                   request = (IPortalComponentRequest) this.getRequest();          
                   session = request.getComponentSession();
                   context = request.getComponentContext();
                   if (request.getParameter("PERNR") != null) {
                        perNo = request.getParameter("PERNR");
                   profile = context.getProfile();
                   IUserContext userContext = request.getUser();
                   userId = userContext.getUserId();
                   sapSystem = profile.getProperty("SystemId");
                   System.out.println("cpCv - Sapsystem is: " + sapSystem);
                   System.out.println("cpCv - For signum " + userId + " we got personal number " + perNo);
              }// end getPortaParams
              protected String getPerNo() {
                   String perno = null;
                   try
                        CKey cKey = CKey.retrieve(this, request, "P ");
                        request.getServletRequest().setAttribute("cKey", cKey);
                        perno = cKey.getObjectID();
                        temp = perNo;
                        cpCvBean.setTemp(temp);
                        if(perno == null)
                             throw new CpCvException("Unable to retrieve Personnel Number from Teamviewer");
                   catch(CpCvException me)
                        message = me.getMessage();
                        processError(message, me);
                   catch(Exception e)
                        message = e.getMessage();
                        processError(message, e);
                   return perno;
              protected void connect() {
                   getPortalParams();
          //-----------data fetched from backend system
              }// end processError
         }// end class cpCvDynPage
    }// end class cpCv
    jsp----
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <%@ page import="com.sapportals.htmlb.*" %>
    <%@ page import="com.sapportals.htmlb.enum.*" %>
    <%@ page import="com.saurabh.pct.hcm.CpCvBean" %>
    <%@ page import="com.sapportals.htmlb.htmlcontainer.*"%>
    <jsp:useBean id="cpCvBean" scope="session" class="com.saurabh.pct.hcm.CpCvBean" />
    <hbj:content id="cvContext" >
         <hbj:page title="PageTitle">
              <%
                   // targetURL is the URL to this page, at this position in the portal object model
                   String targetURL = componentRequest.createComponentURL(componentRequest.getNode(), null);
                   // build unique java script function name - this way we never collide with anybody else...
                   String jsFunctionName = "ecfForm_" + componentRequest.getComponentContext().getValue("COMPONENT_ID");
              %>
              <%
                   // clearButtonId holds the ID of the clear Button
                   String clearButtonId = null;
                out.println("perno1 = " + cpCvBean.perNo);
              %>     
              <hbj:form id="cvFormId" >
                   <%
                   FormLayout fl01 = new FormLayout();
                   cvFormId.addComponent(fl01);
                   fl01.setWidth("600px");
                   fl01.setDebugMode(false);
                   FormLayoutRow row01 = fl01.addRow();
                   row01.setPaddingTop("10px");
                   row01.setPaddingBottom("5px");
                   Image i011 = new Image(cpCvBean.getLogoURL(), "Picture logo_116px.gif");
                   i011.setWidth("118px");
                   i011.setHeight("26px");
                   i011.setAlt("logo");
                   TextView tv011 = new TextView ("tv011");
                   tv011.setEncode(false);
                   tv011.setText("<font size="+2"></font>");
                   FormLayoutCell cell011 = fl01.addComponent(1,1, i011);
                   cell011.setHorizontalAlignment(CellHAlign.LEFT);
                   cell011.setPaddingLeft("5px");
                   FormLayoutCell cell012 = fl01.addComponent(1,2, tv011);
                   cell012.setHorizontalAlignment(CellHAlign.RIGHT);
                   FormLayoutRow row02 = fl01.addRow();
                   row02.setPaddingTop("5px");
                   row02.setPaddingBottom("30px");
                   TextView tv012 = new TextView ("tv012");
                   tv012.setEncode(false);
                   tv012.setText("<font size="+1"><b>Details</b></font>");
                   FormLayoutCell cell021 = fl01.addComponent(2,2, tv012);
                   cell021.setHorizontalAlignment(CellHAlign.RIGHT);
                   FormLayout fl0 = new FormLayout();
                   cvFormId.addComponent(fl0);
                   fl0.setWidth("600px");
                   fl0.setDebugMode(false);
                   FormLayoutRow row001 = fl0.addRow();
                   FormLayout fl15 = new FormLayout();
                   fl15.setWidth("110px");
                   fl15.setDebugMode(false);
                   FormLayoutRow row151 = fl15.addRow();
                   //row151.setPaddingTop("10px");
                   //row151.setPaddingBottom("5px");
              </hbj:form>
              <script language="JavaScript">
                   EPCM.subscribeEvent( "urn:com.sap.pct.hcm.orgmanagement:CurrentObject", "objectChanged", <%=jsFunctionName%> );
                       function <%=jsFunctionName%> ( evt ) {
                        document.all.<%=clearButtonId%>.click();
              </script>
         </hbj:page>
    </hbj:content>
    portalapp.xml----
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="ClassLoadingPolicy" value="5.0"/>
        <property name="DeploymentPolicy" value="5.0"/>
        <property name="AuthenticationPolicy" value="5.0"/>
        <property name="ServicesReference" value="htmlb, jco, jcoclient, landscape"/>
        <property name="SharingReference" value="com.sap.pct.hcm.orgmanagementeventing, com.sap.pct.hcm.hcm_util"/>
      </application-config>
      <components>
        <component name="default">
          <component-config>
            <property name="ClassName" value="com.saurabh.pct.hcm.CpCv"/>
            <property name="SecurityZone" value="com.sap.portal.ep50/ep50_safety"/>
          </component-config>
          <component-profile>
            <property name="FMQualMp" value="Z_HR_GET_QUAL_MP_CV"/>
            <property name="FMPhoto" value="ZHRWPC_RFC_EP_READ_PHOTO_URI"/>
            <property name="FMPersData" value="Z_H_MP_READ_INFTY_CV"/>
            <property name="SystemId" value="SAP_R3_HumanResources"/>
            <property name="FMQual" value="Z_HR_GET_QUAL_NEW"/>
            <property name="QualGroup" value="30000362"/>
            <property name="QualGroup1" value="30561390"/>
            <property name="FMPosDesc" value="Z_READ_POSDESC_NEW"/>
            <property name="LangSkills" value="30000847"/>
            <property name="FM9990" value="Z_GET_PERS_IT9990"/>
            <property name="FMABTME" value="Z_EES_GET_ABOUT_ME2"/>
            <property name="FM9991" value="Z_GET_PERS_IT9991"/>
            <property name="FMEVTS" value="Z_GET_PERS_ATTEND"/>
            <property name="PAR_DEPENDENCIES" value="com.sap.pct.hcm.orgmanagementeventing,com.sap.pct.hcm.hcm_util"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
              <property name="inheritance" value="final"/>
            </property>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>

    Hi Saurabh,
    Were you able to solve this issue ? We r also facing the same problem. Pls suggest.
    Thanks and Regards,
    Vinod Venugopal

  • Index array is not getting new values from DAQ

    I am measuring force values with my DAQ card and these values are always changing.  However, in my programming something is not working right with the way I have things set up.  After my DAQ I have a "Convert to Dynamic Data" and after that I have an "Index Array".  When the program is executing and I turn on the highlight option I do not get changing force values after the "Convert to Dynamic Data" and therefore no changing force values enter my "Index Array".  Whaterever the first value is that gets passed to the "Convert to Dynamic Data" is the only value that I get for the remainder of the program.  I tried plugging in an indicator between the DAQ and the "Convert to Dynamic Data" and it did show varying values.  Please help with my program.  I have tried messing with the properties of the "Convert to Dynamic Data" and nothing has worked.  I am stuck and cannot see how to fix this problem.  I have attached my program as it is currently put together.
    Thank You In Advance,
    Gabe.
    Attachments:
    Actuator_Gabe_Oct27_Flat_Sequence_XY_+Measurement_File.vi ‏131 KB

    Please know that the best option is to review the concepts discussed to further understand programming in LabVIEW.  Perhaps you could take a look through ni.com/gettingstarted and ni.com/lv101 to have a look at some of the online help materials.  I have included a VI snippet of the while loop containing the changes.  Further, the code you attached contains a lot of customer controls and VIs, which are not common to all LabVIEW users.  It is a best practice to only attach the code of value to the question/post, and to have the most simplified version of the problem.
    Best,
    Adam
    Academic Product Manager
    National Intruments

  • BI Query with Hierarchy in VC does not get correct values

    Hello Gurus,
    I am building a model in VC for Performance Score card using Query as data service.
    I have  the following problem.
    When I execute query in BEx with Hierachy_node variable , it is getting correct values, but the same is getting incorrect values in VC.
    The Hierarcynode variable I am using is a TOP node, then the values including child nodes are also should be displayed, which is working fine with BEx query but not in VC.
    When I execute the query with hierarchy node value as child node I am getting correct values both in VC and in BEx.
    The correct values are not shown only when I use top nodes.
    Please help me in this regard.
    Thanks in advance
    Ganesh

    Hi
    We are facing the same issue. Is this issue resolved? Pls let us know the solution
    Regards
    Aruna

  • Logic App does not get Swagger Data from API App

    I'm following the tutorial here: http://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/
    I successfully added the API app, but when I add it to a Logic App, it gives the error: "Error fetching swagger api definition. Please try again."
    What is going on? I know the swagger is working properly, because I'm able to consume it from the API app.
    Thanks,

    I have the same issue. Those links don't help and you really have not answered the question.
    I'm using the basic WebApi service that is created by visual studio (plain vanilla string inputs/outputs for all the Http Verbs). The swagger works correctly, but when I deploy to my logic app I get:
    If I browse to the Api App itself I can see the swagger definitions working correctly but there is indeed a red validation warning. If I click the link, however, the validator returns Http 500 Internal Server Error.
    There is some talk on stackoverflow that this is to do with the https certificate that MS is using, and sure enough, if I download the swagger output from the Api App and upload it to a plain http url on another site, it validates correctly.
    So: this seems insoluble. The swagger is correct, but is failing validation, and the Api App cannot be consumed by the logic app.
    Here is the Api App endpoint showing the error: https://microsoft-apiapp4b8b7674e41e4a8f905a2d8b1e4a745b.azurewebsites.net/swagger/ui/index
    And here is the swagger from https://microsoft-apiapp4b8b7674e41e4a8f905a2d8b1e4a745b.azurewebsites.net:443/swagger/docs/v1 
    {"swagger":"2.0","info":{"version":"v1","title":"PE-Services-Idml"},"host":"microsoft-apiapp4b8b7674e41e4a8f905a2d8b1e4a745b.azurewebsites.net:443","schemes":["https"],"paths":{"/api/ToEpl":{"get":{"tags":["ToEpl"],"operationId":"ToEpl_Get","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"type":"string"}}}},"deprecated":false},"post":{"tags":["ToEpl"],"operationId":"ToEpl_Post","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":[],"parameters":[{"name":"value","in":"body","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No
    Content"}},"deprecated":false}},"/api/ToEpl/{id}":{"get":{"tags":["ToEpl"],"operationId":"ToEpl_Get","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK","schema":{"type":"string"}}},"deprecated":false},"put":{"tags":["ToEpl"],"operationId":"ToEpl_Put","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":[],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"},{"name":"value","in":"body","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No
    Content"}},"deprecated":false},"delete":{"tags":["ToEpl"],"operationId":"ToEpl_Delete","consumes":[],"produces":[],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"}],"responses":{"204":{"description":"No
    Content"}},"deprecated":false}}},"definitions":{}}

  • Uploadedfile does not retain its value

    Hi,
    I am using the following to upload a Excel file:
    *<af:inputFile label="File to Upload" columns="30" value="#{backing_dataUpload.file}"/>*
    Here is how I 'put' save the file for later use, in hte sesion:
    **public void processExcelHeader() {**
    UploadedFile file = getFile();
    AdfFacesContext.getCurrentInstance().getViewScope().put("uploadedFileKey",file);//
    Here is how I retrieve it:
    *public void beginUpload() {//=======TBD=======*
    UploadedFile uploadFile = (UploadedFile)AdfFacesContext.getCurrentInstance().getViewScope().get("uploadedFileKey");
    if (uploadFile != null)
    *try {*
    ProcessExcelWorksheet pexcel = new ProcessExcelWorksheet();
    java.io.InputStream in = uploadFile.getInputStream();
    PROBLEM is the value java.io.InputStream in returns NULL. PLease note that the scope tof the Bean is 'Session'.
    I Looked into the debugger the 'uploadFile' in hte beginUpload() has all the entries except the 'buffer' is NULL, and hte length is zero.
    Please note that after the out there is some processing and the control exits back to screen, and on pressing another Command Button it returns to the
    beginUoload() function.
    Any Ideas......
    Thanks......

    Anil:
    No, I don't think the 2 backing bean method is out of scope. I guess the framework implicitly close the stream in the first event handler. Because the framework might think you're done with it. After all the Session scope is the second largest scope and only shorter than Application scope.
    The behavior may be related how the framework dispatch the servicing back bean to handle your event. Even thoug it might be using the same backing bean instance, the framework may clean it up after the completion of each round of servicing.
    Your probably need to put the instance of the opened InputStream into ViewScope so that the inputstream will not be closed since it is still referenced. But you need to remember to close it after using in the second method which is beginUpload().
    So in
    public void processExcelHeader() {**
    UploadedFile file = getFile();
    InputStream is = file.getInputStream();
    AdfFacesContext.getCurrentInstance().getViewScope().put("uploadedFileStream",is);//
    Then:
    public void beginUpload() {//=======TBD=======
    InputStream inputStream = (UploadedFile)AdfFacesContext.getCurrentInstance().getViewScope().get("uploadedFileStream");
    inputStream.close();
    If you don't close it after using, you should experience serious memory leak.
    Good luck,
    Alex

  • SWNC_COLLECTOR_GET_AGGREGATES does not get all data from ST03

    Hi guys,
    we are using SWNC_COLLECTOR_GET_AGGREGATES to retrieve details from ST03, however not all details are retrieved.
    Please advice.
    Thanks!

    Hi,
    Please go through link below
    [Thread|SWNC_COLLECTOR_GET_AGGREGATES;
    KR Jaideep,

  • FCP Kona Card does not get input from FCP??

    Kona card LHE. Had it working just fine but I did something goofy and the Kona control panel does not get an input from FCP. Open to any and all suggestions.
    Thanks
    John

    but I did something goofy.........Open to any and all suggestions.
    Figure out what you did goofy and then do the opposite.
    Seriously, what have you done to troubleshoot this? There's any number of goofy things that you could do that may result in this issue. I'd start with reading the Kona manual and the rather extensive part in FCP about external monitoring.

  • Getting the Values from a Tiled View

    Hi,
    I have a TiledView and I have checkbox in the tiled view. I am trying
    to get the values of the checked boxes.
    I have coded like this.
    Object[] links = getRSystemLinks().getCbSystemUrl().getValues();
    if I see the links.length i get only one. In html If I see the code
    it appends the TileIndex in brackets. If I replace the TileIndex with
    0 in all the fields in endCbSystemUrl method I get the correct values.
    In the TiledView beginDisplay() method my code is like this.
    if (getPrimaryModel() == null) throw new ModelControlException
    ("Primary model is null");
    super.beginDisplay();
    resetTileIndex();
    pgCustomizeLinksViewBean parentBean = (pgCustomizeLinksViewBean)
    getParent();
    ((DatasetModel) getDefaultModel()).setSize
    (parentBean.SystemChoicesValue.size());
    Any Suggestions on this.
    Thanks
    Namburi

    Namburi--
    Remember, the getValues() method does not return the values from a column in
    a TiledView. It is strictly for use by fields that can have multiple
    values, like multi-select list boxes.
    DO NOT remove the indexing feature from the field names, especially in the
    case of checkboxes, because checkboxes aren't submitted back to the server
    unless they are checked. By overriding the automatic checkbox tracking
    feature JATO provides, you won't be able to tell which checkboxes were
    actually checked by row--you'll simply get back a list the same size as the
    number of checkboxes that were checked, without any placeholders for the
    ones that weren't checked.
    Instead, on submit, you simply need to move through the tiledView and check
    the value of checkbox on each row:
    tiledView.beforeFirst();
    while (tiledView.next())
    if (getDisplayFieldBooleanValue("myCheckBox"))
    You can use the same construct to build up an array or list:
    List checkedList=new LinkedList();
    tiledView.beforeFirst();
    while (tiledView.next())
    if (getDisplayFieldBooleanValue("myCheckBox"))
    checkedList.add(new Boolean(true))
    else
    checkedList.add(new Boolean(false))
    Todd
    Todd Fast
    Senior Engineer
    Sun Microsystems, Inc.
    todd.fast@s...
    ----- Original Message -----
    From: <vnamboori@y...>
    Sent: Wednesday, October 17, 2001 3:49 PM
    Subject: [iPlanet-JATO] Getting the Values from a Tiled View
    Hi,
    I have a TiledView and I have checkbox in the tiled view. I am trying
    to get the values of the checked boxes.
    I have coded like this.
    Object[] links = getRSystemLinks().getCbSystemUrl().getValues();
    if I see the links.length i get only one. In html If I see the code
    it appends the TileIndex in brackets. If I replace the TileIndex with
    0 in all the fields in endCbSystemUrl method I get the correct values.
    In the TiledView beginDisplay() method my code is like this.
    if (getPrimaryModel() == null) throw new ModelControlException
    ("Primary model is null");
    super.beginDisplay();
    resetTileIndex();
    pgCustomizeLinksViewBean parentBean = (pgCustomizeLinksViewBean)
    getParent();
    ((DatasetModel) getDefaultModel()).setSize
    (parentBean.SystemChoicesValue.size());
    Any Suggestions on this.
    Thanks
    Namburi
    [email protected]

  • Tokenizer not retaining its value

    Again another issue I do not understand! Would anybody understand this?
    The Tokenizer does not retain its value!? Why it does not?
    15,XCV, Some Other String, 10',389.5,4194.0
    while ((rec = aPrintData[rIndex].toString()) != null){
         Iterator tokZ = new myNewGetToken(rec, patS, retD);
             for(; tokZ.hasNext();){               // here I got the value 15
                  tokZorRetD = (String)tokZ.next();     // here I got "NULL"???
                  if (tokZorRetD == null) {
                       patScount--;
                       mCount--;
                  }else{
                       switch(patScount){
    public class myNewGetToken implements Iterator{
    //          class RETokenizer implements Iterator{
              private CharSequence in;
              private Matcher mt;
              boolean retD;
              private String delim;
              private String match;
              private int lastEnd = 0;
              public myNewGetToken(CharSequence in, String patS, boolean retD){
                  this.in = in;
                  this.retD = retD;
                  Pattern pattern = Pattern.compile(patS);
                  mt = pattern.matcher(in);
              public boolean hasNext(){
                   if(mt == null){
                        return false;
                   if(delim != null || match != null){
                        return true;
                   if(mt.find()){
                        if(retD){
                             delim = in.subSequence(lastEnd, mt.start()).toString();
                        match = mt.group();
                        lastEnd = mt.end();
                   }else if(retD && lastEnd < in.length()){
                        delim = in.subSequence(lastEnd, in.length()).toString();
                        lastEnd = in.length();
                        mt = null;
                   return delim != null || mt != null;
              public Object next(){    // the value is not there anymore
                   String result = null;
                   if(delim != null){
                        result = delim;
                        delim = null;
                   }else if(match != null){
                        result = match;
                        match = null;
                   return result;
              public boolean isNextToken(){
                   return delim == null && match != null;
              public void remove(){
                   throw new UnsupportedOperationException();
         }I renamed it because I might need to modify or find out why it does not keeps the value!

    dubwai, I am sure you doubt the programming solutions
    that I come up with BUT while I run into many problems
    to get the results right it seems like that has to be
    done what the man has to do!I don't doubt it. I'm 100% absolutely sure that your 'fix' doesn't change anything.
    Let me explain line by line:
    tempToken = tokZ.next();   //  do Not convert do Not cast, keep it as ObjectThe Object is what it is. Casting the Object doesn't change it. All it does at runtime is check to see
    that the given Object is String or what ever you cast it to: Try the following:
    Object o = "test";
    String s = (String) o;
    System.out.println("o and s are the same Object? " + o == s);
    tokZorRetD = (String)tempToken.toString();  // Now, convert and cast
    // would that have to do anything with StrongTyping?Given that your previous code was not throwing a ClassCastException, the Iterator is already
    a String. Calling toString on a String just returns this:
    String s = "test"
    System.out.println("s.toString returns s? " + s == s.toString());Also, toString returns a String. There's no need to cast a String to String.
    And if s is null (which it appears to sometimes be) calling toString() will throw a NullPointerException.
    In short, if your code has been fixed, it was something else.

Maybe you are looking for

  • How to hide a SWF file on a Stage?

    Hi, I am loading my SWF file onto stage. Later, I want to hide it. For movie clips, I am using the following code:      TAC_mc.visible =false; But I can't do the same to my SWF file.      Countdown.swf.visible = false; Please do help.

  • Why is windows 7 not recognizing my iphone? It was working just fine before!

    It was working just fine before. Today I plug it in and nothing happens, it doesn't charge from my laptop, or recognize it.  At one point it installed the drivers again and it worked for like 2 minutes but then it went back to nothing! It was going t

  • Need help on import from external drive!

    I just imported several thousand pictures from an external drive into iphoto 08--unfortunately all photos are listed as one big event--I am now a little confused as to what to do next---I would like them to be imported in the original files (years) i

  • New Java developer... hello everyone

    Hello everyone, I just wanted to introduce myself. My name is Rusty Rothwell, and I am finally jumping into Java. In High School I learned ColdFusion, ASP, C++, and Basic. I remember none of that. I am however a intermediate JavaScript programmer, gr

  • Adobe non-support

    I'm a registered Dreamweaver MX 2004 user. I'm completely unable to get support from Adobe with a re-install issue. Meanwhile, my professional, paid web management hours are flowing down the drain. Is it just me, or have the worst fears of all Dreamw