TextHeight property wrong???

Hi:
I need to distribute some images vertically parallel to a dynamic text field wich content is loaded from an XML file. The first image top-aligned, the last one bottom-aligned and equal gap between them. Easy, no? That's what i thought but I'm banging my head as I can't get it and my only guess is the textHeight property has a wrong value
I calculate the gap between images with:
imgGap = (txtHeight - imgsHeight) / (nImgs - 1);
the problem is that the first 8 images reach the textfield bottom:
1046 px (the sum of the first 8 images)
1281 px (7 gaps x 183)
2327 px versus the textHeight property being 4646 px (numLines x getLineMetrics(0).height = 4665)
Any idea what's wrong? Thanks in advance
Traces
height:  310
textHeight:  4646
numLines:  311
getLineMetrics(0).height:  15
maxScrollV:  291
=====================
imgsHeight:  2080
nImgs:  15
imgGap:  183
=====================
setTextFormat();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(url);
private function LoadXML(par:Event):void {
var xmlData:XML = new XML(par.target.data);
buildInterface(xmlData);
private function buildInterface(xmlData:XML):void {
setTexto(xmlData.texto);
private function setTexto(texto:String):void {
item_txt = new TextField();
item_txt.embedFonts = true;
item_txt.defaultTextFormat = textDef_fmt;
item_txt.x = txtLeft;
item_txt.y = txtTop;
item_txt.width = txtWidth;
item_txt.height = txtHeight;    // 310 px
item_txt.multiline = true;
item_txt.wordWrap = true;
item_txt.antiAliasType = AntiAliasType.ADVANCED;
item_txt.gridFitType = GridFitType.PIXEL;
item_txt.sharpness = 0;
item_txt.htmlText = texto;
item_txt.selectable = false;
item_txt.mouseEnabled = false;
addChild(item_txt);
// 2/9/09: equal gap between images
trace("height: ", item_txt.height);
trace("textHeight: ", item_txt.textHeight);
trace("numLines: ", item_txt.numLines);
trace("getLineMetrics(0).height: ", item_txt.getLineMetrics(0).height);
trace("maxScrollV: ", item_txt.maxScrollV);
if (sp != null) sp.txtHeight = item_txt.textHeight;  // set the text height for the class wich loads and show images
if (item_txt.maxScrollV > 1) setScroll();
private function setTextFormat() {
txtFont = new menuItems();
textDef_fmt = new TextFormat();
textDef_fmt.font = txtFont.fontName;
textDef_fmt.color = 0x58595B;
textDef_fmt.size = 11;
textDef_fmt.letterSpacing = 1;
textDef_fmt.leading = 4;
textDef_fmt.kerning = true;
textDef_fmt.align = "left";
textDef_fmt.leftMargin = 0;
textDef_fmt.rightMargin = 25;

I found the error, mine of course! The problem was so simply can believe I expent so much time without realizing I just forgot to recalculate images sprite height after adding gaps between them! (embarrassed)
So, textHeight is returning a right value, also I'm not stil sure why the difference with numLines x getLineMetrics(n).height. Depending on the text height and number of images, I've detected a difference between 4 and 19 pixels

Similar Messages

  • [svn:fx-trunk] 13207: Accepted patch for UITextField textHeight property to work around an underlying bug in the player .

    Revision: 13207
    Revision: 13207
    Author:   [email protected]
    Date:     2009-12-23 13:11:43 -0800 (Wed, 23 Dec 2009)
    Log Message:
    Accepted patch for UITextField textHeight property to work around an underlying bug in the player.
    flash.text.TextField does not take into account the leading on the final line of text when measuring itself, yet will scroll if it is not given this extra height. The player has retired this bug.
    Ported componentSmoke test to basicTests.  If this fail it means the player has fixed the bug and we need to remove the workaround.
    QE notes: components/Text/Properties/Text_Properties_tester Checking_Property_textHeight needs to be updated
    Doc notes:
    Bugs: SDK-24461
    Reviewer:
    Tests run: checkintests, mx Label, Panel, TextInput, TextArea and Text
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24461
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as
        flex/sdk/trunk/frameworks/tests/basicTests/halo/scripts/TextTestScript.mxml

    Revision: 13207
    Revision: 13207
    Author:   [email protected]
    Date:     2009-12-23 13:11:43 -0800 (Wed, 23 Dec 2009)
    Log Message:
    Accepted patch for UITextField textHeight property to work around an underlying bug in the player.
    flash.text.TextField does not take into account the leading on the final line of text when measuring itself, yet will scroll if it is not given this extra height. The player has retired this bug.
    Ported componentSmoke test to basicTests.  If this fail it means the player has fixed the bug and we need to remove the workaround.
    QE notes: components/Text/Properties/Text_Properties_tester Checking_Property_textHeight needs to be updated
    Doc notes:
    Bugs: SDK-24461
    Reviewer:
    Tests run: checkintests, mx Label, Panel, TextInput, TextArea and Text
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24461
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextField.as
        flex/sdk/trunk/frameworks/tests/basicTests/halo/scripts/TextTestScript.mxml

  • Report 9i like PDF  instead of CSV

    Hi,
    i'm launching my report (on ORACLE 9iAS) on the web and even if i had set up in the form
    DESFORMAT = DELIMITED
    and even if i had set up in the report
    DEFORMAT = DELIMITED
    when i call my report from the web i obtain a PDF file....
    but when i try to launch my report from report builder i obtain the delimited file
    So, i had look in all the properties of my report but i haven't found this property "wrong" setted...
    May be a problem with the web server???
    Before ask to the administrator of the web server i'd like to be sure that i don't make any error...
    Thanks in advance..

    Are you running from forms ?
    It has to be
    desformat=delimited
    May be you are doing something else wrong.
    Pls have a look at forms-reports integration whitepaper (link below) which explains the process in detail
    You can also post the reports running code here so that anyone can take a look
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • AS3 font embed height issue

    This is probably the weirdest font embed problem I've had in years...
    I'm using Flash CC. Whenever I use an embed font I get this weird result.
    On the left I'm using a system font without embed, on the right I just switch to an embedded font in the library. Nothing else changes. I'm doing everything by code. The height of the TextField and the textHeight property changes, depending on if I use an embedded font or not. It doesn't matter what font I embed, I have tried many different fonts with the exact same result.
    I have tried changing the leading property in the TextFormat object, but there's always some sort of padding at the top of the textField.
    Anyone has any idea of what is going on?

    Hey PierBover more info here.
    http://forums.adobe.com/thread/1235461?tstart=0
    I've stopped using Flash CC because of this bug. Just not worth it.

  • ORM lazy loading not working

    Am I setting the property wrong?
    teams.cfc
    component peristent = true {
         property name = 'emails' fieldtype='one-to-many' cfc = 'emails' fkcolumn = 'team' type = 'array' singularname = 'email' inverse = 'true' fetchtype = 'lazy' lazy = 'extra';
    emails.cfc
    component persistent = true {
         property name = 'team' fieldtype = 'many-to-one' cfc = 'teams' lazy = true;
    If I try entityload('teams'), all emails are loaded too - I do not want this. If I try it the other way around, entityload('emails'), the team is loaded. I only want it to show up when I explicity call it.
    Whether it's set to true, extra, or false -- nothing changes. ormreload() is being used at the beginning of each request.
    Any ideas?

    Got the same problem.... have you solved?

  • Error message: 450 [Wrong number of arguments or invalid property assignment]

    Hello Support,
    I have a vbscript which does some database query. i see from the log that script quits with the below error.
    Error message: 450 [Wrong number of arguments or invalid property assignment]
    but when i execute the same query directly on database, it gives me correct result. also i see that not all the time script quits with this error.
    Does anyone have idea how to troubleshoot it?
    -KAKA-

    i see. i know at which line it fails as error handling is done and will be written in the log.
    sQuery_Prod = "select object_text from sto_ov_externalnode where name = '" & NodeId & "'"
    oRecordSet_Prod.Open sQuery_Prod, oConnection, adOpenStatic, adLockOptimistic
    if err.number <> 0 then
    LogWrite ("Unable to run query")
    LogWrite ("Query: [" & sQuery_Prod & "]")
    LogWrite ("Connection string: [" & sConnect & "]")
    LogWrite ("Error message: " & err.number & " [" & err.description & "]")
    wscript.quit(1)
    end if
    and this piece of code write following in the log.
    07.10.2014 16:55:03:Unable to run query
    07.10.2014 16:55:03:Query: [select object_text from sto_ov_externalnode where name = '{B10255CF-F618-45FB-99BC-31A57D747702}']
    07.10.2014 16:55:03:Connection string: [DSN=Script;DRIVER={SQL Native Client};User ID=xxxxxx;Password=yyyyyy]
    07.10.2014 16:55:03:Error message: 450 [Wrong number of arguments or invalid property assignment]
    Where as i can run query "select object_text from sto_ov_externalnode where name = '{B10255CF-F618-45FB-99BC-31A57D747702}'" successfully directly on database.
    also in the next cycle same query will be successfull within script too.
    Does this help in understanding the problem?
    -KAKA-

  • Property binding for size produces wrong results on size change

    Hi,
    I've a small class extending from BorderPane. This class contains a simple Rectangle whichs size is bound to the size of the BorderPane minus 20:
    package com.example;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    public class InnerBorder extends BorderPane {
        private Rectangle r = null;
        public InnerBorder() {
            this.r = new Rectangle();
            r.widthProperty().bind(this.widthProperty().subtract(20));       
            r.heightProperty().bind(this.heightProperty().subtract(20));
            r.setStrokeWidth(0.5f);
            r.setFill(null);
            r.setStroke(Color.BLACK);
            this.setCenter(r);
    }Used in a small application:
    package com.example;
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.layout.BorderPane;
    import javafx.stage.Stage;
    public class Example extends Application {
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage primaryStage) {
            primaryStage.setTitle("Hello World!");               
            BorderPane root = new BorderPane();       
            root.setCenter(new InnerBorder());
            primaryStage.setScene(new Scene(root, 300, 250));
            primaryStage.show();
    }When I change the size of the window, the size of the rectangle changes also. But the result looks a little bit strange. When a change the size too fast, the size of the rectangle will not be changed correctly. The rectangle will became larger than the window and is then, of course, not longer visible. Changing then the window a little bit slower will again result in a correct rectangle. Until the next too fast window size changing.
    Is there anything wrong on my code?
    When I use the same implementation (property binding) in a Control with a Skin, the result is even more strange. If the subtract is too small (< ~40), the size grows endless. Of course the window size doesnt grows, but the property value grows on every size change, even if the window will be smaller. This code is a little bit more, so I will post it if no one could show me an error in my sourcecode above.
    Kind regards

    Hi. I did some modifications. Now it looks OK.
    import javafx.scene.layout.BorderPane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    public class InnerBorder extends BorderPane {
       // private Rectangle r = null;
        public Rectangle r = null;
        public InnerBorder() {
            this.r = new Rectangle();
           // r.widthProperty().bind(this.widthProperty().subtract(20));       
           // r.heightProperty().bind(this.heightProperty().subtract(20));
            r.setStrokeWidth(0.5f);
            r.setFill(null);
            r.setStroke(Color.BLACK);
            this.setCenter(r);
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.layout.BorderPane;
    import javafx.stage.Stage;
    public class Example extends Application {
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage primaryStage) {
            primaryStage.setTitle("Hello World!");               
            BorderPane root = new BorderPane(); 
            InnerBorder inb = new InnerBorder();
            inb.r.widthProperty().bind(root.widthProperty().subtract(20)); 
            inb.r.heightProperty().bind(root.heightProperty().subtract(20));
            root.setCenter(inb);
            primaryStage.setScene(new Scene(root, 300, 250));
            primaryStage.show();
    }

  • What am I doing wrong with the _ visibility property?

    I have an object that is a movie clip, and I want this object to disappear when you click on him, but also the button that makes the object to appear to make also the object to disappear.Either way, when you click on the object or on the button the second time, the same object to disappear.  I managed to do that, but the first time when you click the button in order to make the object appear it dosen't work, you have to click twice.What am I doing wrong? The object it's a movie clip named frez1, and the button is named fr1. I put this codes in the main timeline:   for the movie clip :           frez1.onPress = function(){                                      _root.frez1.gotoAndStop(2);                                      _root.frez1.gotoAndStop(1);                                           }  for the button:          frez1._visible = false;                                     fr1.onRelease = function(){                                  frez1._visible = !frez1._visible;                              }   The button and the object are on different layers.  Thank you for your help.

    Oh sorry, only now I have seen how it has been displayed. The codes are like this:  for the movie clip:  frez1.onPress = function(){                                     
                                                                                                                                                                _root.frez1.gotoAndStop(2);
                                                                                                                                                                _root.frez1.gotoAndStop(1);   
                                                                                                                                      for the button:   frez1._visible = false;                                   
                                                                                                                                                             fr1.onRelease = function(){                                 
                                                                                                                                                             frez1._visible = !frez1._visible;                             
    Yes the movie clip switching between frames and 1-2 it is turning  him invisible.
    So in order to make him go between this two frames I have to put  the visibity property and not the root ?
    Thank you

  • BI Role upload from BI-JAVA/Portal creates wrong url in Iview property

    Hi Everyobody
    here is a tricky one. Our BI DEV is a Systemcopy from the PRD.
    When we try to upload Roles from the BI-JAVA/Portal it generates the Iviews Worksets correctly.
    The only Problem is that the Iviews property "URL Template" is the one from the Production.
    On our DEV System:
    I checked the bsp from icf with the correct url
    I checked the HTTP URLLOC entry
    I checked the RSPOR_T_SETUP
    I even checkd  the Functionmodule RSBB_URL_PREFIX_GET
    I checked the SAP_BW alias /WAS property
    All have the correct URL.
    Does anyone know where else the wrong url could be located?
    Thanks for your help
    Murat

    it suddenly worked

  • Inputfield----- property enabled..... what's wrong?

    Hello Friends,
    I have a tabstrip, which contains ViewContainerUIelement....( view name e.g View2 ).
    In view2, I have defiend two lables and two inputfields....... property of my inputfields enabled I have checked...but when I run the application the inputfields are shows as "read only" ?
    Then I tried to create attribute "Enabled of type WDY_BOOLEAN" set value to "X" and bind it with the enable property of inputfield..........still same result i.e the inputfield is shown as read-only ???
    Does anyone have any clue, what I am doing wrong ???  ( ofcourse the read_only property is not checked )....
    Regards,

    Thanks for your post......... I have already tripple-checked the "enable" property of all above-containers.........but its set to true....... i.e. the check-box is marked....
    I have no clue why the input-fields are not-editable....
    but when I delete the viewcontainer and place in tabstrip simple transparentcontainer and then place inputfields there, .......it works fine....
    Edited by: Shah H on Nov 18, 2008 4:25 PM

  • DataTable.Rows.Count property is occasionally wrong

    I have a web service in C#.NET which calls a stored procedure using ADO.NET. The stored procedure is always returning 1 row, which is then loaded into a DataTable. The Rows.Count property of the DataTable is then examined.
    When this web service is called repeatedly with numerous requests, it occasionally returns Rows.Count as 0 when it should be 1. I have debugged and examined it at runtime and found that there is indeed 1 row in the datatable, but that the Rows.Count property
    is 0.
    Is this a known bug?
    I'm using .Net Framework 2.0
    Note: This is an issue that occurs very rarely. My testing shows that it takes about 90 minutes to recreate it when you have 2 concurrent processes sending requests repeatedly at a rate of about 10 requests per second.

    Are you sure that there aren't multiple threads access the DataTable?
    Can you post a repro? 
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Windows 7 "There was an unexpected error in the perperty: Data supplied is wrong tupe. (0x8007065D) Please close the the property page and try again.

    How to fix Help

    Hi,
    We nee more detailed information to help you analyze your issue. How did you come across this error, launching the Internet Explorer or  other action?
    Karen Hu
    TechNet Community Support

  • 'expression is of wrong type' - but which and where..?

    hello.
    Hopefully this will be clear as day to someone.. Please could someone tell me why I'm getting the following error message..
    [061010_042222995][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-06550: line 4, column 20:
    PLS-00382: expression is of wrong type
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignoreddata template where trigger is called..
      <?xml version="1.0" encoding="utf-8" ?>
    - <dataTemplate name="UofS_OutstandngExpenses_Report" defaultPackage="SUBIXCLT" dataSourceRef="FINDEV" version="1.0">
    - <properties>
      <property name="xml_tag_case" value="upper" />
      <property name="include_parameters" value="true" />
      <property name="debug_mode" value="on" />
      </properties>
    - <parameters>
      <parameter name="p_claimant" dataType="character" defaultValue="" />
      <parameter name="p_expense_date_from" dataType="date" defaultValue="" />
      <parameter name="p_expense_date_to" dataType="date" defaultValue="" />
      <parameter name="p_raisedby" dataType="character" defaultValue="" />
      <parameter name="p_status" dataType="character" defaultValue="" />
      <parameter name="p_ordered_by" dataType="varchar2" defaultValue="" />
      </parameters>
    - <dataQuery>
    - <sqlStatement name="Q1">
    - <![CDATA[
    SELECT DISTINCT
    erh.invoice_num,
    pap.full_name EMP_CLAIMING,
    DECODE(NVL(erh.expense_status_code, 'Not yet Submitted (NULL)'), 'CANCELLED', 'CANCELLED',
         'EMPAPPR', 'Pending Individuals Approval',      'ERROR', 'Pending System Administrator Action',
         'HOLD_PENDING_RECEIPTS     ', 'Hold Pending Receipts', 'INPROGRESS', 'In Progress', 'INVOICED', 'Ready for Payment',
         'MGRAPPR', 'Pending Payables Approval', 'MGRPAYAPPR', 'Ready for Invoicing', 'PAID', 'Paid',
         'PARPAID', 'Partially Paid',     'PAYAPPR', 'Payables Approved',     'PENDMGR', 'Pending Manager Approval',
         'PEND_HOLDS_CLEARANCE', 'Pending Payment Verification',     'REJECTED', 'Rejected',     'RESOLUTN',     'Pending Your Resolution',
         'RETURNED',     'Returned',     'SAVED',     'Saved',     'SUBMITTED',     'Submitted',     'UNUSED',     'UNUSED',
         'WITHDRAWN','Withdrawn',     'Not yet Submitted (NULL)') "EXPENSE_STATUS" ,
    NVL(TO_CHAR(erh.report_submitted_date,'dd-MON-yyyy'),'NULL') SUBMIT_DATE,
    NVL(TO_CHAR(erh.expense_last_status_date,'dd-MON-yyyy'),'NULL') LAST_UPDATE,
    erh.override_approver_name ER_Approver,
    fu.description EXP_ADMIN,
    erh.total,
    erh.description 
    FROM
    AP_EXPENSE_REPORT_HEADERS_all erh,
    per_all_people_f pap, fnd_user fu
    WHERE erh.employee_id = pap.person_id
    AND fu.user_id = erh.created_by
    AND NVL(erh.expense_status_code, 'Not yet Submitted') NOT IN  ('MGRAPPR', 'INVOICED', 'PAID', 'PARPAID')
    AND pap.full_name = NVL(:p_claimant, pap.full_name)
    AND TRUNC(erh.report_submitted_date) BETWEEN NVL(:p_expense_date_from, '01-JAN-1999') AND NVL(:p_expense_date_to,'31-DEC-2299')
    AND fu.description = NVL(:p_raisedby,fu.description)
    AND erh.expense_status_code = NVL(:p_status,erh.expense_status_code) &L_ORDERED_BY
      ]]>
      </sqlStatement>
      </dataQuery>
      <dataTrigger name="beforeReport" source="SUBIXCLT.beforeReportTrigger" />
    - <dataStructure>
    - <group name="G_XP_CLM_TRACKNG" source="Q1">
      <element name="INVOICE_NUM" value="INVOICE_NUM" />
      <element name="EMP_CLAIMING" value="EMP_CLAIMING" />
      <element name="EXPENSE_STATUS" value="EXPENSE_STATUS" />
      <element name="SUBMIT_DATE" value="SUBMIT_DATE" />
      <element name="LAST_UPDATE" value="LAST_UPDATE" />
      </group>
      </dataStructure>
      </dataTemplate>and the package spec & body..
    --THE SPEC...
    CREATE OR REPLACE PACKAGE Subixclt IS
    FUNCTION beforeReportTrigger RETURN VARCHAR2;
    p_order_by VARCHAR2(50);
    l_ordered_by VARCHAR2(350);
    p_claimant  VARCHAR2(80);
    expense_date_from DATE;
    expense_date_to DATE;
    p_raisedby   VARCHAR2(80);
    p_status   VARCHAR2(80);
    p_ordered_by   VARCHAR2(80);
    --RETURN VARCHAR2;
    END;
    --THE BODY...
    REATE OR REPLACE PACKAGE BODY Subixclt IS
    FUNCTION BeforeReportTrigger RETURN VARCHAR2 IS
    BEGIN
    Fnd_File.PUT_LINE(Fnd_File.LOG,'L_ORDERED_by'||L_ORDERED_BY);
    DECLARE
    L_ORDERED_BY VARCHAR2(50);
    P_ORDERED_BY  VARCHAR2(50);
    P_RAISEDBY VARCHAR2(50);
    P_STATUS VARCHAR2(50);
    P_CLAIMANT VARCHAR2(100);
    P_EXPENSE_DATE_FROM DATE;
    --P_EXPENSE_DATE_FROM  VARCHAR2(50);
    --P_EXPENSE_DATE_TO  VARCHAR2(50);
    P_EXPENSE_DATE_TO DATE;
    BEGIN
    IF (P_ORDERED_BY='Expense Report Number') THEN
         L_ORDERED_BY :='order by 1 asc;';
      ELSIF (P_ORDERED_BY='Person Claiming') THEN
         L_ORDERED_BY :='order by 2 asc;';
      ELSIF (P_ORDERED_BY='Submit Date') THEN
      L_ORDERED_BY :='order by 4 asc;';
      END IF;
    RETURN(L_ORDERED_BY);
    --RETURN NULL;
    END;
    END;
    END;Many thanks for looking..
    D

    Thanks for the suggestion. I initially didnt have the RETURN TRUE after every IF statement and have since removed the 'WHEN OTHERS' section but I'm still getting the same error message. If its to be believed, doesn't it sound like its not finding any of the 3 possible parameter entries available? This can't be so, I've checked the ConC Program parameter name is correct, and the value set linked to it only has available the 3 options where I make the choice..
    Body now reads:
    CREATE OR REPLACE PACKAGE BODY Subixclt
    AS
    FUNCTION BEFOREREP (P_ORDERED_BY IN VARCHAR2)RETURN BOOLEAN IS
    BEGIN
    --FND_FILE.PUT_LINE(FND_FILE.LOG,'L_ORDERED_by'||L_ORDERED_BY);
    DECLARE
    L_ORDERED_BY VARCHAR2(50);
    --P_RAISEDBY VARCHAR2(50);
    --P_STATUS VARCHAR2(50);
    --P_CLAIMANT VARCHAR2(100);
    --P_EXPENSE_DATE_FROM DATE;
    --P_EXPENSE_DATE_TO DATE;
    BEGIN
    IF (P_ORDERED_BY='Expense Report Number') THEN
         L_ORDERED_BY :='order by 1 asc;';
      ELSIF (P_ORDERED_BY='Person Claiming') THEN
         L_ORDERED_BY :='order by 2 asc;';
      ELSIF (P_ORDERED_BY='Submit Date') THEN
      L_ORDERED_BY :='order by 4 asc;';
      RETURN TRUE;
      END IF;
    -- EXCEPTION WHEN OTHERS THEN RETURN FALSE;
    --RETURN(L_ORDERED_BY);
    END;
    END;
    END;error log reads:
    XDO Data Engine Version No: 5.6.3
    Resp: 20707
    Org ID : 102
    Request ID: 2484872
    All Parameters: p_raisedby=SUSAN HOLLIDAY:p_status=:p_claimant=:p_expense_date_from=:p_expense_date_to=:P_ORDERED_BY=Person Claiming
    Data Template Code: SUBIXCLT
    Data Template Application Short Name: PO
    Debug Flag: N
    {p_claimant=, p_expense_date_to=, p_status=, p_raisedby=SUSAN HOLLIDAY, p_expense_date_from=, P_ORDERED_BY=Person Claiming}
    Calling XDO Data Engine...
    [061110_114425280][][STATEMENT] Start process Data
    [061110_114425282][][STATEMENT] Process Data ...
    [061110_114425284][][STATEMENT] Executing data triggers...
    [061110_114425284][][STATEMENT] BEGIN
    SUBIXCLT.p_claimant := :p_claimant ;
    SUBIXCLT.p_expense_date_from := :p_expense_date_from ;
    SUBIXCLT.p_expense_date_to := :p_expense_date_to ;
    SUBIXCLT.p_raisedby := :p_raisedby ;
    SUBIXCLT.p_status := :p_status ;
    SUBIXCLT.p_ordered_by := :p_ordered_by ;
    :XDO_OUT_PARAMETER := 1;
    END;
    [061110_114425287][][STATEMENT] 1: :
    [061110_114425287][][STATEMENT] 2:null :
    [061110_114425287][][STATEMENT] 3:null :
    [061110_114425288][][STATEMENT] 4:SUSAN HOLLIDAY :
    [061110_114425288][][STATEMENT] 5: :
    [061110_114425288][][STATEMENT] 6:null :
    [061110_114425291][][STATEMENT] Executing data triggers...
    [061110_114425292][][STATEMENT] Declare
    l_flag Boolean;
    BEGIN
    l_flag := SUBIXCLT.beforerep(:p_ordered_by) ;
    if (l_flag) then
    :XDO_OUT_PARAMETER := 1;
    end if;
    end;
    [061110_114425293][][STATEMENT] 1:null :
    [061110_114425302][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "APPS.SUBIXCLT", line 27
    ORA-06512: at line 4Many thanks for staying with this..
    S

  • Db file in Replica was created in wrong folder

    Hello!
    I created db file at \BDB_HOME\BDB_SUBx in Master, but in Replica site db file was created in wrong folder which is BDB_HOME.
    Do I miss something than setting path to DatabaseEnvironmentConfig.CreationDir ?
    \BDB_HOME
    |
    -BDB_SUB1
    -BDB_SUB2
    -BDB_SUB3
    FYI
    Ver.5.1.19 (HA)
    C#
    VisualStudio.Net 2010
    Thanks,
    Osamu

    Hi Osamu,
    This is a known limitation with BDB HA at the moment. This issue is tracked internally in SR #19041. We hope to fix it, but do not guarantee that it will make it, in the next BDB release, 5.2.
    Osamu, if you have access to MOS (MyOracle Support) please consult Note 1250654.1 (Doc ID 1250654.1) -- How to Correctly Replicate a Directory Structure Involving Subdirectories Between Master and Client. This article explains in detail this issue and how to work around it for now.
    For reference, to explain the issue in more detail, suppose on the master the environment directory structure looks something like this:
    \BDB_ENV_HOME
         \BDB_SUBDIR_1
         - DbFile_1_1.db
         - DbFile_1_2.db
         - DbFile_1_N.db
         \BDB_SUBDIR_2
         - DbFile_2_1.db
         - DbFile_2_2.db
         - DbFile_2_N.db
         \BDB_SUBDIR_M
         - DbFile_M_1.db
         - DbFile_M_2.db
         - DbFile_M_N.dbOn the client site, the environment directory structure will be incorrectly replicated and will look something similar to this (with all database files ending up under one of the subdirectories):
    \BDB_ENV_HOME
         \BDB_SUBDIR_1
         \BDB_SUBDIR_2
         \BDB_SUBDIR_M
         - DbFile_1_1.db
         - DbFile_1_2.db
         - DbFile_1_N.db
         - DbFile_2_1.db
         - DbFile_2_2.db
         - DbFile_2_N.db
         - DbFile_M_1.db
         - DbFile_M_2.db
         - DbFile_M_N.dbThe workaround to resolve this issue depends on a manual hot backup. AUTOINIT should be turned off via rep_set_config with DB_REP_CONF_AUTOINIT and 0. Than the client should be bootstrapped with the databases and logs from the master and recovery should be run as described in the Berkeley DB Programmer's Reference Guide, in the Hot failover section.
    Basically, copy all the databases, copy the logs, run catastrophic recovery on the new client environment directory, and start the application. By turning off AUTOINIT you might need to take care of handling the REP_JOIN_FAILURE event error.
    To summarize, the workaround implies the following actions:
    1. On the client environment call DbEnv::rep_set_config like this:
    DbEnv::rep_set_config(DB_REP_CONF_AUTOINIT, 0);With the C# API it's something like:
    DatabaseEnvironmentConfig envConfig = new DatabaseEnvironmentConfig();
    envConfig.RepSystemCfg = new ReplicationConfig();
    envConfig.RepSystemCfg.AutoInit = false;
    DatabaseEnvironment env = DatabaseEnvironment.Open(envHomeDir, envConfig);or you could use the DatabaseEnvironment's class RepAutoInit property.
    2. Handle DB_REP_JOIN_FAILURE on the client environment, which could be returned from DbEnv::rep_process_message. Handling implies setting an event callback function via set_event_notify for DB_EVENT_REP_JOIN_FAILURE like this:
    DbEnv::set_event_notify(eventsHandler);where eventsHandler is a callback function that respects this signature:
    void (*db_event_fcn)(DB_ENV *dbenv, u_int32_t event, void *event_info)and internally checks to see if event is DB_EVENT_REP_JOIN_FAILURE. If it is, it may trigger copying of the backup files from the master onto the client.
    With the C# API you will set an EventNotifyDelegate delegate using the EventNotify property and check the NotificationEvent.
    3. Start the client. Because AUTOINIT is turned off, internal init will not be performed, hence it will not remove the directory structure on the client environment.
    4. If the event callback function gets notified of the DB_EVENT_REP_JOIN_FAILURE it means that the backup of the master (databases and log files of the master) is required on the client. Take a manual hot backup as per the guidelines in the Hot failover section, and copy the database and log files onto the client; this is something that the event callback function can do, when it handles DB_EVENT_REP_JOIN_FAILURE by using something like rsync to copy the files between the machines.
    5. If a backup was copied onto the client, run a catastrophic recovery in the client environment either manually via db_recover -c, or programmatically by specifying the DB_RECOVER_FATAL flag to the client's DbEnv::open call (with the C# API you specify it via RunFatalRecovery)
    6. After the catastrophic recovery will have been performed and the client will have started, all the replication synchronization will work as expected, replication messages will be processed correctly, and the directory structure will be maintained.
    Regards,
    Andrei

  • Is it better to use Invoke nodes or property nodes to set/get control values?

    I have a series of VI's that run in parallel, each to manage different functions- pumping, sensing, a fluid flow model, an experiment generator/runner.
    These need to exchange data, which I am currently doing using invoke nodes (that are all in subVIs), using methods "Set control value" and "Get control value". I find that every now and then (perhaps 1% of the time) the data isn't exchanged correctly and therefore the system doesn't work. I can imagine how "set" could go wrong if they happen simultaneously, and can devise ways of preventing this. However, the "Get" method suffers from the same problem. This is a major problem, because I want to leave it running for several hours.
    I could in
    principle achieve the same thing using property nodes and find myself wondering if this might be more reliable. But I don't want to change over only to find it makes no difference!
    Can anyone advise?

    You can use some kind of syncronization such as queues, occurances, or notifiers but I think the easiest way would be to create and action engine. This was only one action can execute at a time avoiding a "race condition". Possibly a write action and a read action might help. You also can add queues or notifiers into this concept. hope this helps.
    BJD1613
    Lead Test Tools Development Engineer
    Philips Respironics
    Certified LV Architect / Instructor

Maybe you are looking for

  • HTML Snippet was working on iWeb 08 but not now on iWeb 09

    Having upgraded to iWeb 09 from iWeb 08, suddenly I am unable to upload slideshows using a third party program called "SlideShowPro for Lightroom" successfully. They embed in iWeb fine but once they export they do not show up online. So, in short the

  • TS2972 One of my computers is working but the other one isn't

    One of my computers is working but the other one isn't, so it isn't a network problem. I've restarted iTunes, logged out and logged back into home share and the library still isn't coming up. What's the problem and what should I do?

  • How does my Iphone and Nike + work?

    Hi there, i'm using for a week the Nike+ sensor, but i've asked myself how does they communicate and i doesn't know. Maybe you know the answer, please let me know?

  • TS3499 MacBook SMC Firmware Update 1.4 won't install

    Just received my new Magsafe 60w Power Adaptor from the apple store today, however although it is powering my MacBook, it is not charging it. I bought my MacBook in early 2008 and it is version 10.5.8, it has an intel core 2 duo processor, and leapor

  • Are some standard guidelines/steps to follow before approving Transports?

    Hi, can you help to with steps and procedures that needs to be followed before approving objects to be transported to Productions? Are some standard guidelines i.e steps to follow before approving Transports? Or, just the fact that a solution to a pr