Flex 4: model component: STATES: Null problem

Hello

I have created a model based on the following link component

http://help.Adobe.com/en_US/Flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-79c3.html

My component uses STATES, and my code assign a new runtime component in daze. When I run the code, I get "cannot access a property or a method of a null object reference." Error.

Help, please

Code in the main file

     <local:TemplateComp>
          <local:Edit>
               <s:RichEditableText/>
          </local:Edit>
     </local:TemplateComp>

Model component Code

<?xml version="1.0" encoding="utf-8"?>
<s:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:s="library://ns.adobe.com/flex/spark" 
           xmlns:mx="library://ns.adobe.com/flex/mx"
           verticalAlign="middle" horizontalAlign="center"
           width="400" height="300" initialize="vgroup1_initializeHandler(event)"> 
     
     <s:states>
          <s:State name="State1"/>
          <s:State name="SECOND"/>
     </s:states>

     <fx:Script>
          <![CDATA[
               import mx.core.UIComponent;
               import mx.events.FlexEvent;               
               public var Edit:UIComponent;

               protected function vgroup1_initializeHandler(event:FlexEvent):void
               {
                    BaseArea.addElement(Edit);
               }

          ]]>
     </fx:Script>
     
     <s:Label text="First View" includeIn="State1"/>
     <s:VGroup id="BaseArea" includeIn="SECOND" width="200" height="200"/>
</s:VGroup>

 

Hello

When you use the component States are word instantiated until they are displayed if you add the 'immediate' components = itemCreationPolicy property, you must reference until the status is shown he will solve your reference error

David

Tags: Flex

