Result of 1-2^2 in Evaluation VIs ?

The formular parser of the evaluation VIs calculates 1-2^2=5, as for 1+ (-2)^2.
The formula&expression nodes give -3, as expected (using ** instead of ^). 
Why that? Precedence of operators should be the same.
Dirk

That's not just a precedence issue, that is plain wrong!  It still gets it wrong when you add a second '-' to make it 1 - -2^2.  It is funny since I would have expected it to either get the right answer for the wrong reason 1 - (-2)^2 (ie. use the minus sign as both negation and subtraction) or fail altogether by using the minus sign for negation and then finding no operator between 1 and (-2)^2.  It goes out of its way to insert an addition operation.
I have liked the evaluation VIs on a limited basis, and now that basis is very limited. 

Similar Messages

  • How to impl result match percentage and statistics on # of visit of docs

    Can someone please suggest on how to impl result match percentage and statistics on # of visit of docs.
    Can this be achieved without using ultra search?
    For example, by entering 'merge', I would like to see
    result such as
    "Party Merge High Level Design", 100%, # of hits:125.

    Can someone please suggest on how to impl result match percentage and statistics on # of visit of docs.
    Can this be achieved without using ultra search?
    For example, by entering 'merge', I would like to see
    result such as
    "Party Merge High Level Design", 100%, # of hits:125.

  • Negate Boolean for Step.result.passfail

    Ok, I'm looking for why TestStand is doing what I did not expect.
    The first passes "Fail" to "!Step.result.PassFail" and  uses a data source of "Step.result.PassFail" this step always Regardless of the value of "Fail"
    The second passes "Fail" to "Step.result.PassFail" and uses a data source of "!Step.result.PassFail" and operates as I intended. (Fails if Fail is True).
    A brief search yeilded the "Don't do that... negate in code" answers to the old "how to Negate Boolean for Step.result.passfail?" question. But this does not explain the unexpected behavior and I'd really like to understand whats really happening here.
    Attached is a simple example that demos the behavior  using dialog express vis
    Jeff
    Attachments:
    Funny.seq ‏24 KB

    "!Bool" equals "!bool", as long as you make no case sensitive string compare
    Ok, the trick is understanding expressions.
    Play a little game with me please. Here are the steps to follow:
    1. Open your sequence file Funny.seq. Select step one.
    2. In code module tab, select the parameter Error Out value. Current content is "Step.Result.Error". Open the expression editor.
    3. In the expression, type "ABC" (including quotation marks). Press "Evaluate". You will see that the expression must either
    3. a) point to a container or
    3. b) be a container itself.
    4. Close the dialogs (cancel expression edit dialog) and open on for the parameter Fail (current value "Step.Result.PassFail"). Open the expression editor.
    5. Again, type "ABC" in the expression. Evaluate it again.  You will see that the expression must either
    5. a) point to a boolean or
    5. b) be a boolean itself.
    What do we learn from this steps?
    "Step.Result.PassFail" is the lookup string for a boolean variable. So the evaluation results in a pointer to a boolean.
    "!Step.Result.PassFail" is the negation of a boolean variable. Evaluation will therefore fetch the value of the lookup string (type: boolean) and then negate it. So the result will be a boolean value, but it does not point to the variable "Step.Result.PassFail" anymore! Since the result is boolean, the expression passes evaluation.
    That is the reason why "!Step.Result.PassFail" as parameter will NEVER pass the boolean return value of the VI to the TestStand dataset (aka execution).
    Let's proceed:
    6. Move to step two. Switch to tab "Data Source". Open the expression editor for the data source expression.
    7. Again, type "ABC" in the expression. Evaluate it again.  You will see that the expression must either
    7. a) point to a boolean or
    7. b) be a boolean itself.
    So, catch up: We have the same issue here as step 5! We are not referring to any variable anymore once the expression gets evaluated!
    So why does it work as desired nevertheless?
    I gave the explanation in my previous post:
    Norbert_B wrote:
    The reason why your negation in the data source works is the status expression:
    Step.DataSource !="Step.Result.PassFail"? Step.Result.PassFail = Evaluate(Step.DataSource):False, Step.Result.PassFail ?"Passed":"Failed"
    As you can see, your expression does NOT equal "Step.Result.PassFail". Hence your negated value of this variable is evaluated as stated in the case-select part (Step.Result.PassFail = Evaluate(Step.DataSource)). This evaluation results in your negated value. Next, the Result is set to either "Passed" (evaluated to True) or "Failed (evaluated to False).
    You make a STRING compare in the first part of the status expression. YOUR data source DOES NOT MATCH the expected string.
    So in the TRUE case, you evaluate your new data source and write the result back to Step.Result.PassFail. So essentially, this step (in your case) simply negates the content of Step.Result.PassFail! Next expression will query the boolean value of Step.Result.PassFail and write either "Passed" or "Failed" into the Step.Result.Status....
    hope this is now more clear,
    Norbert
    EDIT: The only weird thing is, that in the first step during execution TS does not create a warning (or error) because you assign a return value of the module to a "True" (boolean value).
    One thing you can also do to increase understanding about the "issue": Simply write "True" or "False" (without quotation marks!) into the expression field "Value" for the boolean return value of the VI.....
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Error while posting the payroll results to accounts

    Dear all,
    Im facing a issue while posting the payroll results to the accounts in T.code PC00_M99_CIPE,
    The error log says...
    Inconsistence in payroll results (tables V0/RT)
    Diagnosis:
    An inconsistency results has been found during the evaluation of the payroll results. No referenced entry has been found in table V0.
    Can anybody suggest me wat i hav to do...
    Thanks & regards
    Gopinath.Balakrishnan

    Hi
    Check whether the user is having the authorisation for the t.code PC_PAYRESULT or PC00_M40-PAYRESULT.
    Because some times HR user will run the payroll and FI user will do the postings. If FI user is doing the postings, in general he will not have the authorisation for HR T.codes, then system will give such kind of errors.
    If not check the paryoll results and control record.
    Thanks & Regards
    Bharathi

  • How to format/sen​d VISA messages in 'C' for PXI

    How do I format/send VISA commands to a PXI Switch device such as
    - niSwitch_InitWithTopology(instr, topology, VI_FALSE, VI_TRUE, &switchSession); using ANSI C ?  How do I query the result ? 
    I am able to use VISA commands to Open, Find Resources etc., but I would like to use VISA (message based) commands to perform various functions such as Self-Test, MakeConnection etc.  I am using ANSI C under VC++.  I am new to PXI and VISA and I tried to make this work using the following snippet, but get nonsensical results.
    viPrintf (instr, "niSwitch_InitWithTopology(instr, topology, VI_FALSE, VI_TRUE, &switchSession)\n");
    viPrintf (instr,"niSwitch_self_test (instr, &SelfTestResult, testMessage)\n");
    viScanf (instr, "%s", testMessage);
    Thanks in advance for any help.

    Hi pxi_user,
    A function with a C Function Prototype such as:
    ViStatus niSwitch_InitWithTopology (ViRsrc resourceName, ViConstString topology, ViBoolean simulate, ViBoolean resetDevice, ViSession* vi);
    returns whether or not the function was successful.  This is stored in a ViStatus variable.  This, I am guessing, is what you are interested in.
    Please check out some C Examples to see how we perform error handling.  Normally, in our example VIs, we will use the method outlined in niSwitchErrorHandler.  Please view this program and then another that shows its use.  I would recommend the C programs located in the following folders:
    C:\Program Files\IVI\Drivers\niSwitch\Examples\CVI\niSwitchEr​rorHandler
    C:\Program Files\IVI\Drivers\niSwitch\Examples\CVI\niSwitchCo​ntrollingAnIndividualRelay
    In the end, the function will look something like below:
    niSwitchCheckErr(niSwitch_InitWithTopology(resourc​eName, topology, VI_FALSE, VI_TRUE, &switchSession));
    If this does not assist you, please let me know what the results you are currently getting look like.  Thanks!
    Chad AE
    Applications Engineer

  • CRM Survey: Simple Survey Evaluation

    Hi Forum,
    I created one Survey using CRM_SURVEY_SUITE and I would like to extract result using Simple Survey Evaluation.
    I set the flags Evaluation without Business Information Warehouse and Save completed Questionnaire.
    When I press the button Evaluation, I always get the message "No Data is available for evaluation".
    Is it really possible to extract results without BW ?
    Thanks a lot and best regards.

    Hi Joaquin Fornas  & Saozinha,
    Thanks for your information on survey evaluation in the above threads.
    I am able to survey using CRM_SURVEY_SUITE and i am able to extract the results using survey evaluation in GUI.
    Now i want to know the how to get the results in IC WEBCLIENT for  a survey. I am using CRM 7.0 VERSION.
    Can any one tell me is there any settings required to get the survey results in IC WEBCLIENT without BIW Evaluation.
    Thanks in advance
    Regards
    Nagaraju

  • Capturing payroll results

    Hi folks,
    want to capture payroll result in the master data and then to an adhoc query. Found an infotype Payroll Result (0402) and tried configuring the same in Personnel Management -> Human Resources Information System -> Payroll Results.
    In step 1: Define Evaluation Wage Types
    have maintained one entry /560 with Amount selected.
    In step 2: Assign Wage Types
    have maintained one entry of /560 as eval WT and /560 as corresponding WTyp.
    In step 3 : Set Up Payroll Infotypes
    have maintained 0402 for country grp 40 with Active / Generated Check which contains one entry of /560.
    In step 4: Set Up Assignment to Payroll
    have maintained 0402 with Active status.
    While preparing the adhoc query, could see a Zfield made by the system for capturing result of /560.
    Ran payroll for the employees and still this infotype has 0 records.
    Tried doing through RPABRI00 report with no success.
    Can someone please help me with this asap.
    Thanks in Advance !
    Cheers !
    Jack

    HI
    I think you can also fix cells in the interactive planning. Once user executed the forecast at lower level. They can fix the cell for particular KF. I think once you Fix the cell the values from the KF will not get changed.
    I think you can also fix cells using macro. All you need to do is define a simple
    macro with singe step and copy "Values" to "Fixed values" of the same
    key figure. This you define in "Change of scope" of result row
    attribute.
    Thanks
    Amol

  • What happened to the F-Security Toolbar and Google results check?

    The previous version of Firefox allowed F-Secure to activate a toolbar for checking websites and reporting suspicious ones. Also, it allowed F-Secure to rate google search results in terms of their safety to visit. These features do not seem to work in Firefox 4. Is there a way to fix these problems and if not how could I roll back to my previous version of Firefox?
    Thanks

    for a certain reason the F-Secure toolbar suddenly works with Firefox 4 on my PC. I donk't now why, but it suddenly works today. the last days i've had the same problem as alex45. Maybe it now functions with you new firefox 4 browser, too. It's very strange, because there was not an update for the new browser, at least I've had not noticed any updates. Maybe it's F-Secure with its automatically update?

  • Programatically change "Record Results" of a step

    Hello,
    Just wondering whether it is possible to set the "Record Results" properties programatically.
    Thanks,
    Yannick Willener

    Hi Ray - I have been able to get more familliar with TS, doing simple sequence to test and calibrate some analog equipements. I also get familliar with the callback principle by changing on the fly the name of some steps in such a way that they make sense when i read the report.
    Here is a quick reminder of what i'm trying to do.
    Execute a Test
    If test Fail -> It will show in the report
    Else -> Not in the report
    I'm still trying to accomplish what i described earlier but running into issues. I tried the different approach:
    1-The only way i managed to do it so far is the next one
    setting up the test and manually unchecking the Record Result checkbox
    And uf a if() in Test on the PreviousStep object, if the previous step has failed, i redo the test (fortunatly they are very short ) but setup with the RecordResult check box. This approach is working but is not very classy.
    2-Then i tried to test Step.result.status in the post-Expression field. But according to the reference manual, this expression is evaluated before the Status expression. Dead end
    3-The i figured i could try to play with the Post Action field by putting Step.RecordResult = (Step.Result.Status == "Failed") as a custom condition.
    Once more i get some random result, The prpoerty is set, but since the step has already been executed, it looks like it has already been taken in consideration by the report generator.
    4-I tried to use a call to the TS engine to change the property of the previous step but i get the same result as 3
    5-I tried to use SequenceFilePostResultListEntry and then set the property of the step but once more without sucess.
    What i'm looking for is either a callback that i can overload that is supose to happen after the result of the test has been evaluated but before we notify the engine to log the result. Do you have any other idea ?

  • Is it unlawful to sell my used final cut studio version 3 software?

    I had listed my software at eBay after deauthorizing it from my Mac Pro. Was I under a contract with Apple that prevented me from reselling the software?(I'm afraid I don't have time to read pages of fine print.) Here's the message I just received from eBay after the closed my auction:
    You recently listed the following listing:
    300791938347 - Apple Final Cut Studio Version 3 (Version 2 Retail plus Version 3 Upgrade)
    Your listing has been removed.
    Your item was removed because of a request we received from BSA (Business Software Alliance) (US), a member of our Verified Rights Owner Program (VeRO), asking us to remove the item for:
    - Software offered for sale is in violation of an enforceable license agreement, which constitutes a copyright infringement.
    If you have additional questions or concerns on why your item was removed, please contact BSA (Business Software Alliance) (US) directly at:
    [email protected]
    Please allow 7 days for BSA (Business Software Alliance) (US) to reply to you.
    All listing fees associated with the removed item(s) have been credited back to your account.
    The rights owner or an agent authorized to act on behalf of the rights owner, BSA (Business Software Alliance) (US), notified eBay that this listing violates intellectual property rights. When eBay receives a report of this type of violation, we remove the listing to comply with the law.
    Copyright infringement is unlawful and against eBay policies. Copyright is the protection provided by law to the authors of creative works, such as movies, music, software, photographs, and books, both published and unpublished. Copyright owners have the exclusive right to reproduce the copyrighted work, to distribute copies of the copyrighted work, and to perform or display the copyrighted work publicly.
    eBay doesn't allow the listing of unauthorized copies of copyrighted works. Unauthorized copies include backup, pirated, duplicated, or bootlegged copies.
    If the product you are selling is a copy of another work that you aren't authorized to copy, don't list the item. eBay doesn't allow the sale of software if this violates the manufacturer's copyright license. Some common types of software with license agreement restrictions include:
    -- Academic software: Software that is sold at discounted prices to students, faculty members, and educational institutions
    -- Beta software: Early copies of software that are distributed by software developers for evaluation, testing, and troubleshooting purposes
    -- Original Equipment Manufacturer (OEM) software: Software that is included with the purchase of new equipment such as a computer, digital camera, or printer
    You may need to obtain the manufacturer's consent to sell this software.
    For more information, please visit:
    http://pages.ebay.com/help/policies/replica-counterfeit.html
    You may need to take a tutorial. The next time you sell, you may be asked to take the tutorial, if it's required. Once you've completed the tutorial successfully, please review your account status for any other possible concerns. If there are no other issues, you should be able to sell again.
    To take the intellectual property tutorial, please visit:
    http://pages.ebay.com/help/tutorial/verotutorial/intro.html
    Please be aware that any additional violations of this policy may result in the suspension of your account. eBay understands that you may be concerned about this situation. We encourage you to contact BSA (Business Software Alliance) (US) directly if you have any questions.
    You can send an email to: [email protected]
    For more information on how eBay protects Intellectual Property, or for additional information if you believe that your listing has been removed as a result of an error or misidentification, please visit the following Help page:
    http://pages.ebay.com/help/policies/programs-vero-ov.html
    For more information on why eBay may remove a listing, please visit:
    http://pages.ebay.com/help/sell/questions/listing-ended.html
    Please be assured that your listings have not been targeted in any way. Although there may be similar items currently listed on eBay, we review all listings that are reported to us by eBay members or Verified Rights Owner (VeRO) program participants. We rely on reports from our members to help maintain the safety and security of our Community. We encourage you to report any items by using the REPORT THIS ITEM button on the listing so we can quickly remove any other items that should be removed.
    If you have additional questions, contact our policy experts. Get started by clicking the link below:
    http://contact.ebay.com/ws/eBayISAPI.dll?ContactCS&Query=1337&Domain=Homer_EOA&F rom=5265
    We appreciate your understanding.
    Thanks,
    eBay
    Please don't reply to this message. It was sent from an address that doesn't accept incoming email.
    H5265

    eBay heavily "overprotects" copyright owners.
    The BSA is hired by Apple to look out for copyright violations. They simply go after everything without any investigation. eBay plays along and so you are the one with the problem to do something completely lega.
    Here is the relevant section of FCS's SLA:
    3. Transfer. You may not rent, lease, lend, sell, redistribute or sublicense the Apple Software. You may, however, make a one-time permanent transfer of all of your license rights to the Apple Software to another party, provided that: (a) the transfer must include all of the Apple Software, including all its component parts, original media, printed materials and this License; (b) you do not retain any copies of the Apple Software, full or partial, including copies stored on a computer or other storage device; and (c) the party receiving the Apple Software reads and agrees to accept the terms and conditions of this License. All components of the Apple Software are provided as part of a bundle and may not be separated from the bundle and distributed as standalone applications.
    This means that you are allowed to sell the package if you are the original owner of the software.

  • "open file" vi doesn't work in executable

    I have built an executable that reads a com port and displays the readings in a chart.
    The vi also has a "start logging" button that uses the "open file", "write to file", and "close file" vi's, and it works on the machine with labview installed on it.
    When saving it as an executable and executing it on a clean PC, I can select the com port, I can see the graph working, and when I start logging, I can select a new filename.
    However after closing the file, and opening it in a text editor, there is nothing in the file.  So I think there is a problem with the "write to file" vi.
    I tried this both in LV 8.5 as well as 7.1 with the same results. Any ideas? I have Visa and Run-time running on the clean PC. Are there any other drivers that I need to run on the host PC?

    You have a lot of problems with your VI:
    Lousy architecture. You have 4 loops. That's 3 too many. You only need one loop. The code that does the data logging should be in the main (and only) loop.
    Do not open and close VISA sessions every time you iterate. Open once. Close once.
    Do not open and close files every time you iterate. Open once. Close once.
    You do not need to write to an indicator and to a local variable at the same time. A local variable is not a separate entity from a control/indicator - it's the same thing. Thus, the write of the local variable is superfluous. Besides, if you were to correctly code this to use only one loop you wouldn't need the local variable in the first place.
    Why are you creating dynamic data from a set of 4 floating point values? Use Build Array to create an array. Charts and graphs do not require you to use dynamic data.
    Identical labels. You have four controls called "Current Temp °C". If I mentioned the "Current Temp °C" control, would you know which one I'm talking about? Make your labels distinct. Use captions if you want the text on the front panel to say the same thing. 
    I don't know if that serial stuff is a by-product of you opening an old VI in 8.5, so I don't know what that SetSerialTermChar VI is supposed to be. You should look at the serial port examples that ship with LabVIEW for updated VIs.
    That's it for now....

  • Using decode in where clause with user defined function

    Hi,
    I have a below query which is failing as the function in the decode taking all cust_account_id as input parameter instead of the one which satisfies the condition in the inner query.So please provide a solution how can i pass only the selected one.
    SELECT hca.cust_account_id
    FROM hz_cust_accounts hca
    WHERE hca.org_id=FND_PROFILE.value('ORG_ID')
    AND hca.cust_account_id = (SELECT DISTINCT hcasa.cust_account_id
    FROM hz_cust_acct_sites_all hcasa
    WHERE hcasa.cust_account_id =hca.cust_account_id
    AND hca.org_id = hcasa.org_id)
    AND DECODE (hca.status , 'A', xx_ar_cust_audit_pkg.get_ship_to_order_type(hca.cust_account_id)) IS NOT NULL
    Thanks,
    Abhilash

    I'm having to guess without access to your tables, but I think changing the IN to a join should produce the same results. The JOIN should be evaluated before applying the WHERE clause, so this may resolve your problem.
    SELECT hca.cust_account_id
    FROM   hz_cust_accounts hca
           INNER JOIN hz_cust_acct_sites_all hcasa
           ON    hcasa.cust_account_id = hca.cust_account_id
           AND   hca.org_id = hcasa.org_id
    WHERE  hca.org_id = FND_PROFILE.value('ORG_ID')
    AND    DECODE (hca.status , 'A', xx_ar_cust_audit_pkg.get_ship_to_order_type(hca.cust_account_id)) IS NOT NULLAlternately, you could next part of the query and break the DECODE into the parent so it is evaluated after the inner query. This is likely uglier from a performance standpoint, though:
    SELECT cust_account_id
    FROM
    SELECT hca.cust_account_id, hca.status
    FROM   hz_cust_accounts hca
    WHERE  hca.org_id=FND_PROFILE.value('ORG_ID')
    AND    hca.cust_account_id = (SELECT DISTINCT hcasa.cust_account_id
                                  FROM   hz_cust_acct_sites_all hcasa
                                  WHERE  hcasa.cust_account_id =hca.cust_account_id
                                  AND    hca.org_id = hcasa.org_id)
    WHERE DECODE (status , 'A', xx_ar_cust_audit_pkg.get_ship_to_order_type(cust_account_id)) IS NOT NULL;

  • Default Values for Select-options In Webdynpro-ABAP

    Hi Freinds,
    Kindly,Help me in setting the Default values for the Select-options in Webdynpro ABAP.
    Here the Node and the Attributes are Created Dynamically, and then Displayed Select-options Component View.
    Regards,
    Xavier.P

    Xavier Reddy Penta sent me this question via email and I answered it directly yesterday. Here is the solution that I provided to him, so that it is stored with the original question:
    I believe your problem is that you are not setting the value into the range correctly.  You are setting it directly into the field symbol of the range like such:
    <FS> = L_STRING2.
    But ranges are deep objects. They have four fields: Sign, Option, High, and Low. This is from the online help:
    1.     sign of type c and length 1. The content of sign determines for every row whether the result of the condition formulated in the column is included or excluded in the entire resulting set for all rows. Evaluable values are "I" for include and "E" for exclude.
    2.     option of type c and length 2. option contains the selection option for the condition of the row in form of logical operators. Analyzable operators are "EQ", "NE", "GE", "GT", "LE", "LT", "CP" and "NP" if column high is initial, and "BT", "NB" if column high is not initial. With the options "CP" and "NP", the data type of the columns low and high must be of the data type c, and special rules apply for entries on the selection screen.
    3.     low of the data type defined after FOR. This column is designated for the comparison value or the lower interval limitation.
    4.     high of the data type defined after FOR. This column is designated for the upper interval limitation.
    So when you are moving the value into the field symbol you are setting it into the sign column.
    Here is an example of how you can access the components of the range:
    * create a range table that consists of this new data element
        lt_range_table =
          wd_this->lv_sel_handler->create_range_table(
               i_typename = l_typename ).
        IF l_fieldname = 'CARRID'.
          FIELD-SYMBOLS: <tab>         TYPE INDEX TABLE,
                             <struct>      TYPE ANY,
                             <wa>          TYPE ANY,
                             <option>      TYPE char2,
                             <sign>        TYPE char1,
                             <high>        TYPE ANY,
                             <low>         TYPE ANY,
                             <wa_values>   TYPE ANY.
          ASSIGN lt_range_table->* TO <tab>.
          APPEND INITIAL LINE TO <tab> ASSIGNING <wa>.
          ASSIGN COMPONENT 'OPTION' OF STRUCTURE <wa> TO <option>.
          ASSIGN COMPONENT 'HIGH' OF STRUCTURE <wa> TO <high>.
          ASSIGN COMPONENT 'LOW' OF STRUCTURE <wa> TO <low>.
          ASSIGN COMPONENT 'SIGN' OF STRUCTURE <wa> TO <sign>.
          <sign> = 'I'.
          <option> =  'EQ'.
          <low> = 'AA'.
        ENDIF.

  • Sending pdf attachments via e-mail in BSP

    Hi all,
    i have written a code for sending email to a given mailid with some text but
    can anyone tell me step to step procedure for sending pdf attchments to mailid.
    Thanks and Regards,
    Sneha Puppala.

    Hi ravikiran,
    This is my code for sending email with attach:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="bsp"   prefix="bsp"%>
    <htmlb:content id="content" design="classicdesign2002design2003" controlRendering="sap"
                   rtlAutoSwitch    = "true">
      <htmlb:page title = "BSP Extension: HTMLB / Element: fileUpload">
        <htmlb:form method = "post" encodingType = "multipart/form-data">
    <head>
        <link rel="stylesheet" href="../../sap/public/bc/bsp/styles/sapbsp.css">
        <title>mail to </title>
      </head>
        <bsp:testSuite id="testSuite" name = "<fileUpload>" key = "<%=content->design%>">
            <% IF NOT %_testSuite->id_list IS INITIAL.%>
            <bsp:testCase nr="DATA" text = "Data Handling"/>
            <table border="1px" cellpadding="1px" cellspacing="0px" style="font:normal 10pt Arial">
              <tr> <th>id</th> <th>File Name</th> <th>Content Type</th> <th>Length</th> </tr>
              <%-- Notice: It's recommended to do input processing in onInputProcessing
                event block, not in onLayout block like in this case. --%>
                <% DO.
                    DATA: fu        TYPE REF TO CL_HTMLB_FILEUPLOAD,
                        next_id   TYPE STRING.
                   next_id = %_testSuite->next_restore_id( ).
                   IF next_id IS INITIAL. EXIT. ENDIF.
                    fu ?= CL_HTMLB_MANAGER=>GET_DATA( request = request id = next_id name = 'fileUpload' ).
              %>
                <tr>
                    <td><%=next_id%></td>
                    <td><%= cl_http_utility=>escape_html( fu->file_name ) %> </td>
                    <td><%=fu->file_content_type%> </td>
                    <td><%=fu->file_length%></td>
                </tr>
              <% ENDDO. %>
            </table>
          <% ENDIF. %>
          <%----
    %>
          <%
             DATA: event            TYPE REF TO if_htmlb_data,
                   fileUpload_event TYPE REF TO CL_HTMLB_FILEUPLOAD.
             event = cl_htmlb_manager=>get_event_ex( request ).
             IF event IS NOT INITIAL AND event->event_name = htmlb_events=>fileupload.
               fileUpload_event ?= event.
          %>
              <table border="1px" cellpadding="1px" cellspacing="0px" style="font:normal 10pt Arial">
                <tr> <td>Event-Class</td>              <td><%= event->event_class%>                  </td> </tr>
                <tr> <td>Event-ID</td>                 <td><%= event->event_id%>                     </td> </tr>
                <tr> <td>Event-Name</td>               <td><%= event->event_name%>                   </td> </tr>
                <tr> <td>Event-Type</td>               <td><%= event->event_type%>                   </td> </tr>
                <tr> <td>Event-Server Name</td>        <td><%= event->event_server_name%>            </td> </tr>
                <tr> <td>Event-Defined</td>            <td><%= event->event_defined%>                </td> </tr>
                <tr> <td>FileUpload-Name</td>          <td><%= fileUpload_event->file_name%>         </td> </tr>
                <tr> <td>FileUpload-Content_Type</td>  <td><%= fileUpload_event->file_content_type%> </td> </tr>
                <tr> <td>FileUpload-Length</td>        <td><%= fileUpload_event->file_length%>       </td> </tr>
              </table>
          <%
             ENDIF.
          %>
          <%----
    %>
          <bsp:testCase text = "upload attachment" />
          <htmlb:fileUpload id       = "<%= %_testSuite->seq_nr( )%>" />
          <htmlb:button     id       = "submitButton"
                            text     = "Upload"
                            onClick  = "HandleUpload" />
          <%----
    %>
    <html>
    <body class="bspBody1">
      <H1 class="bspH1"> Consultation-Service </H1>
        <form method = "post" action="<%=page->get_page_url( )%>">
          <table class="bspTbvStd" cellpadding="4">
            <tr>
            <td class="bspTbvHdrStd" colspan="2" align="center"><font size="4">Address</font></td>
            </tr>
            <tr class="bspTbvCellStd">
              <td>Name</td>
              <td><input type="text" name="name"
                         value="<% page->write( value = name ). %>" size="40" ></td>
            </tr>
                    <tr class="bspTbvCellStd">
              <td>Mail address1</td>
              <td><input type="text" name="mail_address1"
                         value="<% page->write( value = mail_address1 ). %>" size="40"></td>
            </tr>
            <tr class="bspTbvCellStd">
              <td>Mail address2</td>
              <td><input type="text" name="mail_address2"
                         value="<% page->write( value = mail_address2 ). %>" size="40"></td>
            </tr>
          </table>
          </bsp:testSuite>
        </htmlb:form>
        </htmlb:page>
    </htmlb:content>
        </form>
      </body>
    </html>
    On Input Processing:
    if page->messages->num_messages( ) eq 0.
      if mail_address1 is not initial and mail_address2 is not initial.
          call method application->send
            exporting mail_address = mail_address1
            changing  messages     = page->messages .
        call method application->send
            exporting mail_address = mail_address2
            changing  messages     = page->messages .
        if page->messages->num_messages( ) eq 0.
          data text type string.
          text = application->get_text( ).
          navigation->set_parameter( name = 'mailtext' value = text ).
          navigation->next_page( 'show' ).
        endif.
      else.
        navigation->next_page( 'no_address' ).
      endif.
    endif.
    "method send in defined class":
    method SEND.
    CLASS cl_bcs DEFINITION LOAD.
    DATA:
    lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    lo_send_request = cl_bcs=>create_persistent( ).
    Message body and subject
    DATA:
    lt_message_body TYPE bcsy_text VALUE IS INITIAL,
    lt_att_content_hex type solix_tab,
    lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    APPEND 'Dear Vendor,' TO lt_message_body.
    append ' ' to lt_message_body.
    APPEND 'Please find the attached report.'
    TO lt_message_body.
    append ' ' to lt_message_body.
    APPEND 'Thank You,' TO lt_message_body.
    lo_document = cl_document_bcs=>create_document(
    i_type = 'RAW'
    i_text = lt_message_body
    i_subject = 'Visit report' ).
    data: data_tab type solix_tab,
          p_data type XSTRING.
      call function 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer     = p_data
        TABLES
          binary_tab = data_tab.
    DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
    TRY.
    lo_document->add_attachment(
    EXPORTING
    i_attachment_type = 'PDF'
    i_attachment_subject = 'Visit Report'
    I_ATTACHMENT_SIZE =
    I_ATTACHMENT_LANGUAGE = SPACE
    I_ATT_CONTENT_TEXT =
    I_ATTACHMENT_HEADER =
    i_att_content_hex = data_tab ).
    CATCH cx_document_bcs INTO lx_document_bcs.
    ENDTRY.
    Add attachment
    Pass the document to send request
    lo_send_request->set_document( lo_document ).
    Create sender
    DATA:
    lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
    l_send type ADR6-SMTP_ADDR value '[email protected]'.
    lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
    Set sender
    lo_send_request->set_sender(
    EXPORTING
    i_sender = lo_sender ).
    Create recipient
    DATA:
    lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
    lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    Send email
    DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    lo_send_request->send(
    EXPORTING
    i_with_error_screen = 'X'
    RECEIVING
    result = lv_sent_to_all ).
    COMMIT WORK.
    message 'The visit report has been sent' type 'I'.
    Thanks and Regards,
    Sneha Puppala.

  • Empty fields in a fillable PDF

    Hi all,
    We are a company that relies heavilly on fillable PDF files. We create them in LiveCycle ES8.2 and distribute them to our students all over the world.
    Needless to say those students use a wide variety of hardware, ranging from MAC's with different OSx's to Windows computers with XP, Vista or 7.
    Students fill out these forms, often tests and assignments, save a copy and upload it to our site.
    Lately we are experiencing problems that fields in our fillable PDF's are empty when we receive the file.
    Ofcourse, it sometimes happens that a student uploads the wrong (empty) file, but when multple students give us an empty PDF within a one-day timeframe and are certain they filled it out correctly, it might be something we are missing.
    We noticed that it might have something to do with embedded fonts or their subsets, but this is giving us and our students a big headache.
    We can't pinpoint the problem any further. Is it something we are missing in de PDF design process or is it a user-related issue? And if so, how can they solve it?
    Advice or sollutions are greatly appreciated!
    Greets,
    Martijn

    I asked bacause the Preview application on the Mac is known to corrupt fields when a form is saved, resulting in the field contents not being vis
    ible. The PDF Producer will show something like what I posted earlier in such cases. Preview is the default PDF viewer for a majority of Mac users. But now that I think about it, I don't believe Preview supports XFA forms at all.
    If I were in your position, I'd try contacting the folks who sent in the problem files and ask them what PDF viewer they're using, and confirm that they indeed completed AND saved the form and sent in the modified form.

