VBA to pass data to BAPI

We are in the process of developing an Excel file that can be used to update purchase requisitions.  I have successfully created the VBA code required to open a connection, call the BAPI, and close the connection.  However, I cannot figure out how to pass the table information to the BAPI.  Below is a subset of my code:
Sub ChangeReq()
'Call BAPI_PR_CHANGE and change quantity
Set ReqChange = R3.Add("BAPI_PR_CHANGE")
Dim ReqNumber As Object
Dim Item As Object
Dim ItemChanges As Object
Dim Sht1 As Worksheet
Dim Sht2 As Worksheet
Dim Sht3 As Worksheet
Set Sht1 = Sheets("Requisitions")
Set Sht2 = Sheets("PRITEM")
Set Sht3 = Sheets("PRITEMX")
Set ReqNumber = ReqChange.exports("NUMBER")
Set Item = ReqChange.Tables("PRITEM")
Set ItemChanges = ReqChange.Tables("PRITEMX")
ReqNumber = Sht1.Range("A2").Value
Item = Sht2.Range("A2:CN2").Value  >>>This is isn't correct
ItemChanges = Sht3.Range("A2:CO2").Value  >>>This is isn't correct
Result = ReqChange.CALL
If Result = True Then
  MsgBox (ReqNumber)
  Else
End If
End Sub
For the life of me, I cannot figure out how to Pass the PRITEM and the PRITEMX data.  Any suggestions?  My PRITEM data is being stored in a worksheet in cells A2:CN2.  PRITEMX is being stored in a separate worksheet in cells A2:CO2.

Hello Mark,
here you have a couple of lines as an example, it's quite simple, but not obvious
For each row you want to add to PRITEM
Set auxRow = ReqChange.Tables("PRITEM").Rows.Add
auxRow.Value("PREQ_ITEM") = <pos number (*)>
auxRow.Value("CTRL_IND")  = <control indicator (*)>
auxRow.Value("PUR_GROUP") = <purchase group (*)>
(and similar for the rest of PRITEM fields you want to set)
(*) Know how to retrieve this data from the mentioned sheets?
Regards
Michael