Similar Questions

  • How can I associate with the component States custom content scroll buttons?

    Hi, I need help I have a deadline to meet in the next few weeks and im stuck!

    Basically, what I did is I made a content scrolling lists, containing about 10 products in each of them, my plan was to make a button for each product so that users could click on this product and bring them to a new page containing more detailed information on this product. When they have finished looking at this product they can click a button to return to the list that they were previously. However I can't do just a State nine for each product there is a limit to 20 States, and I'll need about 50 of them.

    So, what I read, I will need to create custom components. the only problem with that is that I can't link to the component on a different State personal main scenario (I get no option to link to the custom component States).

    If I put the image of the product detailed in the scroll pane, that I can't make a link to it, however, he's inside the scrolling content and it just scrolls autour and stuff that is not what I want. as it gives an appearance of disorder.

    -Basically, I need from the buttons in the drop-down list, a link to a more detailed page for this product. Then be able to go back to the list button.

    If anyone has any input on how to do this, please help me. Start panic now, as this must be finished before September: s

    BTW, I'm happy to share my .fxp which helps produce.

    Thank you, hoping for some useful answers on this topic

    -Tom

    Hi Tom,

    Add this back here to share my wire with the community.

    Brought together a quick .fxp based on the section "product" of your project.

    Take a look at how the product lists are linking in the pages of detail of product within their custom components.

    Using this model, you should be able to expand outside the States of infinite product details.  If a particular area has more than the maximum allowed States, just start a new custom component (part 2 of this section of product).

    Let me know if you have any questions. Hope that it affects you on a path to get your complete project.  It is looking nice.

    Tanya

  • Resetting the component States

    Hi - I'm almost finished with a Project Gallery, done in CF CS5, but the component States cannot be reset correctly.

    I did the first State, placed a multi-state component, define the status of component in the timeline according to the tutorials and answers here *, confirmed that it worked and then duplicated State. Of the following States, I deleted the component and placed new components and define the reports component in the panel mounting. But these don't work.

    I'm so close to finished - did anyone know what I need to do? You can see the project here:

    http://cactapus.NET/test/AAU/StudyAbroad/main.swf

    (the html code of the catalyst is broken, but that's another topic)

    Go to student reviews > Cindy, click around and back to all profiles of students, then back to Cindy. You can see that he restore the State 1.

    If you go to another profile, they do not return to State 1. they stay where you left them.

    The work file is here:

    http://cactapus.NET/test/AAU/StudyAbroad/6-4.FXP

    I thank very you much for any help.

    * resources:

    http://flashcats.NET/2010/06/15/statefulness/

    http://forums.Adobe.com/message/2899317#2899317

    http://forums.Adobe.com/message/2804975#2804975

    Hello

    You're definitely on the right track. If you take a look at your timelines, the ones you should look at is:

    Cindy > choose

    Kirah > choose

    Malorie > choose and

    Liz > choose

    In Liz and Kirah transitions, you're reset CC_Malorie state1, not CC_Liz and CC_Kirah, respectively.

    -Bear

  • Model message shows "null" password of ForgotPasswordHandler

    Hello

    I configured ForgotPasswordHandler with

    templateEmailSender = / atg, userprofiling, email, TemplateEmailSender

    profileTools = / atg/userprofiling/ProfileTools

    newPasswordParam = newpassword

    loggingDebug = true

    loggingInfo = true

    # The URL of the page of jsp/jhtml e-mail template

    templateURL=/prototype/emailtemplates/forgot_password_email.jsp

    # Field of enamel

    messageSubject = forgotten password Email

    # The email field

    messageFrom^=/atg/dynamo/service/SMTPEmail.defaultFrom

    # MessageContentProcessor, responsible for the processing of content

    contentProcessor = / atg, userprofiling, email, HtmlContentProcessor

    Whenever I try to hit the ForgotPasswordHandler of the jsp forgotPassword method, I could see the log below

    16:36:25, 773 DEBUG INFO [ForgotPasswordHandler] key is newpassword

    16:36:25, 773 value DEBUG INFO [ForgotPasswordHandler] is gjKZxJ

    16:36:25, 774 DEBUG INFO [TemplateEmailSender] invoked sendEmailMessage.

    [16: 36:25, registered e-mail request 774 DEBUG INFO [TemplateEmailSender] EmailRequest[atg.userprofiling.email.TemplateEmailInfoImpl@37d8ef10 (mailingId = null, messageSubject = password requested)] with sync EmailSynchronization [TransactionImple < ac, BasicAction: 7f000001:2 b 92: 51dd3ef5:db8 status: ActionStatus.RUNNING >]

    16:36:25, 774 INFO [ForgotPasswordHandler] successful DEBUG: null content of value is:

    16:36:25, 775 DEBUG INFO [ForgotPasswordHandler] name = email [email protected] class = 'java'.lang. Channel

    16:36:25, synchronization of e-mail 775 DEBUG INFO [TemplateEmailSender] EmailSynchronization [TransactionImple < ac, BasicAction: 7f000001:2 b 92: 51dd3ef5:db8 status: ActionStatus.COMMITTED >] requests for e-mail queues

    [16: 36:25, 776 delisting request queued email DEBUG INFO [TemplateEmailSender] EmailRequest[atg.userprofiling.email.TemplateEmailInfoImpl@37d8ef10 (mailingId = null, messageSubject = password requested)] size of the queue = 0

    [16: 36:25, 777 INFO [TemplateEmailSender] DEBUG in queue the request by email EmailRequest[atg.userprofiling.email.TemplateEmailInfoImpl@37d8ef10 (mailingId = null, messageSubject = password requested)] size of the queue = 0

    16:36:25, 851 INFO [TemplateEmailSender] created DEBUG session atg.servlet.sessiontracking.GenericHttpSession@1b683c7e with the session id, parent id 53F441CC033AFD8986E6BB849D92C49A = 53F441CC033AFD8986E6BB849D92C49A, cookieString = JSESSIONID = 53F441CC033AFD8986E6BB849D92C49A

    16:36:25, 852 INFO [TemplateEmailSender] rendered path info /teleflora/prototype/emailtemplates/forgot_password_email.jsp;jsessionid=53F441CC033AFD8986E6BB849D92C49A DEBUG

    16:36:25, 861 rendered INFO [TemplateEmailSender] DEBUG model has the text/html content type; Charset = UTF-8

    16:36:25, 861 INFO [TemplateEmailSender] DEBUG prepare to create the message with the text: < HTML > < HEAD > < TITLE > your new password < / TITLE > < / HEAD > < BODY BGCOLOR = "#FFFFFF" VLINK = "#637DA6" LINK = "#E87F02" > < font type = "verdana" size = 2 > dear jbalasubramanian, < p > This is your login with a new password. < p > Login information : [email protected] < p > < b > new password: null < /b > < / police > < body / > < / html >

    16:36:25, 862 mapping INFO [TemplateEmailSender] DEBUG encoding UTF-8 not found

    16:36:25, 862 INFO [TemplateEmailSender] DEBUG user message creation: 150000 ([email protected]), contentType = text/html; charset = UTF - 8

    16:36:25, 879 DEBUG INFO [TemplateEmailSender] doSendEmailMessage: numMessages = 1

    16:36:25, 880 DEBUG INFO [STDOUT]: setDebug: JavaMail version ${mail.version}

    16:36:25, 880 DEBUG INFO [STDOUT]: getProvider() return javax.mail.Provider [TRANSPORT, smtp, com.sun.mail.smtp.SMTPTransport, Sun Microsystems, Inc.]

    16:36:25, 881 INFO [SMTPEmail] DEBUG tries to open a connection...

    16:36:25, 881 INFO [STDOUT] SMTP DEBUG: true, false useAuth useEhlo

    16:36:25, 882 INFO [STDOUT] DEBUGGING SMTP: try to connect to the host '172.31.1.23', port 25, false isSSL

    I replaced FormHandler password print and is getting printed. But the e-mail template jsp that uses request.getParameter ("newpassword") it shows as null.

    What could be wrong?

    Problem solved. I used request.getParameter ("newpassword") as suggested in other forums. When I went to null, it worked

  • Model: PCG - 71914L driver problem

    Good day to all,

    I just want to ask a help for my Sony Vaio ChasisModel: PCG - 71914L, model #: VPCEH21FD, I'm having a big problem with regard to drivers for Windows 7 Ultimate, I can not find drivers for it. Hope someone can help me with this. Thanks for your concern and even everything out there guys. Hope someone could help me. Thank you very much...

    Sincerely,
    PowerTools

    Hello Powertools,
    Your VPC-EH21FD is a portable model.
    For Canadian models, click on the top of the Pavilion and changing from the United States to the Canada, then enter your model.

    Your drivers can be found here:
    http://eSupport.Sony.com/ca/p/model-Hom... ownloadTab

    Please note that the drivers are labeled as Windows 7 64 (premium), but are in fact Windows 7 64-bit drivers, the fact that its premium, professional or ultimate edition would not change the driver. What is important is that the driver is for a 64-bit operating system instead of a 32 bit OS.

  • Pass a parameter for the custom component - get null

    Main MXML (part of the code):

    < s:Application

    "" xmlns:ns1 = "*".

    creationComplete = "init (); >

    import MyComponent;

    private function init (): void {}

    var myArray:Array is ["FFF", "TT", "RRR"];.

    myComp.width = 200;

    myComp.height = 200;

    myComp.getArray = myArray;

    myContainer.rawChildren.addChild (myComp);

    }

    < fx:Declarations >

    < ns1:MyComponent id = "myComp" x = "0" y = "0" / >

    < / fx:Declarations >

    custom component:

    package 
    {
              public var getArray:Array;
    public class MyComponent extends Sprite { } trace (getArray); trace null
    }
    }

    What is myContainer?

    I have a working version with my container as UICOmponent inside the hand.

    SerializableAttribute public class MyComp extends Sprite

    {

    private var _getArray:Array;

    public void MyComp()

    {

    }

    public function get getArray (): Array

    {

    Return _getArray;

    }

    public function set getArray(value:Array):void

    {

    trace ("setter", value);

    _getArray = value;

    }

    }

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx".

    "" xmlns:NS1 = "*".

    minWidth = "955" = "600" minHeight

    creationComplete = "init (); » >

    private function init (): void {}

    var myArray:Array is ["FFF", "TT", "RRR"];.

    myComp.width = 200;

    myComp.height = 200;

    myComp.getArray = myArray;

    myContainer.addChild (myComp);

    }

    ]]>

    Not sure whether what you are after but it traces:

    Setter FFF TTT, RRR

    Why do you add to rawChildren?

    C

  • Flex application and component talk to each other?

    Hi all.

    I have built on a large flex project and try to condense a little downwards out of the code and put it in the individual components.  Can I call then.  Not only to reduce the number of lines of code, but to also make it easier to make improvements, and if others get involved with the project that they may be charged a component rather than all of the code.  In my view, it is logical to try to work this way.

    I should point out that I am using Flash Builder 4.

    To try it, I worked on an example.

    What I hoped to do, it is to pass variables and the values of a component to the main application, is it possible?

    That's what I've tried but I get an error the main code can not see the text field in the component.

    Code in the main file

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = minHeight = "955" "737" height = "600" width = "470" xmlns:ns1 = "*" >
    < s: states >
    < name s: State = "on" / >
    < name s: State = "two" / >
    < / s: states >
    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >

    < fx:Script >
    <! [CDATA]

    private function btn_submit (): void
    {
    If (txt_user.text = 'Hello')
    {
    currentState = "two";
    }
    on the other
    {
    currentState = "a";
    }
    }

    []] >
    < / fx:Script >

    < s:Label x = "10" y = "10" text = "Test Log In on component" width = "717" textAlign = "center" fontWeight = "bold" fontSize = "18" / >
    < ns1:Loginform = "190" x y = "71" >
    < / ns1:Loginform >
    < / s:Application >

    The component code

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Group ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" width = "400" height = "300" >
    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >
    < s:TextInput = "53" x = "62" width = "298" id = "txt_user" / >


    < s:Button = "281" x = "92" label = "Button" click = "btn_submit ()" / >
    < / s:Group >

    I don't know if I want to do (spend data from a component to the application main and rear) is possible.

    If someone could develop on it, I would be grateful!

    If the "publishName" of the component property is writable, then Yes.

    Two solutions:

    -First if you always use the same file name:

    
    

    -So if you want to change it, you can always use:

    
    

    And then in the Script code:

    myRecorder.fileName = "myFileNameOrWhateverStringHere";
    

    If the property is not writable, because it has no Set accessor, you must provide one (that is if you can change the code of the component).

  • All tables and xml are be NULL problem

    Hello guys

    I'm working on a project that uses the format of loading xml, e4x and intensively, table manipulation and it was fine but now I'm stuck on a strange problem.  All code was beautiful and application work and respond in a desired way, but then mystourisly it stopped working and started to return NULL values in almost all the tables of the (internal) actionscript and XML varibales.

    Now every time I have to load the xml file and set the loaded xml internal variables, internal values get only NULL instead of data.
    The same is the situation with the berries, I created a few components in mxml, and when I passed them to reference tables, the code gets compiled successfully, but again Array has only null values [that code worked very well too]

    I wonder if Adobe Flex did an update reduced to silence or something similar and it's the result of this things!

    I use Adobe Flex 3.2 SDK 3.3 on windows Vista Ultimate Edition.

    Please check this project attached, import it and see if you face the same problem

    Thank you

    Link to the problematic project

    http://isolatedperson.googlepages.com/problemXperiment.zip

    Problem screenshot

    http://isolatedperson.googlepages.com/xmlissue.jpg

    HTTPService to load the data. You will have less problems.

    
    
         
              
         
         
         
    
    
  • HP Officejet Pro 6830, model 6: print head problems

    Have an Officejet Pro 6830, model 6835.  Error message received saying this printer had print head problem.  Also the error code oxc19a0020.  Troubleshoot-carried out every day to solve the problem without success.  Reset, change cartridges, activated and deactivated (including source) and nothing has worked.  Bought on 23/04/15.  Only three months old.  Help!

    Hi, I would advise to call HP support immediately about this, as it is likely that you will need a replacement printer.

    Can you please let me know how you go?

    Thank you

    Ciara

  • PID state machine problem

    Hello.

    I have a problem with my design of State machine and I need help to know what to do.

    I m using a state machine six steps for HVAC test machines. Password-> Idle it down-> Run-> Acquire-> Report--> Shut. Run and acquire the States have PID controls in them (almost identical States) and very fast three-way-valves they´re for the desired control of the temperatures of the water mixture. I m running try to get static values for temperatures and I m satisfied with them, moving to acquire the State to get the data in the report. My problem is that when the race to acquire, PID control outputs from scratch and at that time there static temperatures have disappeared. Worst case is that the tested machine HVAC stops following liquids from bad weather and I start from the beginning.

    Is there a way to tell the PID.vi the release of starting a specific value? In this case, continue to the last value that they released in the State of enforcement?

    I know that scheluding of gain would do (machines would be not closed) but I Don t want to use it because the original problem would still be there.

    Arctic_Fox wrote:

    So PID vi:s remove from the state machine, placing them inside the while loop that surrounds the state machine and leaving all necessary writing DAQmx-functions inside the race and the States Acquire would make corrections on the positions of the valve only on those two States. Right?

    It is a good idea.  I leave the DAQmx functions outside the state machine as well.  If you need to write a fixed value for the outputs when the PID is not running, use the PID that you already have to determine the value to write (output PID or anything else) on/off switch.  In addition, I would make sure the reset of PID entry is true whenever the PID is not running.

  • Draw a model of State-space

    Hello!

    I'm doing a project and I'm stuck and I am in need for some help.

    I made a State-space model that I use for this project. I used Matlab (with and without simulink) to simulate this model and to trace its behavior. But when I want to do this in LabVIEW, I'm stuck.

    I don't want to use Mathscript, because, while it would in Matlab.

    Does anyone have any ideas of how I can simulate and draw my state space model in the parameters of the matrix that I?

    ________________

    Look at the setting, I want to draw x.

    Well, you can check if you have by looking meny help > about LabVIEW... You should see this icon if you have the CD & SIM module (of course, the logo must be 2009 in your case):

    Again, if you haven't and you're academic, try to talk to your administrator and check its availability. If you are a student, the student version of LabVIEW also have this software.

    Doesn't depend on any other software other than LabVIEW MathScript RT Module (not the "Matlab Script node") and it allows to compile m-code directly in LV in general, its speed depends on the type of code you have.

    CD & SIM module can be considerably fast, but again, it depends on what kind of code you are using. The function of the State space in control and the Simulation loop has good performance compared to the linear Simulation.vi CD.

  • Bought B210a in the Portugal. Now to return to the United States. Problems?

    After four years of volunteering in the North of Portugal, where I bought my printer Photosmart Plus B210e (still in warranty) and my laptop HP Pavilion PC (out of warranty of six weeks), for reasons of ill health, I must return to the United States. [The printer that I had delivered statements did not survive the movers.]

    I have problems with my printer, or warranty with the purchase of ink cartridges?  I saw the messages of other people outside the United States, saying that their printers require different cartridges and more expensive - here, I use four 364, it is the same cartridge in the USA?

    HP/USA will accept a guarantee of common market HP/ESA (given that HP has all printers manufactured in China, there should be no problem, but...).

    Unfortunately, I live on a medical pension, which means that I don't want to buy expensive equipment that I already bought and paid for.

    Thank you very much - this is my first time on this forum.

    FCZ +.

    You can continue to use the cartridges in the printer and spare cartridges you have.  Once you miss if ink and the need to replace a cartridge you need to Contact HP to ask a "regionalization Reset." Do not charge for this, it is covered under the warranty of the cartridge. You will need to have access to your computer and printer then on line with HP. You will also need to have a set of cartridges for the new region, once completed reset cartridges of region of origin no longer works.  Webpage of HP on the subject is here.

    The cartridges in the United States will be 564.

    I don't know how the EU guarantee would transfer to the United States, you must Contact HP.

  • Modeling Fulfillment States

    Hello

    I understand the States of accomplishment we need to report during the execution of the order, in this process, I created the external execution States that I am expecting to receive the external system of accomplishment in each type of control function component specification CRM system. After that, I created the map to set the Mapped state that I need to report to the CRM and rules of Composition level command and element of realization.

    But actually I have several questions about job States:

    -Where can I see the status of external and State mapped in the point of Data\Order of control Structure and where can I see the status of the order resulting from the command Composition Ruleset?

    -How can I change the external executing State during execution of the function? I need to put in place an automated task to run an update of the order in the process of HRT or something is automatic?

    -How should I send the State map to CRM? Can I use an event or an automated task in the process for this purpose, or is there an automatic way to do?

    Thank you in advance.

    Concerning

    AndresG

    Hi AndresG,

    You use O2A cartridges or not?

    If you do not, by default, the States of execution are at the location - next
    (a) status of external-/ ControlData/functions//orderItem/ExternalFulfillmentState
    (b) status of composite (i.e. the output of composition FS)-/ ControlData/OrderItem/OrderItemFulfillmentState for items and/ControlData/OrderFulfillmentState order for the blanket order.
    Note that mapped fulfillment States are not preserved.

    These default values are configurable by creating the FulfillmentStateModule.xquery file and the catalog XML to include the file. In fact, this is how O2A cartridges replace these default values; the States of execution are stored in the /OrderLifeCycleManagement. area

    Yes, you can update the status of external achievement during execution of the function - in your automation function, simply send back the external executing State in your xquery automator.

    You need to send State composite realization to CRM, Yes, create an event Notification has changed data - configured to trigger by change of the State of Composite implementation.

    See you soon,.
    Daniel Ho
    OSM product management

  • function nvl value null problem

    Hello

    I have a table named "SAL" with two columns "NAME" and "SALARY".
    Column 'NAME' got the varchar2 data type and column "SALARY" has got the number data type.

    Here is the command

    Select nvl(salary,0) from sal where name = "steve";

    Now if the table got an entry where name is steve, and the salary is null then it will return 0 because of the nvl function.

    But if he has no entry with the name steve the result is null.

    I want to if there is even no entry named steve in the table, the result should be 0 instead of null. What will be the command?

    Gul says:
    Hello thanks for your response. It solved my problem. Another question is what do I do if want to put the results of this command

    Select count (*) case when 0 then 0 max (salary) to another end wage
    by sal where name = "Steve";

    You can use NVL

    select nvl(max(salary),0) salary
    from sal where name = 'Steve';
    

    in a variable. How can do us?

    In PL/SQL?

    declare
      ln_sal sal.salary%type;
    begin
      ......
      select nvl(max(salary),0)
      into ln_sal
      from sal where name = 'Steve';
      .....
    end;
    

    Published by: JAC on 19 Sep 2012 09:16
    Assuming that there are no null values in the column SALARY...

  • Join CPC IKM (null) problem

    Hi all
    I ve a SCD table. This table contains information of people and people id is PK. When the information of a person changes, new line is inserted and the current flag is updated. But I have a problem with null columns.
    My query checks the difference between source and target colums, it cannot match the null columns. I can solve this problem NVL but I d like to add null null my target table columns columns.

    I use the sub expression to search for a line has changed.



    and NOT EXISTS)
    Select 'x '.
    < % = odiRef.getTable ("L", "TARG_NAME", "A") % > T
    where < %=odiRef.getColList ("","t. [column] \t= [EXPRESSION]", "\n\tand\t", "", "SCD_NK") % >
    < %=odiRef.getColList ("and\t", "(([EXPRESSION] = t. [COL_NAME]))", "\n\t\tand\t", "", "((SCD_UPD OR SCD_INS) AND REW) AND!" ") TRG AND! SCD_NK") % >
    < %=odiRef.getColList ("and\t", "\t= 1","\nand\t","","SCD_FLAG")% [column] > ")
    < %=odiRef.getColList ("and\t", "[column] \t= to_date ('01 - 01-2400', ' mm-dd-yyyy')","\nand\t","","SCD_END")% >) ")
    )


    How can I convert all nvl and char data types in this expression to a match between the columns.
    (IE nvl (to_char (targetcolumn1), '-1') = nvl (to_char (sourcecolumn1), '-1'))


    All the expression:


    Insert / * + APPEND * / into < % = odiRef.getTable ("L", "INT_NAME", "A") % >
    (
    < % = odiRef.getColList ("", "[column] ',' \n\tclick ', ','" (((SCD_NK ou SCD_INS ou SCD_UPD) and!)) "") TRG))') % >
    < % = odiRef.getColList ("", "[column] ',' \n\tclick ', ',',"(SCD_START)"") % >
    IND_UPDATE
    )
    < % / * QUERY WITHOUT GROUPBY * / if (odiRef.getGrpBy () .length () == 0) {% >}
    Select < % = odiRef.getOption ("OPTIMIZER_HINT") % > < % = odiRef.getPop ("DISTINCT_ROWS") % >
    < % = odiRef.getColList ("", "[EXPRESSION] ',' \n\tclick ', ','" (((SCD_NK ou SCD_INS ou SCD_UPD) and!)) "") TRG))') % >
    < % if (odiRef.getColList ("", "D", "", "", "(SCD_START)" "). length()!) = 0) {}
    If (odiRef.getColList ("", "[EXPRESSION] ',' \n\tclick ', ',', '(SCD_START)'"). length()!) = 0) {}
    out. Print (odiRef.getColList ("", "[EXPRESSION] ',' \n\tclick ', ',',"(SCD_START)""));
    } else {}
    out. Print (odiRef.getColList ("", "sysdate ',' \n\tclick ', ',',"(SCD_START)""));
    }
    } % >
    < % if (odiRef.getPop("HAS_JRN").equals("0")) {% >}
    'I' IND_UPDATE
    < %} else {% >}
    JRN_FLAG
    < %} % >
    < % = odiRef.getFrom () % >
    where (1 = 1)
    < % = odiRef.getJoin () % >
    < % = odiRef.getFilter () % >
    < % = odiRef.getJrnFilter () % >
    and NOT EXISTS)
    Select 'x '.
    < % = odiRef.getTable ("L", "TARG_NAME", "A") % > T
    where < %=odiRef.getColList ("","t. [column] \t= [EXPRESSION]", "\n\tand\t", "", "SCD_NK") % >
    < %=odiRef.getColList ("and\t", "(([EXPRESSION] = t. [COL_NAME]))", "\n\t\tand\t", "", "((SCD_UPD OR SCD_INS) AND REW) AND!" ") TRG AND! SCD_NK") % >
    < %=odiRef.getColList ("and\t", "\t= 1","\nand\t","","SCD_FLAG")% [column] > ")
    < %=odiRef.getColList ("and\t", "[column] \t= to_date ('01 - 01-2400', ' mm-dd-yyyy')","\nand\t","","SCD_END")% >) ")
    )
    < %}; % >
    < % / * If GROUPBY IS USED (s) * / if (odiRef.getGrpBy () .length () > 0) {% >}
    Select *.
    de)
    Select < % = odiRef.getOption ("OPTIMIZER_HINT") % > < % = odiRef.getPop ("DISTINCT_ROWS") % >
    < % = odiRef.getColList ("", "[EXPRESSION] ',' \n\tclick ', ','" (((SCD_NK ou SCD_INS ou SCD_UPD) and!)) "") ("(TRG) and REW)") % >
    < % if (odiRef.getColList ("", "D", "", "", "(SCD_START and REW)" ") .length ()! = 0) {}
    If (odiRef.getColList ("", "[EXPRESSION] ',' \n\tclick", ",", "(SCD_START and REW)" ") .length ()! = 0) {}
    out. Print (odiRef.getColList ("", "[EXPRESSION] ',' \n\tclick ', ',',"(SCD_START et REW) '));
    } else {}
    out. Print (odiRef.getColList ("", "sysdate ',' \n\tclick ', ',',"(SCD_START et REW) '));
    }
    } % >
    < % if (odiRef.getPop("HAS_JRN").equals("0")) {% >}
    'I' IND_UPDATE
    < %} else {% >}
    JRN_FLAG
    < %} % >
    < % = odiRef.getFrom () % >
    where (1 = 1)
    < % = odiRef.getJoin () % >
    < % = odiRef.getFilter () % >
    < % = odiRef.getJrnFilter () % >
    < % = odiRef.getGrpBy () % >
    < % = odiRef.getHaving () % >
    ) S
    where does NOT EXIST)
    Select 'x '.
    < % = odiRef.getTable ("L", "TARG_NAME", "A") % > T
    where < %=odiRef.getColList ("","t. [column] \t= [EXPRESSION]", "\n\tand\t", "", "SCD_NK") % >
    < %=odiRef.getColList ("and\t", "(([EXPRESSION] = t. [COL_NAME]))", "\n\t\tand\t", "", "((SCD_UPD OR SCD_INS) AND REW) AND!" ") TRG AND! SCD_NK") % >
    < %=odiRef.getColList ("and\t", "\t= 1","\nand\t","","SCD_FLAG")% [column] > ")
    < %=odiRef.getColList ("and\t", "[column] \t= to_date ('01 - 01-2400', ' mm-dd-yyyy')","\nand\t","","SCD_END")% >) ")
    )
    < %}; % >


    THX.

    >

    How can I convert all nvl and char data types in this expression to a match between the columns.
    (IE nvl (to_char (targetcolumn1), '-1') = nvl (to_char (sourcecolumn1), '-1'))

    Just wrap a Column / EXPRESSION strands according to your example in your message:
    Like this:

    where< %="odiRef.getColList" ("nvl="" «, »="" (to_char="" (t.="" [column]),="" « x »)="" \t="nvl(to_char([EXPRESSION]),'x') »," « \n\tand\t »,="" « »,="" « scd_nk »)="" %="">

    continue for the rest of the where clause.

Maybe you are looking for