TransactionStateChanged gives wrong value when validation error.

In my navbar, wich extends the standard one I extended the transactionStateChanged method.
It seems to work and when the transaction goes dirty I receive a true state; when transaction returns clean I receive false.
However if a validation fails during commit the transaction remains dirty but I receive a false value (as if commit worked).
Testing the transaction dirty during that phase gives false.
How can I solve that issue ?
Tks
Tullio

Repost

Similar Messages

  • Report Still Runs When Validation Errors Occur

    Hello.
    I'm using Apex 4.2.1 against Oracle 11gR2 and Oracle App Server (mod_plsql).
    My Set-Up:
    I created an application containing a "classical" type report that is driven by a WHERE clause. I also have two date fields in an HTML region on this same page. These fields are used in the report WHERE clause. And the report is run by clicking a GO button on the page.
    Here's what the WHERE clause looks like:
    where table_date >= to_date(nvl(:P1_BEGIN_DATE, '01-jan-1900'), 'dd-mon-yyyy') and table_date <= to_date(nvl(:P1_END_DATE, '31-dec-2300'), 'dd-mon-yyyy')This is designed so that, if any of the date fields are NULL, then the minimum or maximum date will be used for the query.
    These date fields should always have a value when the report is run, and so, I created two after submit NOT NULL validations, one for each of the date fields. If any of these fields is NULL when the GO button is clicked, an error message appears in the notification area at the top of the page.
    Looking at all this, you might realize (as I do) that the nvl() functions in the above WHERE clause are redundant. After all, the validations are supposed to prevent these date fields from becoming NULL when the report is run. In any case, this set-up does work ok and points out a strange behavior with Apex.
    My Problem:
    If any of these validations throws an error message, the report still runs. In previous versions of Apex, if a validation (or, for that matter, any error) is thrown, the report remains static. The report region does not disappear and the report is not invoked until the user corrects the error.
    If both date fields are filled, I click the GO button and the report correctly returns, say, 100 rows. But when I empty both of the date fields and click GO, the validation errors appear and the report still runs, now returning the maximum number of rows, say, 1000.
    What I've Tried:
    I added a Branch-to-Page with condition "No Inline Validation Errors Displayed" so that the page branches back to itself only when no errors appear inline and I changed the validation error messages to appear inline. This has no effect.
    And if I remove the nvl() functions from the above WHERE clause, then, when validation errors are thrown, the report data is replaced with the "No data found" message. All very disconcerting to my users.
    Does anyone know why Apex reports are still run in presence of validation errors?
    And how do I get around this behavior?
    Thank you for any help.
    Elie

    Hi, Scott.
    Thank you for your help/suggestions.
    I like your first suggestion: creating a DA on the GO button that causes my report region to refresh only if both begin and end date fields are populated. And so, I tried doing this.
    My DA looks like:
    Event: Click
    Type: Button
    Button Name: P1_GO
    Condition: - No Condition -
    Action: Refresh
    Fire When Event Result Is: True
    Fire On Page Load: Checked
    Selection Type: Region
    Region Name: People Count
    Event Scope: Static
    Condition Type: PL/SQL Function Body Returning A Boolean
    My PLSQL Code in Expression 1:
    IF ( (:P1_BEGIN_DATE IS NOT NULL) AND (:P1_END_DATE IS NOT NULL) ) THEN
      RETURN TRUE;
    ELSE
      RETURN FALSE;
    END IF;My P1_GO button was automatically changed to "Controlled by Dynamic Action". And "Execute Validations" for this button is set to "Yes".
    Unfortunately, this DA does not work. When both date fields are filled, clicking the GO button does not cause the report (nor anything else) to refresh. However, if I navigate to another application tab and then return back to my report page, I notice that the report does refresh at that point. But clicking the GO button has no effect.
    And when either or both of the date fields is NULLed, clicking the GO button does not cause my validation error messages to appear.
    By the way, I do agree with your comment about the NVL() functions. As I had mentioned in my original post, I also realize that, with my WHERE clause, checking for NULLs in my date fields is not needed. Still, if users fail to fill these date fields, then it would be useful to remind users that these fields should be populated. This is why having the validation checks are still needed despite my WHERE clause.
    In any case, would you know what I am doing wrong here with this Dynamic Action?
    Also, with respect to my first question, why is Apex causing my report to refresh when validaion errors have occurred? This did not occur prior to version 4.2.
    Thank you very much for any further help/advice.
    Elie

  • CALCULATE_TAX_ITEM gives wrong values for Scess and HScess in PO Print

    Dear Friends,
    I am working with PO Print in smartforms hare the Fm CALCULATE_TAX_ITEM is gives wrong values for Scess and HEcess if I put the Gate pass (Basic Excise Duty) Manually.
    And one more Issue is as if I check any line item condition taxes than imediatly when I see the print the all line items Scee and HEcess displays same which I have saw.
    If there is a single line item in PO than there is no issue any way.
    kindly suggest to resolve the issue.
    Regards,
    D Tarun Kumar

    Hi,
    I had the same issue, that taxes on invoice tab of PO was not printed correctly on PO form by calling CALCULATE_TAX_ITEM.
    If you want to have the same tax value as komp-mwsbp, that use following form routine call before FB CALCULATE_TAX_ITEM.
    perform j_1b_save_tax_fields(saplmepo) using ekko ekpo lfa1.
    This is used in transaction me23n also.
    Kind regards,
    Tülay

  • I have a radio button that loses value on validation error

    Hi All,
    I have a radio button that is normal and then goes to readonly when a condition is true. The page has region with items as well as a tabular report region
    While in readonly state any validation error will cause the radio button to loose it's value.
    ?? Is this a bug or am I doing something wrong?
    Bill

    OK, Got the checkbox working...
    function SaveRes() {
    $x("P36_PRIORITY_RB").disabled=false;
    elmName = $x('P36_I_PRIORITY_0').name;
    elm = document.getElementsByName(elmName);
    for (i=0; i<elm.length; i++) {
    elm.disabled=false;
    doSubmit('SAVE');
    BUT ---- this part is now firing at the page rendering and doesn't fire when a validation is hit...
    DECLARE
    l_DynJS VARCHAR2(2000);
    BEGIN
    l_DynJS:='<script type="text/javascript"> '||chr(10)||
    ' $x("P36_PRIORITY_RB").disabled=true; '||chr(10)||
    ' elmName = $x(''P36_I_PRIORITY_0'').name; '||chr(10)||
    ' elm = document.getElementsByName(elmName);'||chr(10)||
    ' for (i=0; i<elm.length; i++) {              '||chr(10)||
    ' elm[i].disabled=true; '||chr(10)||
    ' } '||chr(10)||
    '</script>';
    htp.p(l_DynJS);
    END;

  • Read-only radio group losing value on validation error

    It took quite a while to track this down, but I think I've got it narrowed down properly. I have an APEX form for updating a record in a databse table with a radio group which is conditionally read-only. If that radio group has a value AND is read-only, when the form is submitted and hits a validation error, the value of the radio group is lost.
    For example, the radio group SUBMITTED_FOR_APPROVAL is set to Y and is read-only for a given user. That user then changes something else on the form and submits it. However, the form now hits a validation error for some field. When the form reloads with the validation error displayed, all the fields are restored except the read-only radio group which is now blank. If a select list is used with the identical read-only condition, it works fine. Likewise, if a radio group is used, but the read-only condition is removed, it works fine. It is only when it is a radio group and it is read-only, that the value does not appear to be submitted to the session with all the form values whent he form is submitted.
    Is this a bug or am I simply missing something?
    Apex 3.1.2
    Rgds/Mark M.

    It's using a shared component LOV cleverly called LOV_YN which consists of a static LOV with
    1 Display=Yes, Return=Y
    2 Display=No, Return=N
    The settings in the LOV section on the item iteself:
    Named LOV: LOV_YN
    Display Extra values: No Dynamic translation: Not translated
    Number of columns: 2 Display null: No
    Null display value is blank as is null return value
    Item was setup as a radio group and was only converted over to a select list to work around this issue. Let me know what else you need and thanks again.
    Rgds/Mark M.

  • Page Sentry fails when validation errors exist

    Hi,
    We are using a custom page sentry function as our authentication scheme (code below). This seems to work fine except where a validation error occurs. Instead of the page redisplaying with the validation error, the application displays the login page with the validation error.
    Any ideas why this is happening?
      function Check_Page_Sentry(pUser IN VARCHAR2 DEFAULT 'APEX_PUBLIC_USER') RETURN BOOLEAN IS
      vUsername VARCHAR2(512);
      vSession NUMBER;
      c owa_cookie.cookie;
    BEGIN
      -- extract user from HTTP header
    -- vUsername := UPPER(owa_util.get_cgi_env('REMOTE_USER'));
      vUsername := apex_custom_auth.get_username;
         -- extract session id
    --  vSession := wwv_flow_custom_auth_std.get_session_id_from_cookie;
      vSession := V('APP_SESSION');
      -- check that the executing user account is the
      -- same as the apex application user, and that
      -- a username was populated in the header
      IF USER ^= UPPER(pUser) OR vUsername IS NULL THEN
        RETURN FALSE;
      END IF;
      -- Get SessionId.
      -- Check Application Session Cookie.
      IF wwv_flow_custom_auth_std.is_session_valid THEN
        apex_application.g_instance := vSession;
        -- check requeted username matches session username
        IF vUsername = wwv_flow_custom_auth_std.get_username THEN
          wwv_flow_custom_auth.define_user_session(p_user => vUsername, p_session_id => vSession);
          RETURN TRUE;
        ELSE
          -- Unset the Session Cookie and redirect back here to take other branch.
          wwv_flow_custom_auth_std.logout(p_this_flow => v('FLOW_ID'),
            p_next_flow_page_sess => v('FLOW_ID') || ':' || NVL(v('FLOW_PAGE_ID'), 0)
            || ':' || vSession);
          -- Tell Apex Engine to quit.
          apex_application.g_unrecoverable_error := TRUE;
          RETURN FALSE;
        END IF;
      ELSE
        -- Application Session Cookie not valid --> Define a new Apex Session.
        wwv_flow_custom_auth.define_user_session(p_user => vUsername, p_session_id => wwv_flow_custom_auth.get_next_session_id);
        -- Tell Apex Engine to quit.
        apex_application.g_unrecoverable_error := TRUE;
        IF owa_util.get_cgi_env('REQUEST_METHOD') = 'GET' THEN
          wwv_flow_custom_auth.remember_deep_link(p_url => 'f?' ||
            wwv_flow_utilities.url_decode2(owa_util.get_cgi_env('QUERY_STRING')));
        ELSE
          wwv_flow_custom_auth.remember_deep_link(p_url => 'f?p=' ||
            TO_CHAR(apex_application.g_flow_id) || ':' ||
            TO_CHAR(NVL(apex_application.g_flow_step_id, 0)) || ':' ||
            TO_CHAR(apex_application.g_instance));
        END IF;
        -- Register the Session in Apex Sessions Table, set Cookie, redirect back.
        wwv_flow_custom_auth_std.post_login(p_uname => vUsername,
          p_session_id => nv('APP_SESSION'), p_flow_page => apex_application.g_flow_id
          || ':' || NVL(apex_application.g_flow_step_id, 0));
        RETURN FALSE;
      END IF;
      END Check_Page_Sentry;Cheers
    Paul

    Hi Hari,
    The user is on a specific page that has validation. When they press the submit button the page should be redisplayed with the validation errors for that page, but it is redisplaying the page validation errors on the login page. The error display location is set to 'Inline with Field and ijn Notification'.
    Cheers
    Paul

  • Key Figures With Hide can be shown showing wrong values when displayed in a query

    Hi Experts,
    I have a qiery with two structures in the column(cell Definition) three key figures are displayed and the rest are all hide can be displayed. However whenever i display one of the hidden key figures along with one displayed key figures it initially shoes incorrect values. Once i add another key figure (which has status always show) the hidden jey figure value gets corrected. Is it a problem with the structure? Kindly assist.For example  when i display the actuals(always show) and actuals rate(hide can be shown) the values for actuals rate are wrong , however when i add the plan rate(always ahow) the values for actual rate gets corrected. Screenshots for structures below.

    Hi Sayanto,
    For this I would recommend you to check the Key figure definition in all 3 situations.
    1. original display
    2. display of hidden KF
    3. Display of existing KF
    I suspect that cell references may have some effect on the calculation as you are adding the hidden KF in analyzer directly. You can prove this only by checking  Key figure definition.
    Please let me know if you are facing any issue in getting the Key figure definition itself.
    Also, as Cornelia suggested check if you have any constant selection applied to any of your KFs.
    Hope this helps.
    -Swati.

  • SUM function resulting WRONG values when some cell contains a string

    A very strange problem that can result in wrong financial calculations and big mistakes...
    If we have SUM function for some range of cells and one of them is treated as text string (I mean it's number in fact but Number is sure it's text string). than SUM function calulates ALL cells except this sell silently without errors and results in wrong result.
    For example we have cells and values
    A B
    =====
    1| 15 USD
    2| 0 USD
    3| 37 USD
    4| 1 USD
    5| 3 USD
    here the function SUM(B1:B5) should provide the result "56 USD"
    But if cell B5 is treated as text string (it can be still displayed as "3 USD" so we don't know it's treated as text string for some reason) than SUM(B1:B5) swill answer "53 USD".
    The problem is we DON'T know cell B5 is treated as text and we are fully sure that we have the correct sum of all 5 cells, in reality we see sum of 4 cells only....
    I think anybody working with financial or other important data can imagine how dangerous this SUM behaviour is.... I encountered several times that when importing data from Excel or by other ways numbers are imported as text strings. So if I have a lot of cells I'm not sure if all those cells are correctly styled or some of them for some unknown reason is treated as text string.
    In Microsoft Excel there is a very right solution. In MS Excel if any cell in the SUM is wrong format the SUM function simply provides error as a result. But in Numbers SUM doesn't tell us about error, it simply provides us with a wrong result!
    With formal logic the way SUM works in Numbers is total idiotism. If I ask to SUM B1:B5 than I definitely ask to sum ALL 5 cells, not 4, not 3, not 6 but 5 definite cells. If Numbers can't sum those exactly those 5 cells the only answer of the function should be ERROR.
    But Apple Numbers answers me some result of summing those cells that it's able to sum. Apple Numbers SUM function is not confused that I asked for SUM of 5 (not 4 or 3) cells and I expect to have this sum as a result.
    In fact Apple uses the right logic when we use another formula. If we use =B1B2+B3+B4B5 and any cell contains text string that we'll have error result the sam as in Microsoft Excel. So in this example Numbers behaves correctly.
    So why SUM (B1:B5) can provide totally different result as =B1B2+B3+B4B5?

    alexb2 wrote:
    So when I set format for my number as my local currency it's displayed as 123 XXX (XXX is my currency but it's not in latin). I see it's not only displayed but also stored as 123 XXX. That's different from Excel that stores only numbers in cells and shows number with prefix or suffix - Numbers storex number with prefix or suffix.
    No, you get this behavior because the original sheet is displaying values as currencies. I assumes that the import process pass it as a string because he doesn't recognize it as a currency value. As far as I know, Numbers stores the currency entries as a pure number and an indicator of the used currency.
    Here is an example.
    (a) the description of the numerical value (I underlined it: 456)
    <sf:number-cell sf:flags="4" sf:value="456" sf:col="1" sf:row="2">
    <sf:cell-style-ref sfa:IDREF="SFTCellStyle-46"/>
    <sf:content-size sfa:w="58.659881591796875" sfa:h="14"/>
    </sf:number-cell>
    (b) the description of the format (I underlined the used currency: XAM)
    <sf:cell-style sfa:ID="SFTCellStyle-46" sf:cell-style-default-line-height="12" sf:parent-ident="tabular-Basic-body-cell-style-id">
    <sf:property-map>
    <sf:SFTCellStylePropertyNumberFormat>
    <sf:number-format sfa:ID="SFTNumberFormat-23" sf:format-type="1" sf:format-string="#,##0.00 &#xA4;;-#,##0.00 &#xA4;" sf:format-decimal-places="2" sf:format-currency-code="XAM" sf:format-negative-style="0" sf:format-show-thousands-separator="true" sf:format-fraction-accuracy="-3" sf:format-use-accounting-style="false"/>
    </sf:SFTCellStylePropertyNumberFormat>
    <sf:SFTCellStylePropertyImplicitFormatType>
    <sf:number sfa:number="256" sfa:type="i"/>
    </sf:SFTCellStylePropertyImplicitFormatType>
    <sf:SFTCellStylePropertyFormatType>
    <sf:number sfa:number="257" sfa:type="i"/>
    </sf:SFTCellStylePropertyFormatType>
    </sf:property-map>
    </sf:cell-style>
    Of course, if the original currency string is not recognized, it can't be described as such a feature and the value is treated as a simple string.
    So may be at some moment my 123 XXX is treated like string value.
    Yes, find and replace is a nice tool when importing data - thanks for the tip. the last problem is with already Numbers files that were imported not today (or even createde as Numbers file) where some cell becomes string value after some editing.
    Here again, if you edit a currency string and replace it to a not recognized one, the result will be logically a string.
    There is an other way to give this result:
    copy a value from a cell formatted as XAM currency (just an example)
    paste it in a cell whose format is currency Euro (once again it's just an example).
    The result will be a string.
    The culprit is not the program, it's the user.
    I had several times this situation and last time I found error only because I have my budget in 2 programs - in Numbers and in another special budgeting program. As each program has advantages I have in fact 2 instances of the same budget.
    And when I changed some string in Numbers and another program I noticed the sum is different. I was sure it's another program somewhere buggy but noticed than Numbers simply ignores one of the budget strings and sums without it... In fact it was even not the string I changed, I remember I changed the buggy string about a week ago but I haven't compared budgets that time so my budget had a mistake for some time till I noticed it. If I used only Numbers without copy of budget in another program may be even today I won't notice the mistake.
    The same situation happened not once.
    I think that the choice made by Apple for SUM() is correct. You feel that it is wrong. It's useless to debate more, we will not change the behavior of the function.
    I try to give a workaround.
    The neater one is to add columns as I described in my first response.
    The given formula will clearly flag cells which aren't containing numerical values. If you move the SUM from the original range to the new one, the oddities will be flagged automatically.
    Here is an alternate workaround:
    The currency is XAM.
    In B4 I introduced a typo so the value is no longer a numerical one.
    Given that, the sum in the footer doesn't count the 34 (which is the normal behavior).
    In column C1 I entered =1*B
    which flagged the bad cell.
    The alternate is to use an auxiliary table like aux1
    In A1 I entered:
    =IF(ISERROR(INDIRECT(ADDRESS(ROW(),COLUMN(),,,"main"))),"",IF(ISBLANK(INDIRECT(A DDRESS(ROW(),COLUMN(),,,"main"))),"",1*INDIRECT(ADDRESS(ROW(),COLUMN(),,,"main") )))
    Exactly the same formula in B1, C1, D1, …
    So, the table will automatically grab the contents of the main table (just take care to insert more columns in aux1 than in main)
    In the footer row of aux1, insert a sum formula for columns where there is required.
    Looking at this footer will flag columns where a value may be "wrong" so, it will be necessary (but easy) to scan the column's content to find the red triangle(s).
    Yvan KOENIG (from FRANCE lundi 13 octobre 2008 13:27:40)

  • Error Status 'U'  with error code value set validation error in ValueSet_Validate() from  INV_ITEM_CATEGORY_PUB.Create_Category  API

    HELLO Experts, Please help ,after running the the below anonymous block I am geeting error mentioned in the subject :-
    I am not able to understand why 'U' is coming what is the main cause for this??
    DECLARE
    l_category_rec    INV_ITEM_CATEGORY_PUB.CATEGORY_REC_TYPE;
    l_return_status  VARCHAR2(80);
    l_error_code      NUMBER; l_msg_count      NUMBER;
    l_msg_data        VARCHAR2(80);
    l_out_category_id NUMBER;
    BEGIN  insert into gkaur values ('Before'); COMMIT;
    l_category_rec.segment1 := 'DECAF TEST'; --l_category_rec.structure_id := 50440;
    SELECT f.ID_FLEX_NUM    INTO l_category_rec.structure_id  FROM FND_ID_FLEX_STRUCTURES f
    WHERE f.ID_FLEX_STRUCTURE_CODE = 'XXINV_COST_ACCOUNTING'; l_category_rec.description := 'ABC'; l_category_rec.web_status      := NULL;     l_category_rec.supplier_enabled_flag := NULL;
    insert into gkaur values ('Before RUNNING API');
    COMMIT;
    INV_ITEM_CATEGORY_PUB.Create_Category     ( p_api_version  =>1.0,      
                                                                                                 p_init_msg_list =>FND_API.G_TRUE,        
                                                                                                  p_commit        =>FND_API.G_TRUE,  
                                                                                 x_return_status =>l_return_status,
             x_errorcode    =>l_error_code,          x_msg_count    =>l_msg_count,          x_msg_data      =>l_msg_data,          p_category_rec  =>l_category_rec, --p_category_rec.structure_id =>l_category_rec.structure_id, x_category_id  =>l_out_category_id          );  insert into gkaur values ('After running API'); COMMIT; IF l_return_status = fnd_api.g_ret_sts_success or l_return_status <> fnd_api.g_ret_sts_success
    THEN
    insert into gkaur values ('Hi After status validation');
    insert into gkaur values (l_return_status||'-'||l_error_code||'-'||l_msg_count||'-'||l_msg_data);
    COMMIT;
    DBMS_OUTPUT.put_line ('Creation of Item Category is Successful : '||l_out_category_id);
    ELSE  insert into gkaur values ('Bye');
    DBMS_OUTPUT.put_line ('Creation of Item Category Failed with the error :'||l_error_code);  
    ROLLBACK;
    END IF;
    exception when NO_DATA_FOUND
    then
    insert into gkaur values ('oho');
    commit;
    END;

    HELLO Experts, Please help ,after running the the below anonymous block I am geeting error mentioned in the subject :-
    I am not able to understand why 'U' is coming what is the main cause for this??
    DECLARE
    l_category_rec    INV_ITEM_CATEGORY_PUB.CATEGORY_REC_TYPE;
    l_return_status  VARCHAR2(80);
    l_error_code      NUMBER; l_msg_count      NUMBER;
    l_msg_data        VARCHAR2(80);
    l_out_category_id NUMBER;
    BEGIN  insert into gkaur values ('Before'); COMMIT;
    l_category_rec.segment1 := 'DECAF TEST'; --l_category_rec.structure_id := 50440;
    SELECT f.ID_FLEX_NUM    INTO l_category_rec.structure_id  FROM FND_ID_FLEX_STRUCTURES f
    WHERE f.ID_FLEX_STRUCTURE_CODE = 'XXINV_COST_ACCOUNTING'; l_category_rec.description := 'ABC'; l_category_rec.web_status      := NULL;     l_category_rec.supplier_enabled_flag := NULL;
    insert into gkaur values ('Before RUNNING API');
    COMMIT;
    INV_ITEM_CATEGORY_PUB.Create_Category     ( p_api_version  =>1.0,      
                                                                                                 p_init_msg_list =>FND_API.G_TRUE,        
                                                                                                  p_commit        =>FND_API.G_TRUE,  
                                                                                 x_return_status =>l_return_status,
             x_errorcode    =>l_error_code,          x_msg_count    =>l_msg_count,          x_msg_data      =>l_msg_data,          p_category_rec  =>l_category_rec, --p_category_rec.structure_id =>l_category_rec.structure_id, x_category_id  =>l_out_category_id          );  insert into gkaur values ('After running API'); COMMIT; IF l_return_status = fnd_api.g_ret_sts_success or l_return_status <> fnd_api.g_ret_sts_success
    THEN
    insert into gkaur values ('Hi After status validation');
    insert into gkaur values (l_return_status||'-'||l_error_code||'-'||l_msg_count||'-'||l_msg_data);
    COMMIT;
    DBMS_OUTPUT.put_line ('Creation of Item Category is Successful : '||l_out_category_id);
    ELSE  insert into gkaur values ('Bye');
    DBMS_OUTPUT.put_line ('Creation of Item Category Failed with the error :'||l_error_code);  
    ROLLBACK;
    END IF;
    exception when NO_DATA_FOUND
    then
    insert into gkaur values ('oho');
    commit;
    END;

  • Is there a way to hide email on view source when validation error found using validateAt = onServer?

    I'm confused!
    Here's what I'm doing. I have two seperate files, one is
    form.cfm and one is formdo.cfm.
    On form.cfm, I have the cfform, that takes a name, email,
    phone number, and message and is set with validateAt onSubmit and
    onServer with correct syntax in the code. the cfform action is set
    to formdo.cfm.
    formdo.cfm is the other file that handles all the form data
    and uses cfmail to send it to an email address. formdo.cfm grabs
    all the input fields from form.cfm and shoots out an email with all
    the form inputs. I've tested all of this and it sends an email and
    the form contents as it should.
    So next, I tested the onServer validation with Javascript
    off, and sure enough it told me I had an error and to go back and
    fix it.
    Good there, except when I viewed the source on the server
    validation page, it shows the email address in English even when
    encoded with the character entities. However, if you just call this
    file up by it's URL/formdo.cfm it shows the character entities that
    I entered. I know this is because the server has already
    interpreted it but I'm wondering if spambots can steal that
    'interpreted' email address and I don't especially like the fact
    that a real person can view it in source of the server validation
    page. (since I viewed the email address myself in plain english in
    the source of the server validation.)
    So how can I hide this email besides character entities? Or
    are there any other anti-spambot considerations that someone could
    offer me?
    Thanks for reading this!
    Some additional info on the code in formdo.cfm (syntax is
    correct in actual code but written out here):
    cfmail to = email_as_character_entities
    from = POUND_Email_From_Last_Page_POUND

    I got it going now, although I gave up my character
    entities (which I could've swore were working before I made this
    minor change.)
    So here's what happened. CF was throwing an 'hidden error' in
    the source... it didn't like that email string length wasn't 0 or
    more characters. Which got me wondering how that could be if I
    entered something like 'invalid' in the email box, why doesn't that
    qualify as 7 characters? So then I tried putting a space in the
    cfparam for the email="" to now being email = " " now theres a
    space in between quotes... and that helped a little but then didn't
    really because it was still showing the email with the entities.
    Okay, sort of there. Then, I realized is that I left out all of the
    isNot possibilities, so I plugged all those in, and bam!, no more
    email in the source! Actually, a whole lot less in the source, just
    my 'thank you for the message' message without even a reference to
    email OR the cf error in the source! Pretty cool! Well, thanks
    anyhow for responding anyhow because it's good to know someone is
    willing to help! Oh btw, this was all on CF8.

  • Getting wrong values when using sum() and last() functions in aggregations.

    Hi..
    I created a request in presentation servicews it includes " employ id,name,organization.cost center,annul salary,haouly salary, head count". for employ 13 cost centers available so 13 annul salaries for 13 organizations.each has annul saari 10400,hourly salary 10.previously when i run the request with headcount not including salaries headcount is 1 for 13 rows. when head count is not included in the requst and ran request it gives for 13 rows salaries are 10,400,10 respectively. when i add the head count to the previous request the salaries become 135200,130 respectively. actual head for each organization is 1.in the requst it show as 13. the headcount field in business layes uses 'other sum(headcount),date last(headcount). i need it to same values for salaries after addition of
    headcount also.
    Thank you.
    Edited by: user10797474 on May 20, 2009 8:08 AM

    Did you already have a look in the log file to see the SQL which is sent to the DB?
    This might be a modeling issue in your RPD. Check if you have set the correct dimensionlevels for your facts.
    Regards
    John
    http://obiee101.blogspot.com/

  • How to capture the record value, when an error occurs

    Hi , can you please help us in achieving the below requirement.
    i have source with 10 accounts , i have to update the 5 target tables for the 10 accounts, i am using a for loop to do insert/update operations.
    when an primary key/unique constraint error occurs while doing the insert/update operations, i want to catpure that account number along with the
    error message and store in a table.
    right now i am using sqlerrm,sqlcode in my exception block to capture the oracle error code and error message,i need to capture the account number along with this message. please tell me how to achieve this ...
    thanks

    if you want to log the error in the table and keep going with the rest of them you might want to check out bulk collection exception handling.
    http://psoug.org/reference/array_processing.html
    CREATE OR REPLACE PROCEDURE forall_errors IS
    TYPE myarray IS TABLE OF tmp_target%ROWTYPE;
    l_data myarray;
    CURSOR c IS
    SELECT table_name, num_rows
    FROM all_tables;
    errors PLS_INTEGER;
    dml_errors EXCEPTION;
    PRAGMA EXCEPTION_INIT(dml_errors, -24381);
    BEGIN
      OPEN c;
      LOOP
        FETCH c BULK COLLECT INTO l_data LIMIT 100;
        -- SAVE EXCEPTIONS means don't stop if some DELETES fail
        FORALL i IN 1..l_data.COUNT SAVE EXCEPTIONS
        INSERT INTO tmp_target VALUES l_data(i);
        -- If any errors occurred during the FORALL SAVE EXCEPTIONS,
        -- a single exception is raised when the statement completes.
        EXIT WHEN c%NOTFOUND;
      END LOOP;
    EXCEPTION
      WHEN dml_errors THEN
        errors := SQL%BULK_EXCEPTIONS.COUNT;
        dbms_output.put_line('Number of DELETE statements that
        failed: ' || errors);
        FOR i IN 1 .. errors
        LOOP
          dbms_output.put_line('Error #' || i || ' at '|| 'iteration
          #' || SQL%BULK_EXCEPTIONS(i).ERROR_INDEX);
          dbms_output.put_line('Error message is ' ||
          SQLERRM(-SQL%BULK_EXCEPTIONS(i).ERROR_CODE));
        END LOOP;
      WHEN OTHERS THEN
        RAISE;
    END forall_errors;
    /

  • WRITE command gives unexpected value when currency is JPY (japanse yen)

    Hi All
    I am getting unexpected value for below WRITE command but only when the currency is JPY (Japan Yen)
    lv_amount = 1215.40
    lv_currency = u2018JPYu2019.
    write   lv_amount   to   ev_amount_ext    left-justified    no-gap   NO-GROUPING   currency lv_currency.
    Value wrongly gets as ev_amount_ext = 121540 (Decimal takes as full value)
    Appreciate your help if you have any idea on this please
    Many Thanks
    Iver

    Hi,
      use like this
      lv_amount = '1215.40'
    lv_currency = u2018JPYu2019.
    write lv_amount to ev_amount_ext left-justified no-gap NO-GROUPING currency lv_currency.
    other wise.
    data lv_amounts  type string.
    move lv_amount to lv_amounts.
    lv_currency = u2018JPYu2019.
    write lv_amount to ev_amount_ext left-justified no-gap NO-GROUPING currency lv_currency.

  • PVal.Row gives wrong value

    Dear all,
    I have an add-on that does something in the rows of a number of forms.
    Now I have the problem that if I have just made an Invoice with 6 rows and I change to sales order the Item_event says that I have 6 rows, although my screen is empty.
    How can I be sure that the number of rows the pVal.Row gives me is correct?
    Can I reset everything when I change forms?
    Kind regards,
    John Slaats

    Hi
    If .update method don´t work... ... perhaps you should show us some code..... maybe you are consulting that value on beforeAction

  • Editable field gives wrong value in report.

    Hi,
    I have report with some editable fields. I am using apex_item for one editable select list. I gave functionality to update row by providing go button. when user clicks on go button, I sends page by using javascript dosubmit which updates values in table through update process. everything works fine but sometimes i am not able to read particular value in row. for example...
    Rownum---------select_list--------- button---------- comment(editable)-not used apex_item
    1------------------------ 'abc'---------------- GO----------------------------- new
    2------------------------- null---------------- GO--------------------------- closed
    3 ------------------------'xyz'---------------- GO--------------------------- reopen
    I used apex_item for select list but status is made editable by selecting "text area" from tabular form element of column.
    when I press GO button on row third by selecting xyz it takes null value of 2nd row. same if I select something in 2nd row. i.e. instead of null if I selects 'mno' in 2nd row it takes select list value as 'mno' for third row. I observed this by writing javascript code which alerts me value of variable f01,f02.....
    Please if anybody can help me. I want to know why this happens?

    You might have better luck asking in the Oracle Application Express (APEX).

Maybe you are looking for