Similar Messages

  • Passing date to BAPI

    Hi,
    I am getting date from the frontend in mm-dd-yyyy format.But BAPI accepts date only in yyyymmdd format.How should I pass date to BAPI in required format. Can I use Date Object to pass date to BAPI and how?
    Regards,
    Samir

    Hi Samir,
      You can convert the frondend date as your wish. Create a object for SimpleDateFormat and parse the date as you want and send pass the required format to the BAPI.
    For Example:
    SimpleDateFormat isdf = new SimpleDateFormat("MM-dd-yyyy"); // For input format
    Date dt=sdf.parse(strDate); // strDate is input from the frontend
      Through this, you have converted the string(ie. strDate) into normal date format.  From this you can get the required format as the following,
    String result = null;
    int dd=dt.getDate();
    int MM=dt.getMonth()+1;
    int year = dt.getYear()+1900;
    result = yearMMdd+"";
      Now, you have got the required format.
    Regards,
    Venkatesh. K
    /* Consider Points if it is useful */

  • Passing Item data to BAPI BAPI_REQUIREMENTS_CREATE

    Hello Experts,
    Requirement to upload data from xcel sheet to SAP. Upload of Planned independent requirement(PIR) in the Plant
    Please help as i am not able to pass values into BAPI  EXPORT PARAMETER "requirements_item" and TABLE PARAMETER "requirements_schedule_in"
    my test data is:
    COKE1     2012-2013     20120201     10     TON
                                       20120301        35     TON
    COKE2     2012-2013     20120201     10     TO
                                         20120301     35     TO
    ..CODE
    form BAPI_REQUIREMENTS_CREATE.
    LOOP AT lt_export_data INTO wa_export_data.
       CLEAR wa_t5.
       CLEAR wa_t4.
             wa_t5-MATERIAL    = wa_export_data-MATERIAL.
             wa_t5-PLANT       = 'ES01'.
             wa_t5-REQU_TYPE   = 'VSF'.
             wa_t5-VERSION     = 'AB'.
             wa_t5-REQ_NUMBER  = wa_export_data-Req_Num.
             APPEND wa_t5 to lt_t5.
             wa_t4-DATE_TYPE   = '3'.         "Monthly
             wa_t4-REQ_DATE    = wa_export_data-Date.
             wa_t4-REQ_QTY     = wa_export_data-Quantity.
             wa_t4-UNIT        = wa_export_data-UNIT.
             APPEND wa_t4 to lt_t4.
             CLEAR wa_export_data.
    ENDLOOP.
    CALL FUNCTION 'BAPI_REQUIREMENTS_CREATE'
               EXPORTING
                 requirements_item                 = wa_t5
               TABLES
                 requirements_schedule_in    = lt_t4
                 return                                     = lt_return.
    I have the values in lt_t5 and lt_t4, now how to pass them to get desired result.
    Regards.
    Puneet Jham

    Try this.
    i got the sucess result as i want.
    DATA: I_BAPISITEMR TYPE STANDARD TABLE OF BAPISITEMR WITH HEADER LINE.
      " Item data
      DATA: I_CM60R TYPE STANDARD TABLE OF CM60R WITH HEADER LINE.
      " Requirements parameters
      DATA: I_BAPISSHDIN TYPE STANDARD TABLE OF BAPISSHDIN WITH HEADER LINE.
      " Schedule line data input
      DATA: I_BAPIRETURN1 TYPE STANDARD TABLE OF BAPIRETURN1 WITH HEADER LINE.
      " Return parameter
      DATA: I_MRP_AREA TYPE STANDARD TABLE OF BAPISITEMR WITH HEADER LINE.
    **If requirement already Exist then UPDATE those Req.
      DATA: U_REQUIREMENTS_SCHEDULE_IN TYPE STANDARD TABLE OF BAPISSHDIN WITH HEADER LINE.
      DATA: U_BAPIRETURN1 TYPE STANDARD TABLE OF BAPIRETURN1 WITH HEADER LINE.
    **If requirement already Exist then UPDATE those Req.
    *local data declaration
      DATA: ZREQ_DATE TYPE SY-DATUM .
      DATA: ZREQ_NUM TYPE STRING.
      DATA: ZYEAR_DATA TYPE STRING ,
            ZMONTH_DATA TYPE STRING .
      ZYEAR_DATA = ZYEAR.
      ZMONTH_DATA = ZMONTH.
      DATA: I_MATERIAL TYPE MARA-MATNR ,
            I_IN_ME1 TYPE MARA-MEINS ,
            I_OUT_ME1 TYPE MARA-MEINS ,
            I_MENGE1 TYPE EKPO-MENGE .
      DATA: OUT_E_MENGE TYPE EKPO-MENGE .
      DATA: W_SINGLE TYPE MEINS .
      CONCATENATE ZYEAR_DATA ZMONTH_DATA INTO ZREQ_NUM SEPARATED BY '-' .
      LOOP AT IT_FINAL INTO WA_FINAL.
        I_MATERIAL = WA_FINAL-ZMATERIAL.  "Read from internal table
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = I_MATERIAL
          IMPORTING
            OUTPUT = I_MATERIAL.
        SELECT SINGLE MEINS FROM MARA INTO W_SINGLE WHERE MATNR EQ I_MATERIAL .
        I_IN_ME1 = WA_FINAL-ZQTY_UNIT . " read from internal table
        I_OUT_ME1 = W_SINGLE  .  "fetch from query
        I_MENGE1 = WA_FINAL-ZPL_QTY . "read from internal table
        CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
          EXPORTING
            I_MATNR              = I_MATERIAL
            I_IN_ME              = I_IN_ME1
            I_OUT_ME             = I_OUT_ME1
            I_MENGE              = I_MENGE1
          IMPORTING
            E_MENGE              = OUT_E_MENGE
          EXCEPTIONS
            ERROR_IN_APPLICATION = 1
            ERROR                = 2
            OTHERS               = 3.
        IF SY-SUBRC <> 0.
          CONTINUE.
        ENDIF.
        I_BAPISITEMR-MATERIAL = WA_FINAL-ZMATERIAL .
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT  = I_BAPISITEMR-MATERIAL
          IMPORTING
            OUTPUT = I_BAPISITEMR-MATERIAL.
        I_BAPISITEMR-PLANT = WA_FINAL-ZPLANT.
        I_BAPISITEMR-MATERIAL_VERSION = '00' .
        I_BAPISITEMR-REQ_NUMBER  = ZREQ_NUM.
        I_BAPISITEMR-VERSION = '00'.
        I_BAPISITEMR-REQU_TYPE = 'LSF' .
        I_BAPISITEMR-VERS_ACTIV = 'X'.
    *I_BAPISITEMR-MRP_AREA =  '1110' .
    I_BAPISITEMR-VERS_ACTIV = ''.
        APPEND I_BAPISITEMR.
        I_BAPISSHDIN-REQ_QTY = OUT_E_MENGE.
        I_BAPISSHDIN-DATE_TYPE = '3'.   "Date type (day, week, month, interval) 3 = Month
        CONCATENATE ZYEAR_DATA ZMONTH_DATA '01' INTO ZREQ_DATE.
        I_BAPISSHDIN-REQ_DATE = ZREQ_DATE.   "Schedule line date
        I_BAPISSHDIN-UNIT = W_SINGLE.
        APPEND I_BAPISSHDIN.
        CALL FUNCTION 'BAPI_REQUIREMENTS_CREATE'
      EXPORTING
        REQUIREMENTS_ITEM              = I_BAPISITEMR
       REQUIREMENT_PARAM              = I_CM60R
         DO_COMMIT                      = 'X'
      UPDATE_MODE                    = ''
      REFER_TYPE                     = ''
      PROFILID                       = ''
    IMPORTING
      MATERIAL                       = I_BAPISITEMR-MATERIAL
      PLANT                          = I_BAPISITEMR-PLANT
      REQUIREMENTSTYPE               = I_BAPISITEMR-REQU_TYPE
      VERSION                        = I_BAPISITEMR-VERSION
      REQMTSPLANNUMBER               = I_BAPISITEMR-REQ_NUMBER
      MRP_AREA                       = I_BAPISITEMR-MRP_AREA
      TABLES
        REQUIREMENTS_SCHEDULE_IN       = I_BAPISSHDIN
      REQUIREMENTS_CHAR_IN           =
        RETURN                         = I_BAPIRETURN1

  • What is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.

    Hello Gurus,
    I want to know what is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.
    For example:
    X=EssVCalculate("Sheetname","Calc_Script name",True)
    In the above code instead of the *"Calc_Script name"* I want a script which is called dynamically and the values are calculated accordingly.
    Thanks in advance
    Saurabh

    Hi Todd,
    This is the situation:
    I have a calc script in Essbase which I can call to perform the calculations on the current sheet that is retrieved. I want calculation for the following formulas:
    x = EssVCalculate("Sheet2", "CalcBC", False)
    CalcBC is my calc script which is present in Essbase
    So instead of passing the above script I want to pass the conditions dynamically in the VBA code . I don't want to mention the script name directly in EssVCalculate option
    For example:
    I have three drop down menus from which I would select three different( zero level )members. It would then retrieve the data for that particular values in the excel sheet and now when I click on Calculate button it should calculate the script dynamically.
    I don't know how calc scripts can be executed dynamically in the VBA code itself.
    Thanks in Advance
    Saurabh

  • Can not pass data after while loop

    Hello.
    I have created a VI for my experiment and am having problem passing data outside a while loop to save on an excel file. The VI needs to first move a probe radially, take data at 1mm increment, then move axially, take data radially at 1mm increment, then move to the next axial position and repeat. It would then export these data to an excel file. The VI is a little complicated but it's the only way I know how to make it for our experiment. I have tested it and all the motion works correctly, however I can not get it to pass the data after the last while loop on the far right of the VI where I have put the arrows (Please see the attached VI ). Is it because I'm using too many sequence, case, and while loops?  If so, what other ways can I use to make it export data to the excel file?
    Any help would be appreciated. 
    Thank you,
    Max
    Attachments:
    B.Dot.Probe.Exp.vi ‏66 KB

    Ummmm .... gee, I'm not even sure where to begin with this one. Your VI is well .... ummmm... You have straight wires! That's always nice to see. As for everything else. Well... Your fundamental problem is lack of understanding of dataflow programming. What you've created is a text program. It would look fantastic in C. In LabVIEW it makes my heart break. For a direct answer to your question: Data will not show up outside a while loop until the while loop has completed. This means your most likely problem is that the conditions to stop that specific loop are not being met. As for what the problem is, I don't even want to start debugging this code. Of course, one way to pass data outside of loops is with local variables, and hey, you seem to be having so much fun with those, what's one more?
    This may sound harsh, and perhaps be somewhat insulting, but the brutal truth is that what I would personally do is to throw it out and to start using a good architecture like a state machine. This kind of framework is easy to code, easy to modify, and easy to debug. All qualities that your code seems to lack.
    Message Edited by smercurio_fc on 08-17-2009 10:00 PM

  • How to pass date parameter from one page to other in BSP application

    Hello gurus,
    In my BSP application i have taken an input field and made its type "date" and its value also of type date and have set showhelp .
    Now once a particular date is given as an input i want to pass its value to next page. And in next page i have to fire a query based on the date entered in previous page...
    Now my prb is that my date value is not getting passed to the next page.
    I have used
    navigation->set_parameter( name = 'BEGDA' value = BEGDA ).
    to pass date parameter.....still parameter is not getting passed.
    plz help me with this.....
    thankx.....

    Hi Eddy,
    By truncation i mean the entire date becomes 10 char including the ' . ' eg(06.12.2006).
    so with begda being 8chars it takes my date as 06.12.200
    as a result my query is not getting executed.
    now i have tried to use a FM  'CONVERT_DATE_TO_INTERN_FORMAT'.
    in my 1st page but still in 2nd page its giving me following error.
    <b>The data that was read could not be written to the specified target field during a SELECT access. Either the conversion is not supported for the type of the target field, or the target field is too short to accept the value, or the data is not in the appropriateformat for the target field.
    </b>
    Regards
    Swati

  • Passing date parameter from prompt

    Hi experts
    I am getting some problem while passing date from a dashboard prompt.
    In RPD i have changed the date column properties as DATE only so that i will get the DATE part of the data not the time stamp.
    Now in the dashboard prompt i added a prompt for the date column.
    I initialized the date prompt with a server variable of sysdate
    when i am running the dashboard i am getting default value in the prompt(04/15/2011)
    when i am changing the date it is selected as(04/15/2011)
    but when i am clicking the 'Go' button the date is converting to 2011-04-15 00:00:00 due to which my report is not running and i am getting error as
    View Display Error
    A date value was expected (received "2011-04-15 00:00:00").
    Error Details
    Error Codes: QABPH2PO
    can anyone help me to pass only date part
    thanks in advance
    regards
    Gourisankar

    Hi J / Srikanth
    Sorry to restart the thread again.
    As we discussed i have downloaded the patch and applied to my windows 32 bit machine.
    But now when i run the report the report is running only for the default value(Server Variable) which is specified to the prompt. when i change the date there is no effect to the report.
    When i drill down to the report i found that the date column(is prompted) is changed to teh server variable name which is might be the cause.
    any input on this???
    regards
    Gourisankar

  • Problem with passing date parameters in cursor

    Is there any problem in passing date parameters and like clause as below
    CURSOR eftcursor(start_date DATE, end_date DATE, where_clause varchar2) IS
    select * from r_records
    where created_date between start_date and end_date and description like where_clause;
    and in the open statement
    select to_date('01/06/2010 00:00:00', 'dd/mm/yyyy hh24:mi:ss') into startDate from dual;
    select to_date('01/07/2010 00:00:00', 'dd/mm/yyyy hh24:mi:ss') into endDate from dual;
    str := '%something%aaaaa%';
    open eftcursor(startDate ,endDate , str);
    Do i need to do any kind of conversion in the cursor where clause or when i am passing the parameter in open statement.

    Almora wrote:
    Do i need to do any kind of conversion in the cursor where clause or when i am passing the parameter in open statement.No, your code looks correct -- ou're passing a date to the cursor.
    You might consider whether you really need an explicit cursor though. An implicit cursor is easier to code and performs better.

  • Passing data b/w applet and apache server

    Hi all,
    I have an application that runs in the JApplet.I have to pass data b/w server and applet.The
    datas are brought from the server using php to the browser and passed to applet using param
    tags.
    1.Is it possible to set value for the param tag from applet?
    2.How to retrieve data from the param tag to the applet in the form of an array.
    In the getParameter it is required to specify the param name.
    Is it possible to retrieve data from param tag similar to that of getting data from command
    line arguments array.

    Hi all,
    I have an application that runs in the JApplet.I have
    to pass data b/w server and applet.The
    datas are brought from the server using php to the
    browser and passed to applet using param
    tags.
    1.Is it possible to set value for the param tag from
    applet?Why do you ever want to do it? It sounds like setting arguments passed to a program's main method from command line after the main method has been invoked. It is possible though to dynamically set any values for any applet params using php before the applet gets loaded to the browser window as you generate an html file on the server side.
    2.How to retrieve data from the param tag to the
    applet in the form of an array.
    In the getParameter it is required to specify the
    param name.
    Is it possible to retrieve data from param tag similar
    to that of getting data from command
    line arguments array.You can use some naming/numbering convention for your params. For example settings1, settings2 ... Then you can loop in your code retrieving the values like getParameter("settings" + i) checking to see that it is not null or empty.
    However, if you don't want to reload the applet (together with the page) just to get some new data from the server, you can establish a tcp/ip connection as elchaschab recommended.
    Cheers!

  • Problem in passing data from one .jsp page to another .jsp page

    i have a problem here
    Actually i have 2 jsp pages. What im trying to do here is actually i want to pass data from the first jsp page to the second for updating
    The first jsp page contains data that user wants to update in the form of table.
    <td><img src = "edit.gif" alt = "edit" border="0" ><td>
    <TD><%= Name %></td>
    <TD><%= rs.getInt("Age") %></td>
    <TD><%= rs.getString("Gender") %></td>
    So this page displays the data that users wants to update plus one image button (edit button). So when user clicks this button, all the data in this page will be brought to the second .jsp page called updatePersonal for updating.
    The problem here is that it is not displaying the existing data in the second .jsp page.
    The second page basically contains forms
    <INPUT TYPE="text" NAME="FirstName" maxlength="30" value = "<%=FirstName%>">
    Can someone please help me. I really dont know what to do..How do i get the data displayed in the text field that is passed from the first .jsp page..thankx in advance

    Please modify below code to:
    td><img src = "edit.gif" alt = "edit" border="0" ><td>
    -----------------modified code
    td><a href="updatePersonal.jsp?FirstName=<%=rs.getString(FirstName")%">&LastName=<%=rs.getString("LastName")%>&Age=<%=rs.getInt("Age")%>&Gender=<%=rs.getString("Gender")%>"><img src = "edit.gif" alt = "edit" border="0" ></a><td>
    I'm sure it works</a>

  • Passing data to another page loaded in the same window

    How to pass data from a page to another when new page loading
    takes place ?
    I use :
    window.htmlLoader.load( new air.URLRequest("app:/" +
    htmlfilename));
    I tried :
    window.htmlLoader.addEventListener(air.Event.CHANGE,
    passmonitor)
    but it doesn't work !

    The problem is in passing the variables . As I mentioned
    above,, the following error message gets displayed:
    Can't get property window from undefined value
    The code I tried is
    myloader = window.htmlLoader.load(new air.URLRequest("app:/"
    + filen ));
    myloader.window.somevar = "data";

  • How can I pass data from a form guide to another form in a business process

    How do we pass data from a form guide to another form(not necessarily a guide) without having to open the form. For example we have a small form guide to capture the contract id so we can then get data from contracts table to present to the user in a form. We want the user to open the guide (either Flex guide or form guide) to enter the contract id. Upon submission we want the process to get the contract data and put it into the form that will be opened at the next step by the user without having a user interact with the form to get the data into it. In other words we need the process to get the data and populate a different form than the form guide the contract id was entered in and this new form needs to be opened in the next step by the user.

    Firstly, I'm assuming that you have a Forms ES Server if you are rendering a Guide.  This could be either version ES1, ES2/2.5 or ES3/ADEP
    If you submit the form back to the server, you can populate a second (PDF/XDP) form with the data bound to the same schema/Data Model using Forms ES. 
    You referred to the next user in the chain - If you are using Process Management, this is very easy, as you define what form is used to render the data in the "Presentation & Data" section of the Assign Task activity

  • Passing data from an XML object to an itemRenderer

    I'm trying to color the background of a column in a datagrid and have found a sample file that illustrate the concept. However, the sample has data stored in an arrayCollection whereas mine is in an XML object. The problem is that the data in the sample file is apparently automatically passed to the itemRenderer (shown below: note the trace statement). My XML object does not appear to automatically pass data to the itemRenderer. So my questions are:
    1. Is there a simple way to pass data stored in an XML object to an itemRenderer
    or
    2. Should I convert my XML to an arrayCollection? If so, what's the best way to do this-- I've tried the following, but without success:
    <mx:Model id="xmldata" source="example3.xml"/>
      <mx:ArrayCollection id="myAC" source="{ArrayUtil.toArray(xmldata.Example1)}" />
    Here's what the xml looks like:
    <TABLE>
       <EXAMPLE1>
          <difficulty> 0.5 </difficulty>
          <discrimination> 0.7 </discrimination>
          <item> 3 </item>
       </EXAMPLE1>
    </TABLE>  
    Here's the itemRenderer:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Label xmlns:mx="http://www.adobe.com/2006/mxml">
        <!--
            This item renderer simply extends Label and overrides the updateDisplayList function to
            draw a gradient-filled rectangle. The colors in the gradient are determined from the
            data.
        -->
        <mx:Script>
        <![CDATA[
            import flash.geom.Matrix;
            import flash.display.GradientType;
            import flash.display.Graphics;
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                super.updateDisplayList(unscaledWidth,unscaledHeight);
                var m:Matrix = new Matrix();
                m.createGradientBox(unscaledWidth,unscaledHeight);
                var g:Graphics = graphics;
                            trace("data.col3="+data.col3)
                var colors:Array = (data.col3 < 2000 ? [0x0000CC,0x0000FF] : [0x00CC00,0x00FF00]);
                g.clear();
                g.beginGradientFill(GradientType.LINEAR, colors, [0.2,0.6], [0,255], m);
                // the rectangle is drawn a little high and a little tall to compensate for the gap
                // the DataGrid introduces between rows.
                g.drawRect(0, -2, unscaledWidth, unscaledHeight+4 );
                g.endFill();
        ]]>
        </mx:Script>
    </mx:Label>

    This sample code should answer your question of how to bring data into the renderer automatically. It comes in via the DataGrid dataProvider and then you refer to it in the renderer as data.XYZ, where XYZ is the field in the XML with the data. See FB 3 help sys on e4x syntax.
    ------------------ mainapp.mxml --------------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="srvc.send();">
      <mx:Script>
        <![CDATA[
          import mx.rpc.events.ResultEvent;
          import mx.collections.XMLListCollection;
          [Bindable] private var xlc:XMLListCollection;
          private function dataHandler(evt:ResultEvent):void{
            xlc = new XMLListCollection(evt.result..EXAMPLE1 as XMLList);
        ]]>
      </mx:Script>
      <mx:HTTPService id="srvc" url="data2.xml" result="dataHandler(event)"
        resultFormat="e4x"/>
      <mx:DataGrid dataProvider="{xlc}">
        <mx:columns>
          <mx:DataGridColumn headerText="Difficulty" dataField="difficulty"/>
          <mx:DataGridColumn headerText="Discrimination" dataField="discrimination"/>
          <mx:DataGridColumn headerText="Item" itemRenderer="MyLabel"/>
        </mx:columns>
      </mx:DataGrid>
    </mx:Application>
    ----------- MyLabel.mxml --------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Label xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import flash.geom.Matrix;
          import flash.display.GradientType;
          import flash.display.Graphics;
          override protected function updateDisplayList(unscaledWidth:Number,
            unscaledHeight:Number):void{
            super.updateDisplayList(unscaledWidth,unscaledHeight);
            this.text = data.col3;
            var m:Matrix = new Matrix();
            m.createGradientBox(unscaledWidth,unscaledHeight);
            var g:Graphics = graphics;
            var colors:Array = (data.col3 < 2000 ? [0x0000CC,0x0000FF] : [0x00CC00,0x00FF00]);
            g.clear();
            g.beginGradientFill(GradientType.LINEAR, colors, [0.2,0.6], [0,255], m);
            g.drawRect(0, -2, unscaledWidth, unscaledHeight+4 );
            g.endFill();
        ]]>
      </mx:Script>
    </mx:Label>
    ------------ data2.xml ----------------
    <?xml version="1.0" encoding="utf8"?>
    <TABLE>
       <EXAMPLE1>
          <difficulty> 0.5 </difficulty>
          <discrimination> 0.7 </discrimination>
          <col3> 3 </col3>
       </EXAMPLE1>
    </TABLE>

  • I need to pass data from an Access database to Teststand by using the built in Data step types(open data

    base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1i need to pass data from an Access database to Teststand by using the built in Data step types(open database /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1
    When I tried the same thing on another cmputer the same thing
    happend
    appreiciate u"r help

    base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1Hello Kitty -
    Certainly it is unusual that you can still see the tables available in your MS Access database but cannot see the columns? I am assuming you are configuring an Open Statement step and are trying to use the ring-control to select columns from your table?
    Can you tell me more about the changes you made to your file when you 'changed' it with MS Access? What version of Access are you using? What happens if you try and manually type in an 'Open Statement Dialog's SQL string such as...
    "SELECT UUT_RESULT.TEST_SOCKET_INDEX, UUT_RESULT.UUT_STATUS, UUT_RESULT.START_DATE_TIME FROM UUT_RESULT"
    Is it able to find the columns even if it can't display them? I am worried that maybe you are using a version of MS Access that is too new for the version of TestSt
    and you are running. Has anything else changed aside from the file you are editing?
    Regards,
    -Elaine R.
    National Instruments
    http://www.ni.com/ask

  • Passing data from a panel to a frame / disposing of a frame from in a panel

    Hello, I have recently created a program where all windows are made of seperate frames, now, to make the whole thing a bit more appealing and professional looking, i'd like to make 1 main frame, and load my content panels into this 1 frame. Problem i'm having with this is passing data from the loaded in panel to the main frame, so the main frame can hide one panel to load another with data inserted in the first panel. OR another solution to my problem would be a way to dispose of a frame, but from within the seperate panel class. I have searched the www for a solution, but haven't found one so far, so, any suggestions or references to some info about this kind of issue? Any pointer is greatly appreciated

    kennethdm wrote:
    EDIT: I took a look at the cardlayout, and, although i see its relevance to my question, it still leaves me with the question how exactly i will pass data the user inputs into the first panel, to the second panel. The second panel is built by the info which is provided in the first panel.Stop thinking of them as Panels and start thinking of them as OOP objects that have data that must be shared. It's often a matter of using getters and setters and sometimes requiring a sprinkling of the Observer design pattern.

Maybe you are looking for

  • IPod Classic won't copy playlists to iTunes 12.1

    I have a first gen iPod Classic 160gb. It has numerous playlists on it. I recently had to wipe the computer I use for iTunes and lost all the playlists I had. I thought, no matter, they are on the iPod and I can transfer them back over (because I act

  • JSF Page not displayed

    Hi, i am new JSF and i have build a jsf page and deployed into Sun GlassFish Enterprise Server and i am using NetBeans 6.5.1 when i try to access the page it is giving the following exception java.lang.Exception: javax.faces.FacesException: Problem i

  • Simple program but error?

    hi everyone!! i am trying to make a simple help file displaying hi and how are you in text area.the compilation gives no error but still i can't run that.can anyone please tell me how to solve my problem of making a simple help screen display... impo

  • Is ADOBE CREATIVE SUITE 4 DESIGN PREMIUM WIN UE compatible with Windows 8 and 8.1?

    Is ADOBE® CREATIVE SUITE® 4 DESIGN PREMIUM WIN UE compatible with Windows 8 and 8.1?

  • Waste of money for Apple box

    My dad bought a TV and he got an apple tv box installed internally and was told his mac would work. (10.5) So today I spend my whole day trying to get it to work with 3 computers. (my dads 10.5 desktop) (my snow leopard laptop 1.6.8) (mountain lion l