Tranforming 0 to False and 1 to true

Gurus,
I am using sql query template and getting data  as 0/1 for one column from table.
I want to show 0 as FALSE and 1 as TRUE in the iGrid.
I didn't ever use the tranform tab . Do i have to write any xslt for my query??
Or
do i have to just change the query to get that simple transformation?
Any ideas??
Please help.
Thanks
Vansi

Your best bet is to look at the help documentation for 11.5, there are several predefined xsl examples detailed there, and the wwwroot/Illuminator/Stylesheets directory has several examples for a point of reference.
The InlineTransform tab is where you would apply this xsl file to your raw query data and it would need to take the Rowsets/Rowset/Row and produce the new desired Rowsets/Rowset/Row results.  This functionality pre-dates BLS, and it will probably be easier for you to use the action blocks to do your transformations.
Regards,
Jeremy

Similar Messages

  • Problem sorting list with virtual layout = false (and also with true)

    Hi,
    I've a problem sorting a list... or better... I've a problem showing the sorted list ;-)
    I've a list of xml item. The list is shown with an item renderer.
    my needs: a button to refresh data and a button to sort data.
    useVirtualLayout = false
    -> refresh works correctly, sort does not affect the view (even if the list is sorted correctly when printed with trace)
    useVirtualLayout = true
    -> sort works correctly, refresh reverse the list each time I press it (even if the list remain the same when printed with trace)
    does any one have an idea?
    thank you!!
    MXML
    <s:List dataProvider="{xmlListCollection}" width="100%" itemRenderer="myRenderer" minHeight="0" id="test" useVirtualLayout="false" >
    <s:layout>
      <s:VerticalLayout clipAndEnableScrolling="true"/>
    </s:layout>
    </s:List>
    XML example
    <unit sortField1="First Floor" sortField2="7">
      <employee>
        <id>3040684</id>
        <name>PIFFARETTI Vasco</name>
        <birthdate>20.05.1983</birthdate>
        <beginDate>2012-02-25 08:55:00</beginDate>
        <endDate>9999-12-31 00:00:00</endDate>
        <annotation/>
      </employee>
    </unit>

    You can tell when the scroll position has changed by handling the propertyChange event coming from the DataGroup:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   creationComplete="list1.dataGroup.addEventListener('propertyChange', handle)">
        <fx:Script>
            <![CDATA[
                import mx.events.PropertyChangeEvent;
                private function handle(e:PropertyChangeEvent):void {
                    if (e.property == 'verticalScrollPosition'){
                        trace('vsp changed');               
                    if (e.property == 'horizontalScrollPosition'){
                        trace('hsp changed');               
            ]]>
        </fx:Script>
        <s:List id="list1" width="100" height="50">
            <s:layout>
                <s:VerticalLayout />
            </s:layout>
            <s:dataProvider>
                <s:ArrayList>
                    <fx:String>0</fx:String>
                    <fx:String>1</fx:String>
                    <fx:String>2</fx:String>
                    <fx:String>3</fx:String>
                    <fx:String>4</fx:String>
                    <fx:String>5</fx:String>
                    <fx:String>6</fx:String>
                    <fx:String>7</fx:String>
                </s:ArrayList>
            </s:dataProvider>
        </s:List>
    </s:Application>
    You might also want to read and consider voting for http://bugs.adobe.com/jira/browse/SDK-21357

  • Set item property to false and true

    when i set item to false and then set item property to true. The item is displayed but its gray out and not enabled. Am i missing something
    Set_Item_Property('PUSH_BUTTON_SAVE',VISIBLE,PROPERTY_FALSE);
    and then
              Set_Item_Property('PUSH_BUTTON_SAVE',VISIBLE,PROPERTY_TRUE);

    Check the Forms online help on Set_Item_Property, near the bottom in the usage notes. Lots of things happen when you set visible to False:
    Setting DISPLAYED to False:
      sets the Enabled and Navigable item properties to False
      sets the Updateable item property to False
      sets the Update_Null item property to False
      sets the Required item property to False
      sets the Queryable item property to False
    So you may need to set more of them back to true in your code when you want to make it re-display.

  • I'm unable to delete a div which is having contenteditable false and the contenteditable false div is inside another having cotenteditable div true, plz guide

    i'm unable to delete a div which is having contenteditable false and the contenteditable false div is inside another having cotenteditable div true, plz guide

    There are better answers to this in stackoverflow.com:
    *[http://stackoverflow.com/questions/16996060/how-to-change-div-contenteditable-from-true-to-false]

  • [svn:fx-trunk] 13129: ASDoc bug fixes, and added a note that Scroller no longer has a default value of hasFocusableChildren ="false" and focusEnabled="true"

    Revision: 13129
    Revision: 13129
    Author:   [email protected]
    Date:     2009-12-21 13:50:37 -0800 (Mon, 21 Dec 2009)
    Log Message:
    ASDoc bug fixes, and added a note that Scroller no longer has a default value of hasFocusableChildren="false" and focusEnabled="true"
    QE notes: -
    Doc notes: -
    Bugs: - FLEXDOCS-386
    Reviewer: -
    Tests run: - checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXDOCS-386
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/events/VideoEvent.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/interpolation/MultiValueInterp olator.as

    I had a while ago similar problem with USB memory stick. At the end, I don't know why, just formatting it using WinXP helped me.
    S-
    Last edited by StenM (2011-07-22 17:56:32)

  • Perform transaction in creator [SetAutocommit(false) and commit()]

    Hi,
    I've finished one application with the Sun Java Studio Creator 2 but I've 2 technicals problems. One problem is about manage transactions.
    In a validate button, I've to perform update with 2 tables for example (orders and orders_details).
    My code:
    ordersDataProvider.getCachedRowSet().acceptChanges();
    orders_detailsDataProvider.getCachedRowSet().acceptChanges();
    It works but when I've an error in the 'orders_detailsDataProvider.getCachedRowSet().acceptChanges();', the orders's changes into the database are not rollback.
    I try the following:
    try{
    Context ctx=new InitialContext();
    DataSource ds=(DataSource)ctx.lookup("java:comp/env/jdbc/moduleachat");
    //Get a connection
    conn=ds.getConnection();
    /* Begin the transaction */
    conn.setAutoCommit(false);
    //update orders
    ordersDataProvider.getCachedRowSet().acceptChanges();
    //update order details
    orders_detailsDataProvider.getCachedRowSet().acceptChanges();
    /* Commit transaction */
    conn.commit();
    return "confirmPage";
    }catch(Exception ex){
    log(ex.getMessage(), ex);
    //Rollback transaction
    try{
    conn.rollback();
    }catch(SQLException esql){
    log(esql.getMessage(), esql);
    return null;
    it doesn't work. When errors occurs in the orders_details's update, the orders's update is not still rollback. it seems like the connection I get is not in the same context of orders and orders details rowset context.
    Can anyboby gives me a solution. It very important for a professional application

    I don't understand why nobody has solutions about my problems.
    To creator team:
    Tell us if it's a bug or not. I've try with 'acceptchanges(Connection conn)' but it doesn't work.
    Yesterday i've searched for many hours solutions on internet and I've found that others guys have the same problem and in the CachedRowSet implementation there is a property called 'COMMIT_ON_ACCEPT_CHANGE'. This property is final and set to true. i don't see where we can set it to false. So every time we call acceptchanges(connection), even if connection is in setAutoCommit ( false ), the acceptchanges commit all changes directly. Is it a bug or not? I hope no because manage transactions must be one feature of Java Studio Creator's CachedRowSet.
    Thanks

  • Difference between false and Boolean.FALSE ?

    Hello,
    can you please tell the difference between false and Boolean.FALSE ?

    The trap behind autoboxing is that things work just fine when at least one side of the equation is a primitive. Things turn out unexpected when all of a sudden both sides of the equation happen to be an object:
    public class Test {
         public static void main(String[] args){
              boolean bp = false;
              Boolean bo = new Boolean(false);
              Boolean bo2 = new Boolean(false);
              System.out.println("Primitive VS Boolean.FALSE: " + (bp == Boolean.FALSE));
              System.out.println("Primitive VS new object: " + (bp == bo));
              System.out.println("New object VS Boolean.FALSE: " + (bo == Boolean.FALSE));
              System.out.println("new object vs new object 2: " + (bo == bo2));
    }Result:
    Primitive VS Boolean.FALSE: true
    Primitive VS new object: true
    New object VS Boolean.FALSE: false
    new object vs new object 2: falseTry explaining that in the context of this thread without ever referring to autoboxing specifically. Remember that people find these posts through Google, if you pass out information while hiding the gritty details, it gets confusing.

  • Difference between Boolean.valueOf(true) and Boolean.valueOf("true")?

    I don't quite understand the difference between Boolean.valueOf("true") and Boolean.valueOf(true)? This might explain why I don't understand why
    Boolean b1 = new Boolean("true");
    Boolean b2 = new Boolean("true");
    System.out.println(b1 == b2)
    returns true if we are comparing references? So is there one reference that always represents true and one that represents false?

    I don't believe that! If you create two instances using new, you must get distinct references.
    If you use the static method Boolean.valueOf(boolean), the documentation states that you will get one of the built-in constants Boolean.TRUE or Boolean.FALSE. The documentation for Boolean.valueOf(String) makes no such promise, but I suspect it will do so anyway.
    The difference is not significant (apparently) when you use literals as here. The difference comes when you have
    Boolean.valueOf(s), where s is a string variable, which may contain "true", or "false", or "Uncle Fester", or any other string.
    RObin

  • [CS3][JS] Difference between link.needed false and link.status LINK_EMBEDDED

    Can anyone describe the difference between link.needed being false and link.status being LINK_EMBEDDED? If link.needed is false, doesn't that imply that the link is embedded? What is the distinction with LINK_EMBEDDED? If there is none, which do you recommend?

    You can also have links for text files, if you set your preferences<br />accordingly. They'll be neither needed nor embedded.<br /><br />-- <br />Shane Stanley <[email protected]>

  • [svn:osmf:] 14758: Fix FM-556: When MediaPlayer enters error state, capabilities should be set to false, and capability change events should be dispatched.

    Revision: 14758
    Revision: 14758
    Author:   [email protected]
    Date:     2010-03-15 12:27:47 -0700 (Mon, 15 Mar 2010)
    Log Message:
    Fix FM-556: When MediaPlayer enters error state, capabilities should be set to false, and capability change events should be dispatched.  Also fixed typo in one of the capability change event names.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-556
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/events/MediaPlayerCapabilityChangeEvent.as
        osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayer.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamLoadTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/media/TestMediaPlayer.as

    Well, I can tell you that this kind of error is not OS related, but rather a HW thing.  It happens where there is a general detection of something going wrong.  Sometimes it can happen randomly and might not be an indication of a problem.  But sometimes it can be caused by things that are improperly functioning within the system like bad capacitors. 
    Unfortunately I don't really know what to do about such things except give you machine a proper inspection.  But if things are working fine, and continue to do so, I wouldn't worry about it.  If it becomes a regular occurance, then I'd worry.

  • Formula to select multiple fields (true/False) and create one

    Post Author: mmishkin
    CA Forum: Formula
    I have fields that have true and false options. I need to graph the true options all together but it's not working. I have tried writing a formula to put them all together but i'm still not getting the results I need....here is what I have
    Select {BriefOperativeNote.SCIP PreOpABX60Min} case True : "ABX60Min";Select {BriefOperativeNote.SCIP ABXDCd24h} case True : "ABXDCd24h";
    I've also tried
    If {BriefOperativeNote.SCIP PreOpABX60Min} = True  then  "ABX60Min";
    My results should be
    ABX60Min =      130 Etc... so that I can graph all the true options together..
    Any ideas?

    Post Author: sharonmtowler
    CA Forum: Formula
    either create a group for your true statement and place graph in the header or footer
    or limit your report in the select statement to only true, create the graph
    then create a sub report in the footer for the others.

  • Why Does Java not see 0 or 1 as false and true

    hello,
    all other languages i have worked with see a 0 and 1 as a true or false value
    for instance...in perl this would be the case
    if ( 0 ) same of javas if ( false )
    or
    if ( 1 ) same as javas if ( true )
    same with javascript
    im am asking if there is a way in java to use the boolean type or object in this way. seems strange to me to store "true" or "false" as a varchar in a database when with all other languages you can store 0 or 1...faster to store int's

    Many of the differences the creators of Java made in the language were to address what they saw as problematic features in other languages. This is one of those cases.
    How many nasty, hard-to-find bugs in C or Perl do you think have been caused by this kind of mistake: int cnt ;
    cnt = howMany() ;
    if (cnt = 0)      /* whoops: should be == */
    [/code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • TFS and similar packages true or false...

    Hi All,
    Currently a lot of non-authors are trying to convince me that the TFS, Source safe or similar packages will allow multiple authors to work on the same help project which seems a bad idea to me.
    So what about the following?
    A topic file has to be opened in RoboHELP from within it's parent project true or false?
    If two authors are working on copies of the same project what happens whern these are checked back in if index, TOC or folders topic names changed?
    Surely the best way is to take a help project and split into sub projects and combine as merged projects to multiple authors can work on it without bumping heads?
    I also think that it's better and more robust to use such packages as storage for folders contaning whole project not have an outside product interference with the operation of RH...
    In general the non-authors I'm dealing with don't seem to understand the significance of the RH project and all the information, links filenames within it?
    Please can people offer some advice on this?

    Definitively false. Confessed, I would be very concerned in the case I knew that Apple is able to disable my computer remotely.
    Anyway, maybe a choice for upcoming models... so why wait till customers are deciding to buy a new computer when the manufacturer can force them
    Not sure if it is mentioned in the thread JDee provided... but it is a good idea to write down the serial number of the computer, so it can be identified later.

  • How to get result of PING whether TRUE/FALSE and prompt message to user?

    Hi all!!!!
    In Forms 6i, I need to know how to get the result of a ping if the ping is sucessful or not. It should prompt the user whether the connectivity is there or not after the ping statement which is HOST('PING 191.10.10.40'). As of now, when the user select the desired LOV, the corresponding HOST statement is executed. But if the connectivity is not there, the user is left in blank with a hanging situation... So can we not prompt the user if the connection has been failed or not?
    Regards

    Hi,
    You can try this.
    Redirect the output of the ping test to a file. Read the file using TEXT_IO and see if the test is passed. For ex
    host('ping <your_ip> > c:\ping_test.log');Will redirect the ping output to ping_test.log file under c:\ drive.
    Open the file using TEXT_IO and check if you have the text "Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)". If you have, then the host is reachable. Otherwise its not. Depending on that, you can change the flow of your application.
    -Arun

  • SQLNCLI11 - Recordset with Server Side cursor and Property PreserveOnCommit = TRUE

    I am migrating an OLEDB application from Microsoft Access to SQL.  I am using the SQL Native Client in my connection string
    "Provider=SQLNCLI11;Server=%s;Database=%s;Trusted_Connection=yes;"
    The application uses the following call to open a table in the database
    m_pRecordset->Open((LPCTSTR)m_strQuery, _variant_t((IDispatch*)mpdb, TRUE), adCursorType, adLockOptimistic, options);
    where m_strQuery is the table name, adCursorType is adOpenKeyset or adOpenDynamic (I've tried both), options is adCmdTable or adCmdTableDirect (I've tried both)
    mpdb is a _ConnectionPtr.  Cursor location can be either adUseClient or adUseServer.
    If I set Cursor location to adUseClient, the PreserveOnCommit Property of the  Recordset is true; if I set Cursor location to adUseServer the PreserveOnCommit property of the Recordset is false.  I cannot set this property after the recordset
    is open
    Is there a way to Open the recorfdset with a server side cursor and PreserveOnCommit TRUE?
    Howard P. Weiss

    Thanks, Dan, that has been very insightful. We will try to move our legacy VBA data access layer to client-side cursors (first for SQLs with CTEs, then for all SQLs, if everything works out well).
    Regarding deprecation: What is the currently recommended way to access SQL Server from VBA projects? I did a bit of research and it appears that all methods I can think of are deprecated in one way or another:
    DAO with ODBCDirect: Support has been dropped with Access 2007.
    DAO via JET: Using JET SQL syntax instead of T-SQL? Not seriously. Anyway, it's considered obsolete by Microsoft.
    ADO with the SQLOLEDB provider: Deprecated.
    ADO with the SQL Server Native OLEDB provider: Won't be supported after SQL Sever 2012.
    ADO with the Microsoft OLE DB provider for ODBC: Not supported: "SQL Server Native Client is not supported from the Microsoft OLE DB provider for ODBC (MSDASQL)."
    What did I miss?
    Best regards
    Heinzi

Maybe you are looking for

  • IDE Configuration

    My motherboard is a K7T Turbo version 3 (MS6330). I'm running WinXP Pro with an AMD XP2400 processor if it's relevant. I have two HD's, CD burner, DVD burner, DVD Rom and an LS-120. I also have a Maxtor PCI IDE card installed. What would be the best

  • XML dataset exception

    Hi, I've created a PHP page with a recordset consisting of joined tables. I've then exported it as XML. When I am on my main page and attempting to create an XML dataset, as I have done successfully before, when I click on "Get Schema" I get the exce

  • Be careful of "Prompt user to change password before expiration" policy -- it's counting the days wrong!!

    After several tests, I'm pretty sure that the policy "Interactive logon: Prompt user to change password before expiration" is counting the wrong days. (Note: this policy is in Windows Settings > Security Settings > Local Policies > Security Options) 

  • Match crashes iTunes on Windows.

    I took up Match for the sole reason that I wanted DRM-free versions of music I bought years ago, but Match just crashes iTunes. I have a library of 24000 songs and although Match gets a long way through Step 3, it doesn't complete. When I restart iTu

  • Smbclient works but mount_smbfs fails

    I am running across a rather strange issue with a Zonet NAS I recently purchased.  The device shares files via FTP and SMB over the network.  I have an iMac running Lion and a Macbook Pro running Snow Leopard.  I can connect just fine from the iMac b