Maybe you are looking for

  • IPod will not sync, and will not burn cds...

    1.) When I connect my iPod to the comp the syncing process starts. The little wheel my my ipod's name starts spinning, then slows down, then freezes and itunes stops responding. I have to hit crtaltdel to manually shut down itunes. Then, I have to cl

  • After update pdf files are empty

    Yesterday I got a notification of an update for Adobe reader on a mac, OSX 10.7.5  After installation all my pdf files appear empty.  Message is "could not be opened because it is empty".  How to I fix this?

  • Micro35 Cinema Lens Adapter  vs. Film Filters

    Hi guys, someone turned me onto Micro35 cinema lens adapters (35mm)for filmlook at www.redrockmicro.com. Has anyone used this? Please let me know if you have and what you think of it? Anyone please, ZIA

  • What does the "Develop" do in the menu bar in Safari

    Just upgraded to Mountain Lion - trying to get to grips with the Develop tag in the Menu bar? only found it under preferences in Safari when trying to remove cashe - can anyone give me an idea where I can get more information on the use of the "Devel

  • Nokia n82 gps version 2.0

    I updated my maps on my phone to version 2.0. It seems like I can't operate the GPS (like showing the route or simulate the route) unless I purchase their Walk/Drive license. Before I updated the maps/gps, I was about to see where to go, and simulate