Flex 4, is it possible to populate a tree component with sqlite table data?

is it possible to populate a tree component with sqlite table data?
If it is, how would I go about doing this?
Thanks
Kristin

Hi Mustafa,
it is true, the function can return component as type. This is more for the scenario, when you want to recognize some component based on some checks, eg.
if(something)
return CHECKBOX_1;
else
return CHECKBOX_2;
so, the use case exists for sure. But of course the application itself is static.
where do you see a scenario for dynamic creation of components?
The only one component which can instantiate new components is the SplitCellContainer, and this is restricted to the drag&drop action from Fragment Bookmark Gallery. And this is again restricted to containers, as Fragment can hold containers as parent component. Of course the container content will be created/instantiated as well (I have coded example with ComponentManager in the Community SDK: Second Functional Application with SDK Components (Online Composition v.2) blog).
As far I know there is no function in SplitCellContainer which would "simulate" the drop of a Fragment today (perhaps worth an Idea on this?). Having that - the scenario would be possible. Today, this can be made partly - but the user would need to drag&drop a prepared fragment with the component.
Anyway, the problems will start after the creation - then it would be require to have also functions to re-position the new created component in some other container - this would be complex probably.
Karol

Similar Messages

  • Is it possible to populate an information field with the expect docURL?

    Hi,
    Is it possible to populate an information field with a function that checks for the expected docURL at checkIn time?
    I need to pass the value of the docURL of the checked in content item to a bpel process.
    Thanks.

    Thanks for the suggestion.
    To test:
    1. I created an information field called 'docURL'.
    2. Added a rule called 'docDisplayURL'.
    3. Selected global rule with Priority 1 and use rule activation condition.
    4. Added a condition called 'CheckIn'
    Selected 'Use Event'. 'On Submit'.
    Selected 'Use Action', ' CheckIn New', 'Check In Selected', 'Content Information', 'Content Update', 'Search', Clicked Ok.
    5. Selected the Fields Tab, Selected the 'Information Fields' in the Add Rule Field.
    6. Changed the Type to 'Info Only'.
    7. Selected the Is Derived Field and in Custom entered the following:
    <$DocUrl$>
    8. Now my rule 'displayDocURL' shows up.
    9. When I go to an item content information I don't see the 'DocUrl' field populated. What could I be doing wrong?
    Thanks
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim
    Message was edited by:
    snarasim

  • Possible to export Tuple data along with main table data in Excel sheet?

    Hi Expert,
    Wondering is it possible to export tuple table data from data manager along with main table data?
    Regards,
    Rajeev

    Rajeev,
    I am afraid that functionality of exporting tuples data using data manager is not available at the moment till MDM 7.1 SP08. Lets see if coming versions provides this functionality...
    - Shiv

  • Ensure List/Menu populate my update form with the correct data before update

    Hello,
    Please how do I ensure my update form is populated with the correct data before update?
    On my update page I have text fields and select fields (dynamic list/menu). When I open my profile page to make updates, I see the field well positioned in the text fields but in the select list/menu fields, I see "Select from list" instead of the value that was initiated selected
    Correct Values before update
    Wrong values during update
    As you can see from the images below, when I open the update page, the list automatically populate the select fields with the last values in the list instead of the Initial values that where selected by the user before the update.
    Can anyone please review and let me know where I have gone wrong.
    Thank you
    Mike

    Hello All,
    Once more thank you. I have sorted the issue out.
    I observed that I was selecting the wrong field. I selected the field matching the record set of the select instead of the field matching the record set of the table I am working as seen on the image belew
    I was selecting this - This is the record set of the table that hold values for the city select list
    Instead of this. This is the record set of the table behind the form I am working on
    My issue is now re-solved.
    Mike

  • Tree component in Flex 4

    Are there any known issues with the <mx:Tree component in Flex 4?
    We have upgraded from Flex 3 builder to Flex 4 builder. Everything works except any where we have used a tree component the data is no longer showing. Has there been a change in how to populate the Tree component? We populate the tree by setting the dataProvider with an ArrayCollection.

    @travr,
    I'm not aware of any big known issues in mx:Tree between Flex 3.x and Flex 4.x. What problems are you seeing, and can you reproduce the issue with a simple test case (if so, please post the simple test case here and we can take a look).
    This works in Flex 3.5:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:ApplicationControlBar dock="true">
            <mx:Button id="sdkVer" initialize="sdkVer.label = mx_internal::VERSION;" click="System.setClipboard(sdkVer.label);" />
        </mx:ApplicationControlBar>
        <mx:Tree id="tr" labelField="name" width="200" x="20" y="20">
            <mx:dataProvider>
                <mx:ArrayCollection>
                    <mx:Object name="1. One">
                        <mx:children>
                            <mx:Object name="1.1 One" />
                            <mx:Object name="1.2 Two" />
                        </mx:children>
                    </mx:Object>
                    <mx:Object name="2. Two">
                        <mx:children>
                            <mx:Object name="2.1 One" />
                        </mx:children>
                    </mx:Object>
                </mx:ArrayCollection>
            </mx:dataProvider>
        </mx:Tree>
    </mx:Application>
    And this seems to work in Flex 4.5/Hero beta:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:controlBarContent>
            <s:Button id="sdkVer" initialize="sdkVer.label = mx_internal::VERSION;" click="System.setClipboard(sdkVer.label);" />
        </s:controlBarContent>
        <mx:Tree id="tr" labelField="name" width="200" x="20" y="20">
            <mx:dataProvider>
                <s:ArrayCollection>
                    <fx:Object name="1. One">
                        <fx:children>
                            <fx:Object name="1.1 One" />
                            <fx:Object name="1.2 Two" />
                        </fx:children>
                    </fx:Object>
                    <fx:Object name="2. Two">
                        <fx:children>
                            <fx:Object name="2.1 One" />
                        </fx:children>
                    </fx:Object>
                </s:ArrayCollection>
            </mx:dataProvider>
        </mx:Tree>
    </s:Application>
    Peter

  • Is it possible to populate listbox/dropdownlist items using loadXML method?

    Is it possible to populate listbox/dropdownlist items using loadXML method? (If I have xml data in some string variable)
    Any sample?
    Thanks

    Hi Steven,
    Yes, Its possible which behaves as system CFL.
    Design the form like cfl having grid, choose button, cancel button and edittext of find. When you tab on edittext on form open the CFL form and after load form fill the grid by Datatable using sql query. Write code for select grid line on click of grid. Write the code on choose button which retrive value from grid.
    Thanks,
    Mahesh

  • Possible to obtain phone IMEI number with flex mobile project?

    Just like the title says, is it possible to obtain phone IMEI number with flex mobile project? If not, does anyone know of another method to get a unique number to identify the phone being used (on android and iphone)? I'm asking because I'm building a chat application, and I need a way to potentially ban users based on something other than an IP address.
    edit: now that I think about it, an IMEI number might not be the best way, since wifi tablets may not hav an IMEI number, anyone have any other idea how I could get a number to identify a device that would already be present, because i'm afraid if its something generated by me, a simple uninstall and re-install could circumvent a ban.

    If this is an Android project, you can use this ANE:
    http://blog.snowflax.com/native-imei-action-script-extension-for-android/
    I have verified that it does work and provides the IMEI.  For cases where there is no IMEI ( bc the device is not a mobile phone, or it uses IMSI instead ), you can just bypass the device id check with your database, and enable full functionality.
    Although this is not full-proof, it will nevertheless screen a lot of devices.  With this, you can keep track of the number of app installs / resets, and add a 'banned' flag if you want to in your DB -- if you see unusal activity ( like:  unsually high number of re-installs ).
    ----->  UPDATE:
    I just found this ANE which  includes a class called 'SystemProperties', to find the IMEI/IMSI/serial/phone number on Android, and the MAC address on iOS:
    https://github.com/mateuszmackowiak/NativeAlert
    I have verified that the iOS part works, but haven't tried the Android side, yet.  Note: for iOS, it will also give you a UUID ( even though the object tag claims it is the UDID -- it's not ), which is worthless as a persistent means of identifying the device. since it gets reset on each app re-install.  So, for iOS, you have to use the MAC address, unless you are willing to store/restore the UUID into EncryptedLocalStore, as suggested by a user in:
    http://stackoverflow.com/questions/6794493/get-unique-identifier-mac-address-udid-etc-in-a dobe-air-for-ios

  • Flex 4 tree component - how to populate using an array?

    It's unclear how to populate a tree control using an array as the dataprovider like you could in Flex 3.
    Here is a Flex 3 example. Even when I replace the mx:Object tags with fx:Object tags things don't work ... there seems to be no mx:children tag ...
    http://blog.flexexamples.com/2007/12/03/using-an-array-as-a-data-provider-in-a-flex-tree-c ontrol/
    Please advise.

    This should do it:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/halo">
        <fx:Script>
            <![CDATA[
                private function tree_labelFunc(item:Object):String {
                    var suffix:String = "";
                    if (tree.dataDescriptor.hasChildren(item)) {
                        suffix = " (" + item.children.length + ")";
                    return item.name.toUpperCase() + suffix;
            ]]>
        </fx:Script>
        <fx:Declarations>
            <fx:Array id="arr">
                <fx:Object name="One">
                    <fx:children>
                        <fx:Array>
                            <fx:Object name="Two" />
                            <fx:Object name="Three" />
                            <fx:Object name="Four">
                                <fx:children>
                                    <fx:Array>
                                        <fx:Object name="Five" />
                                        <fx:Object name="Six" />
                                    </fx:Array>
                                </fx:children>
                            </fx:Object>
                            <fx:Object name="Seven">
                                <fx:children>
                                    <fx:Array>
                                        <fx:Object name="Eight" />
                                    </fx:Array>
                                </fx:children>
                            </fx:Object>
                            <fx:Object name="Nine" />
                        </fx:Array>
                    </fx:children>
                </fx:Object>
            </fx:Array>
        </fx:Declarations>
        <mx:Tree id="tree"
                dataProvider="{arr}"
                labelFunction="tree_labelFunc"
                width="200"
                horizontalCenter="0"
                verticalCenter="0" />
    </s:Application>
    Peter
    Update: I also posted the updated Spark example at http://blog.flexexamples.com/2007/12/03/using-an-array-as-a-data-provider-in-a-flex-tree-c ontrol/.

  • How to populate a tree from .aspx file?

    Hi,
    I'm very new to flex. I have a .aspx file which has xml populated in it. I would like to populate the tree based on the values of the .aspx file. Here is my code which i have tried doing this functionality but it couldn't worked out. Could anyone help me out to resolve this problem.
    This is my sample aspx file:
    Sample.aspx:
    <?xml version="1.0" encoding="utf-8"?>
    <myTree label="Main Root">
    <node label="Root">
    <node label="Folder a">
    <node label="item 1 a"/>
    </node>
    <node label="Folder b">
    <node label="item 1 b"/>
    <node label="item 2 b"/>
    </node>
    <node label="Folder c">
    <node label="item 1 c"/>
    <node label="item 2 c"/>
    </node>
    <node label="Folder d">
    <node label="item 1 d"/>
    <node label="item 2 d"/>
    </node>
    </node>
    </myTree>
    Here is my mxml file which i was trying:
    TreefromXml.mxml:
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="XmlRpc.send()">
    <mx:Script>
    <![CDATA[
    importmx.collections.ArrayCollection;
    importmx.rpc.events.FaultEvent;
    importmx.rpc.events.ResultEvent;
    importmx.controls.Alert;
    public var XmlNode:XML=newXML();
    public function HandleXml(event:ResultEvent):void
    XmlNode= new XML(event.result.myTree.node);
    tree1.dataProvider=event.result.myTree.node; 
    public function HandleFault(event:FaultEvent):void
    Alert.show(event.fault.faultString, "Error"
    ]]>
    </mx:Script>
    <mx:HTTPService id="XmlRpc" url="Sample.aspx" result="HandleXml(event)" fault="HandleFault(event)"> 
    </mx:HTTPService>
    <mx:Panel id="panel1" width="400" height="200"> 
    <mx:Label id="label1" text="Sample Label" /> 
    <mx:Tree id="tree1" labelField="@label"> 
    </mx:Tree> 
    </mx:Panel>

    Hi Wolfman,
    I do not understand what you are trying to say. My requirement is to fetch xml from .aspxfile and then use it to populate the tree structure in flex. It would be great if you could share me with the piece of code which suites my requirement. Thanks
    Regards,
    Saravana

  • Flex with Java - DB data access

    Hello, folks,
    I am developing a Java application and realized that I need
    some advice. My application is simple:
    I have a MSSQL server, tomcat 5.5 ,flex data services.
    In my application , i have two combo boxes.. country, town..
    i have populated the country combobox with the values from
    DB(country table) obtained using the fill(List ListArgs) in
    Assembler Class.
    Now, based on the country selected in have to populate my
    town combobox from (town table)
    How can i populate the town combobox from the DB based on the
    country code?
    Is there any function to pass the selected index and populate
    the town combo box..????
    My code is as below:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" >
    <mx:DataService id="ds" destination="quick-search-country"
    autoCommit="false" autoSyncEnabled="false"/>
    <mx:DataService id="tds" destination="quick-search-town"
    autoCommit="false" autoSyncEnabled="false"/>
    <mx:ArrayCollection id="cntry_list"/>
    <mx:ArrayCollection id="town_list"/>
    mx:Panel layout="absolute" backgroundColor="#c6daf5"
    verticalCenter="0" horizontalCenter="0">
    <mx:Form id="SearchForm">
    <mx:TabNavigator >
    <mx:Canvas label="Hotel" width="339" height="234"
    backgroundColor="#ffffff">
    <mx:Label x="10" y="91" text="Country :" alpha="0.12"
    />
    <mx:ComboBox x="93" y="89" fontSize="10" id="Country"
    dataProvider="{cntry_list}"
    labelField="countryName"
    creationComplete="ds.fill(cntry_list)"
    change="tds.getItem(Country.selectedItem)" prompt="United
    Kingdom" >
    </mx:ComboBox>
    <mx:Label x="10" y="126" text="Town / City :"
    fontFamily="Georgia" alpha="0.12"/>
    <mx:ComboBox id="town" x="94" y="124" fontSize="10"
    dataProvider="{town_list}"
    labelField="townName" prompt="London WC1" >
    </mx:ComboBox>
    </mx:Canvas>
    </mx:TabNavigator>
    </mx:Form>
    </mx:Panel>
    </mx:Application>
    this is my main.mxml . I have CountryAssembler to fill the
    country combo and a DAO class . Have a Town assembler..
    Please advice me on how to populate the town combo based on
    country selected from the DB...
    I am really stuck up... and also dont have any documentation
    on Flex data services with Java support..
    please give me some suggestions on this.
    Thanks in Advance,
    Ambili

    Hi Mete,
    Thanks for ur reply , Mete. Your reply helped me a lot. Am
    using FDS 2.0.
    I have a doubt in combo box area itself.
    I have two tables by name country_list and town_list
    country_list consists of identity column , country_name and
    country_code
    town_list has identity column, country_code, town_code and
    town_name
    Normally while we use combobox in jsp, we have key value
    pairs for combo box..
    For eg:- if we have a Country combo , we have the country
    name(United States) as text displayed and its country code (US) as
    key.
    So if i select the United States , i will be returned with
    the value 'US' so that i can use it in query directly as
    Select town_name, town_code from town_list where country_code
    ='US'
    But while using flex , am not able to retieve the
    country_code from country combo. its only returning the text and
    the id.
    Here am forced to write a nested query as follows
    Select town_name, town_code from town_list where country_code
    =( Select country_code from country_list where country_name='United
    States')
    Is there any way to get the country_code as key while i
    select the country from country combo .
    And also how to keep 'United States' as selected during the
    intial load of the page.
    <mx:ArrayCollection id="cntry_list"/>
    <mx:ComboBox x="93" y="89" fontSize="10" id="Country"
    dataProvider="{cntry_list}"
    labelField="countryName"
    creationComplete="ds.fill(cntry_list)"
    prompt="Select Country" />
    please give me some suggestions on this.
    Thanks in Advance,
    Ambili

  • AD user script to populate the IPPHONE attribute with the last 4 digits of the Telephonenumber attribute

    Good Afternoon Scripting Guys. I have a script that I have been working with pretty much all day today and just cant quite get it to play nice. Our objective is to search AD for specific users (say filtering them out with a username that starts with a "T")
    and User account is "Enabled" then grab the last four digits of their phone number (phone number is set up as follows: (800) 123 456 ) then populate the IPPHONE attribute with the last four digits of their phone number. I have read a ton of online
    blogs with users successfully making this happen but it appears that they are all using Quest (as the commands are all Get-qaduser and Set-qaduser). I need something that runs strictly in native Active Directory Module PowerShell on a Windows Server 2008r2
    Domain Controller.  I am also trying to keep it as simple as possible by using a Get command, then piping a Set command.  I have saved the script into a .ps1 file with the logic as follows:
    $SelUsers = Get-ADUser -filter {(SamAccountName -like "t*")} -Properties ipphone,telephonenumber -searchbase "OU=Test Users,OU=Temporary Org,OU=Test_Domain Users,DC=mydomain,DC=com" | where {($_.enabled -eq $True)}
    foreach ($user in $SelUsers)
     {$user.ipphone = $user.telephonenumber(4,$User.telephonenumber.length-4)
     set-aduser -instance $user}
    What is happening is kind of funny, but aggravating at the same time.  When we run the script, it completes with no errors.  When I pull up the properties of a user in the OU, the IP Phone field is populated with the number 8.  If the User
    account did not have a telephone number, the IP Phone field is populated with a -4.  So, apparently, the script is somehow subtracting the "-4" from the number of all of the Telephone Number field's characters.  Basically 12-4 is 8. 
    If there is no telephone number, then 0-4 is -4.  I have run the Get-ADUser portion of the script independently so I know its getting the correct users.  I also know it is populating the IPPHONE attribute but not with the last 4 digits of the telephone
    number.  Can you guys help out and maybe get this to work correctly?  Also, can you add logic to it to the script to delete any value in the IPPHONE field first, then replace it with the last 4 digits of the telephone.
    Any help would be GREATLY appreciated!!!!!  Thanks Guys...
    Lee

    First thing I would do is modify your filtering. This will remove the unneeded piping to the Where-Object cmdlet and also allow us to only return users who already have something in the telephoneNumber field. It is possible this could return all of your
    users, but if you have service accounts, etc. that do not have a telephoneNumber then they will not be included in your results. It's just a little cleaner.
    $SelUsers = Get-ADUser -filter {(SamAccountName -like 't*' -and Enabled -eq $True -and TelephoneNumber -like '*')}
    I suspect you may have a made a mistake when you entered what your phone numbers looks like. I assume that you forgot a final digit. If this is correct, and you have a space in the phone number between the three digits and the final four then you can use
    the split method to grab the last four digits.
    Foreach ($User in $SelUsers) {
    $Number = $User.telephoneNumber.split(' ')[-1]
    Set-ADUser -Identity $User -Replace @{ipPhone=$Number}
    There's no reason to delete what's in the field first because that's part of what the -Replace parameter will do anyway. This should help get you started!

  • Oracle GL_INTERFACE table - Data Populate

    We would like to populate the accounting data in Oracle GL_INTERFACE table (Oracle EBS R 12.1.3) and the data receiving that import from other systems like SAP/People Soft or Home based applications
    Since SAP/PeopleSoft/Homebased Application does not have web/other servcies to PUSH the accounting data to Oracle EBS GL_INTERFACE table. We are looking the possible options from Oracle EBS prospective to receive the data from other system.
    1. Is there any standard Oracle API is available to meet this requirement or do we need to develop the PL/Sql Prgm?
    And other alternative solution is looking for...
    2. Installting the BEPEL in a SOA and use the "mq" servcies to find the solution. In case if we want to use the BPEL-SOA it might need the seperate license. As SOA geteway is standalone component and it is not part of Oracle EBS R12 Suite.
    3. Is there any other solutions to achieve this?
    Thanks in advance to speraing the time on this.... Thank you.
    Rgds

    1. Is there any standard Oracle API is available to meet this requirement or do we need to develop the PL/Sql Prgm?
    And other alternative solution is looking for...Please see these docs/links.
    R12 Populating The GL_INTERFACE Table [ID 578930.1]
    R12 Populating GL_INTERFACE - Assigning Values to Optional Columns (i.e Reference Fields) [ID 578959.1]
    IREP
    http://irep.oracle.com/index.html
    eTRM
    http://etrm.oracle.com/
    2. Installting the BEPEL in a SOA and use the "mq" servcies to find the solution. In case if we want to use the BPEL-SOA it might need the seperate license. As SOA geteway is standalone component and it is not part of Oracle EBS R12 Suite.You need a separate license for Weblogic/SOA installation -- Contact your Oracle Sales representative for details.
    3. Is there any other solutions to achieve this?Please review the docs/links referenced above.
    Thanks,
    Hussein

  • Flex component with HTTPService

    OK, so I'm a Flex newbie so forgive me if I'm missing the
    obvious.
    I created a Flex component that references a HTTPService to
    populate a DataGrid with data. As a standalone .mxml file, it works
    fine. When I place it into a Flex application where the component
    is referenced, the grid shows up, but I get no data. I've tried
    referencing the HTTPService in the application itself, no luck.
    I've tried referencing the service in a creationComplete function
    on the application page, no luck. I'm sure there's just some little
    snippet that allows the service to run in the component...the
    component looks fine when I run it, I just don't get any
    data.

    Thanks--actually I figured it out--I was overlooking
    something obvious. However, I have a new issue that I would
    genuinely appreciate assistance on.
    I am building a Flex app where I have 4 custom components.
    Each component calls a web service to pull data in. I am using an
    MXML application file to bring in each component with an additional
    component where the user can select a date range and submit that
    range to the various web services. So what I need to do is make the
    date fields public variables and then append those variables to the
    web service calls as name/value pairs.
    No matter what I do, I cannot seem to get the other
    components to recognize the date variables as public vars. I've
    written them out as variables as part of a public function, tried
    to make them bindable, nothing works...
    So for example, this is a simplified version of my date range
    component (using only one date), assuming I've named the component
    datebar.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%">
    <mx:Script>
    <![CDATA[
    public function clickHandler():void
    var sdate:String = start_date.text;
    ]]>
    </mx:Script>
    <mx:ApplicationControlBar width="100%" height="30">
    <mx:DateField id="start_date" />
    <mx:Button label="refresh" click="clickHandler();" />
    </mx:Label>
    </mx:ApplicationControlBar>
    </mx:Canvas>
    Then in another component using a web service, I place:
    <mx:HTTPService
    id="os_downloads"
    url="
    http://publishingdynamics.com/service.asmx?start_date={datebar.sdate}"
    useProxy="false">
    Where {datebar.sdate} is the variable I'm referencing to get
    a value from. I get a constant error doing this. I've tried several
    varitions. I can successfully create a public variable in the same
    manner not using a form value and get the component to display that
    variable using the same syntax, where I reference the source
    component like: {datebar.myvar} so I know the namespace referene
    works.
    Admittedly I'm not a very good ActionScripter...

  • How to populate the time component of a cube?

    We have a question regarding how to populate the time component of a cube. Let me explain:
    We are using OWB 10gR2. We have created a cube with several dimensions. We are now building the mapping to load the cube. The cube operator has two columns for every dimension (e.g., "customer" and "customer_id" for the "customer" dimension).
    We understand that, in this case, "customer_id" stands for the dimension business key, so we create an arrow from the business key in the source table to the "customer_id" column in the cube operator.
    So far so good. The mapping works all right, and the cube is loaded correctly.
    Now we need to do the same for the time dimension. We have already created the time dimension and we have loaded it. We have also included it in the cube, so now we have two new columns in it: "time_day_code" and "time", both NUMBER data type.
    We have the "sale_date" column (DATE data type), in the source system and, of course, now we want to populate the date column in the cube. We suppose that, somehow, we have to translate the "sale_date" field into the numeric column of the surrogate key of the time dimension. How should do we do this? I suppose that OWB must do the translation for us, just as it does for the other dimensions, but how? We have been looking into the manuals, and we have found no explanation on how to go about this.
    Any help would be appreciated.
    Best regards
    Juan Algaba

    Hi Juan
    You are right this should have been in the manuals, checked and there is only a brief mention (Using a Time Dimension in a Cube Mapping section)
    The identifier format should have been documented for each level and will involve creating the formatted attribute for input to the cube operator's time dimension reference attribute.
    The time dimension business keys are stored as follows;
    Day Level - YYYYMMDD
    Month Level - YYYYMM
    Week Level - YYYYWW
    Quarter - YYYYQ
    Year - YYYY
    If you have a source that has a SQL date datatype for example and want to construct the key for a cube's time dimension at the day level something like the following expression can be used to construct the time reference from a SQL date...
    to_number(to_char( time_key, 'YYYYMMDD'))
    The result of this expression can be used as input to the cube's time dimension attribute.
    Cheers
    David

  • Can I populate a text field in one PDF with the modification date of a different file ?

    Rather convoluted problem here but I'm trying to place a text field on a PDF document that serves as the main menu page for a library of interlinked PDF documents
    The complete library contains over 7,000 files and additions are added and documents changed almost daily.
    We currently use batch files to open the main menu from it's shortcut and this runs a check on a sync log file (.txt) to ascertain when the last time the user synchronised with the server to get the latest copy of the files.
    Between a certain time range they are told how long it has been since they sync'ed and are offered the option to sync before opening, after a prescribed timeframe they cannot enter without synchronising. We use Allways Sync to conduct the file synchronisation with our mother files on our server.
    What I'd like to do is take advantage of Allways Syncs automatic synchronisation options to synchronise on log on and at prescribed idle periods there after.
    This works fine but I'd like the text field on the main menu PDF to say when the last synchronisation took place - easy if the main menu is the last file modified .. just use info.modDate.
    However, the main menu is rarely modified therefore I wish to import the text to populate the text field from a different file.. either by interrogating the other files modifictaion data (though I doubt Acrobat can do this) or by simply importing some text stored in another file (a .txt file?) which has previously been created by batch file commands.
    Any assistance would be greatly appreciated.
    Regards,
    Nifty Styles
    (Norfolk, England)
    P.S.  I'm using Acrobat 8.3.1. Professional on Windows XP (SP3).

    Thank you for all your help above.
    Just to confirm your advice, am I right with the following conclusions? :
    1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
    2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
    Further to that can you just advise on the syntax for accessing the modification date of the other document.
    Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
    var LastSync = "C:\sync\bin\lastsync.pdf";
    var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
    strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
    this.getField("LastSyncDate").value = strMsg;
    If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
    I much appreciate your time to help me ... I'm almost there.
    Kind Regards,
    Nifty

Maybe you are looking for

  • My ipad asks me repeatedly if I want to "trust this computer" whenever I plug it in to my desktop PC and I can't get it to just connect and be able to sync or access files.

    Whenever I plug my iPad into my desktop PC (windows 8.1), the "trust this computer?" popup keeps displaying on my iPad. I tap it but it just beeps and a few moments later it shows up again. Meanwhile, itunes keeps giving me error messages and giving

  • Hp monitor

    my hp external monitro keept flashing a menue massage every other 5sec, it stoped some days after, but then it started again then i thought that the problem was with the hardweae so i uncrewed it after which it stoped,and last night it started only t

  • How would you make datacopy faster in a calc?

    I have a calc that looks like this and it's running quite slow because of size of data. FIX (Scenario, Version, Product) DATACOPY Salary>Year to Salary_Copy->Year; DATACOPY Marketing->Year to Marketing_Copy->Year; DATACOPY Training->Year to Training_

  • Korean internet problem

    Hello Dear, I just came to Korea to study. The school has an internet student service where the student registers for classes and updates personal info etc... It seems like their system was supported by Windows operating web browser (Internet explore

  • Help with DATE needed

    How can I get the temperature reading (value) from one year ago (valuem1y) and from 1 week ago (valuem1w). The temperature readings are daily. It is assumed that the previous year/week value will be available. using the below query, modified. How to