AS3 Data Bindings on Custom Objects

Hey Guys,
I'm having an issue using BindingUtils.bindProperty to bind a
label to a string that is located in a custom object, however it
works perfectly fine in mxml.
EXAMPLE:
This Works:
<mx:Label id="testLabel"
text="{MainApplication.CONSOLE.currentItem.IssueName}" />
This does not work:
var testLabel = new Label();
BindingUtils.bindProperty(testLabel,"text",MainApplication.CONSOLE.currentItem,"IssueName ");
this.addChild(testLabel);
The variable is set to be bindable. What happens is the first
time in AS is it finds the correct text in that string, but any
time the string is updated the label does not change. What is mxml
doing differently here that i am doing wrong?
Thanks,
~Jamie

I think In MXML the binding is setup to watch changes in
MainApplication, CONSOLE, currentItem and IssueName.
Where as in AS only the IssueName is getting watched. I think
the binding should have been set on currentItem propertly of
CONSOLE which I think is getting changed.

Similar Messages

  • Expose Data 0f 1 Custom object group them based on another custom object

    1. Custom Object 2: Call Report
    2. Custom Object 1: Customer
    3. Account:
    Fields: Account
    Account Id
    Call Report
    Created Date
    Row Id
    Subject
    Owner
    Status
    Customer
    Customer Name
    Using Real Time Reporting-> Call Reporting
    Hide Display of Distributor Id, prompt on dashboard
    Need to group customer name based on call report row id.
    Union of 2 reports, we cannot use Account Id as prompt(does not support).
    Report output as below
    Account id1, created date, object, status, owner, Customer name 1
    Customer name 2
    Account id2, created date, object, status, owner, Customer name 6
    Customer name 7
    Account id4, created date, object, status, owner, Customer name 9
    Thanks in Advance.

    Please add a question to your post. It is not clear what output you are trying to achieve that is not working.
    Thanks!

  • Implementing Data Search for Custom Objects

    Can any one have some information on implementing search criteria for custom objects.
    I am looking to modify the drop down values and search criteria based on custom data model.

    Hello Rajesh,
    The following configuration activity might resolve your query.
    Transaction: mdgimg.
    General Settings> UI Modelling> Define Field Properties for UI. Select your custom data model and go to "Hide Field Names."
    For the fields of the entity type, you don't want to come up in the search UI, check on "No selection".
    "No Selection" : These wouldn't come up as search Criteria. "No Results List": These won't come up in final result list.
    Best regards,
    Shephalika.

  • Sending EchoSign agreements from Custom Objects in Salesforce

    In this tutorial, l I’ll go through how to:
    set up a document template with text tags and add it to the SFDC library
    create an Agreement template
    add the EchoSign button to a Custom Object page layout
    create a merge mapping  to merge fields data from the Custom object into an EchoSign agreement
    create a data mapping to map field data from the EchoSign agreement back into the custom object in SFDC
    The tutorial is the attached PDF, the Word document is a sample template document used in this tutorial.

    Hi Kai,
    The custom object is referring to a custom object in Salesforce. You only need it if you decide you need a custom object to hold your data in SFDC. if you are using standard Salesforce object like Account and Opportunity you can just add an EchOsign button to these.
    In my example i called the custom object 'MyCustomobject'. in your Org you may have a custom object called 'Services'. In this case you'd add the following for the masterobject
    Services__c
    If you want to send from a standard object like Opportunity, then just add Opportunity as the master object on the EchOSign agreement template.
    See also the EchoSign for Salesforce customization guide on how to setup templates.
    Simon

  • Data import/update on Custom Objects

    Hi,
    We are using the Custom Object1 for capturing site data within an opportunity. Since the custom object does not have capability to check for duplicates, the users have now entered data into this object which have lot of duplicates and also the data quality and integrity is lost. I am trying to see if there is an option to export this data and reimport them back after cleansing the data.
    I then realised while importing custom objects, the only available option is to use external id.All the site that have been entered by the users do not have any external unique id. Also there is no option to do a mass delete records within the custom object1.
    I understand that the only option to cleanse and reimport them back into ondemand is using web services. I want to use web services as last option.
    Is there any other option to reimport them back into ondemand using the import utility after cleansing the data.
    I would like to know what is the best practice while using custom objects. Is it advisable to populate a default value in the external unique id for custom objects while creating new records. If i had populated some value in the external unique ids while creating those records, i would have had the option to update the existing records. Now i don't even that option.
    I am looking for some suggestions for this issue.
    Thanks
    Swami

    Bobb,
    I exported the data and mapped the row id to the external unique id. Like i said before, the external id is blank in crm ondemand when it is created. We did not have any default value specified for the external unique id.
    When i tried to import with overwrite option, it does not find a match.
    I get the following error message as i expected.
    Row Id: AEMA-EYGFE     No matching record has been found. The import process will ignore this record.
    Row Id: AEMA-F8CPC     No matching record has been found. The import process will ignore this record.
    Row Id: AEMA-12CLIA     No matching record has been found. The import process will ignore this record.
    Unless i do a web service update of External Unique ID in crm ondemand, the import option will not work.
    Thanks
    Swami

  • Data Loader On Demand Inserting Causes Duplicates on Custom Objects

    Hi all,
    I am having a problem that i need to import around 250,00 records on a regular basis so have built a solution using Dataloader with two processes, one to insert and one to update. I was expecting that imports that had an existing EUI would fail therefore only new records would get inserted (as it says in the PDF) but it keeps creating duplicates even when all the data is exactly the same.
    does anyone have any ideas?
    Cheers
    Mark

    Yes, you have encountered an interesting problem. There is a field on every object labelled "External Unique Id" (but it is inconsistent as to whether there is a unique index there or not). Some of the objects have keys that are unique and some that seemingly have none. The best way to test this is to use the command line bulk loader (because the GUI import wizard can do both INSERT/UPDATE in one execution, you don't always see the problem).
    I can run the same data over and over thru the command line loader with the option to INSERT and you don't get unique key constraints. For example, ASSET and CONTACT, and CUSTOM OBJECTS. Once you have verified whether the bulk loader is creating duplicates or not, that might drive you to the decision of using a webservice.
    The FINANCIAL TRANSACTION object I believe has a unique index on the "External Unique Id" field and the FINANCIAL ACCOUNT object has a unique key on the "Name" field I believe.
    Hope this helps a bit.
    Mychal Manie ([email protected])
    Hitachi Consulting

  • Custom object - data loader issue

    Hello guys.
    I've just attempted to upload a CSV file in order to insert new records to a custom object.
    after some tweaking I've managed to get it to work, the log stated 100% success but no new records appeared.
    I've ran the data loader for "ordinary" objects (account, parts) with full success.
    Any thoughts?
    Thanks,
    Adi Smulian
    [email protected]

    The dataloader will often state 100% this does not mean that all the records were imported correctly. You will need to go to the data import queue to retrieve the findings of the import this will then tell you if you have any errors.

  • How to execute Custom java data source LOV view object from a common mthd?

    Hi,
    My application contains Custom java data source implemented LOVs. I want to have a util method which gets the view accessor name, find the view accessor and execute it. But i couldn't find any API to get the view accessors by passing the name.
    Can anyone help me iin how best view accessors can be accessed in common but no by creating ViewRowImpl class (By every developer) and by accessing the RowSet getters?
    Thanks in advance.

    I am sorrry, let me tell my requirement clearly.
    My application is not data base driven. Data transaction happens using tuxedo server.
    We have entity driven VOs as well as programmatic VOs. Both are custom java data source implemented. Entity driven VOs will participate in transactions whereas programmatic VOs are used as List view object to show List of values.
    Custom java datasource implementation in BaseService Viewobject Impl class looks like
            private boolean callService = false;
        private List serviceCallInputParams = null;
        public BaseServiceViewObjectImpl()
            super();
         * Overridden for custom java data source support.
        protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams)
            List dataFromService = null;
            if(callService)
                callService = retrieveDataFromService(serviceCallInputParams);
            setUserDataForCollection(qc, dataFromService != null? dataFromService.iterator(): null);   
            super.executeQueryForCollection(qc, params, noUserParams);
         * Overridden for custom java data source support.
        protected boolean hasNextForCollection(Object qc)
            Iterator<BaseDatum> datumItr = (Iterator<BaseDatum>) getUserDataForCollection(qc);
            if (datumItr != null && datumItr.hasNext())
                return true;
            callService = false;
            serviceCallInputParams = null;
            setFetchCompleteForCollection(qc, true);
            return false;
        }Individual screen developer, who want to load data to VO, will do something like the below code in their VO impl class
        public void fetch()
            BaseServiceViewObjectImpl vo = this;
            vo.setCallService(true);
            vo.setServiceCallInputParams(new ArrayList());
            vo.executeQuery();
        }As these custom java data source implemented LOV VOs comes across the screens, i want to have a util method at Base VOImpl class, that gets the view accessor name, finds the LOV VO instance, retrieves data for that. I want to do something like
         * Wrapper method available at Base Service ViewObject impl class
        public void fetchLOVData(String viewAccessorName, List serviewInputParams)
            // find the LOV View object instance
            BaseServiceViewObjectImpl lovViewObject  = (BaseServiceViewObjectImpl) findViewAccessor(viewAccessorName);
            // Get data for LOV view object from service
            lovViewObject.setCallService(true);
            lovViewObject.setServiceCallInputParams(serviewInputParams);
            lovViewObject.executeQuery();
    Question:
    1. Is it achievable?
    1. Is there any API available at View Object Impl class level, that gets the view accessor name and returns the exact LOV view object instance? If not, how can i achieve it?

  • Siebel -00284 Error while editing the Custom object Data

    I have created one custom object and when i tried to edit the data which i have entered , i am not able to edit the data on Custom object. Could you please suggest me on this. Please find the below error.
    You do not have permission to edit the record. Click cancel or Back link to continue.(SBL-DAT-00284)
    Edited by: Subbu on Jun 29, 2010 1:57 AM

    Hi Shyam,
    Try with this code.
    *-----Adding the Condition Types at item level
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  'KOMV-KSCHL(01)'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '=V69A_KONY'.
                  PERFORM bdc_dynpro      USING 'SAPMSSY0'    '0120'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  '05/04'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '=PICK'.
    *----1. Unitprc ( ZPR0 )
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  'KOMV-KSCHL(01)'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '=V69A_KOAN'.
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  'KOMV-KBETR(02)'.
                  WRITE x_item-unitprc TO v_unitprc CURRENCY komv-waers NO-SIGN.
                  PERFORM bdc_field       USING 'KOMV-KSCHL(02)'  'ZPR0'.
                  PERFORM bdc_field       USING 'KOMV-KBETR(02)'  v_unitprc.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '/00'.
    *-----End of Addition
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '/EBACK'.
    Regards,
    Aman
    Message was edited by:
            Amandeep Kumar

  • Batch deletion of Custom Object data

    Hi,
    I have a requirement to delete a Custom Object records from CRM OD application. Here for this Custom Object, I have to delete all the reords data at one time run, iam trying to delete the data using "CustomObject3Delete_Input" functionality and for that iam writing the following request code:
    <soapenv:Body>
    <ns:CustomObject3Delete_Input>
    <data:ListOfCustomObject3>
    <!--Zero or more repetitions:-->
    <data:CustomObject3>
    </data:CustomObject3>
    </data:ListOfCustomObject3>
    </ns:CustomObject3Delete_Input>
    </soapenv:Body>
    after runnig the above code, i got an response (error) like:
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring>No user key can be used for the Integration Component instance 'Custom Object 3'.(SBL-EAI-04397)</faultstring>
    <detail>
    <siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault">
    <siebelf:logfilename>OnDemandServicesObjMgr_enu_246474.log</siebelf:logfilename>
    <siebelf:errorstack>
    <siebelf:error>
    <siebelf:errorcode>(SBL-EAI-04397)</siebelf:errorcode>
    <siebelf:errorsymbol>IDS_ERR_EAI_SA_NO_USERKEY</siebelf:errorsymbol>
    <siebelf:errormsg>No user key can be used for the Integration Component instance 'Custom Object 3'.(SBL-EAI-04397)</siebelf:errormsg>
    </siebelf:error>
    </siebelf:errorstack>
    </siebelf:siebdetail>
    </detail>
    </SOAP-ENV:Fault>
    Any responses or suggestions are highly appreciable. Thanks in advance:).
    Regards,
    Kashyap

    Here is the query for a single delete
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAPSDK1="urn:crmondemand/ws/ecbs/customobject3/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:SOAPSDK2="urn:/crmondemand/xml/CustomObject3/Data">
    <SOAP-ENV:Header>
    <wsse:Security>
    <wsse:UsernameToken>
    <wsse:Username>your pod</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">yourpassword</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <SOAPSDK1:CustomObject3Delete_Input>
    <SOAPSDK2:ListOfCustomObject3>
    <CustomObject3>
    <Id>AAPA-6R09JC</Id>
    </CustomObject3>
    </SOAPSDK2:ListOfCustomObject3>
    </SOAPSDK1:CustomObject3Delete_Input>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    For multiple delete it would look like - up to 20 objects per delete
    <SOAP-ENV:Body>
    <SOAPSDK1:CustomObject3Delete_Input>
    <SOAPSDK2:ListOfCustomObject3>
    <CustomObject3>
    <Id>AAPA-6R09JC</Id>
    </CustomObject3>
    <CustomObject3>
    <Id>AAPA-6R09JC</Id>
    </CustomObject3>
    <CustomObject3>
    <Id>AAPA-6R09JC</Id>
    </CustomObject3>
    <CustomObject3>
    <Id>AAPA-6R09JC</Id>
    </CustomObject3>
    <CustomObject3>
    <Id>AAPA-6R09JC</Id>
    </CustomObject3>
    </SOAPSDK2:ListOfCustomObject3>
    </SOAPSDK1:CustomObject3Delete_Input>
    </SOAP-ENV:Body>

  • How to create the data for custom objects in pList

    Hi,
    I am new in developing on iPhone and I don't know much about this area. I would like to ask a question. I couldn't find the answer on this question in apple documentation but I hope Internet community will help me.
    Lets say I have a class called classA. The classA has 2 public properties (or fields):
    *int customIndex*;
    and
    NSString *customTitle;
    My view controller class showMeSomething has a property NSArray which holds the objects of type classA. I would like to load the array from the plist resource file. How do I edit the resource file with initial values or how do I know the format of the plist which can be loaded from using mainBundle for my array of custom objects?
    Thanks!

    Here's some info on working with plists:
    http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Introduc tion/chapter1_section1.html
    They can be edited with any text editor. Xcode provides a graphical editor for them - make sure to use the .plist extension so Xcode will recognize it.

  • How to handle data in a request object

    I want to know the best way to handle data received from sql query to display on a jsp page and for page navigation. If I store data in a request object then the data is lost after displaying first page. When user hits Next link to view more data I need to do another query to database which I want to avoid. I display only 20 rows at a time. So if my query returns 100 rows I display 5 pages. I need to retain data when user hits next to view other pages. What is the best way to handle this?
    - Raj

    By caching your resultset. There are caching custom tags that perform this function. Check out http://www.servletsuite.com/jsp.htm.

  • Display data in a custom container

    Hi All,
    My requirment is to just display data in a custom container.
    I could able to display data in change mode but not display mode.Can you please let me now how can i do that.
    Thanks in Advance
    KV

    Im using cl_gui_custom_container.
    In PBO
    here is my code whihc is fine for Change/Edit mode.
      create control container
        CREATE OBJECT g_editor_container
            EXPORTING
                container_name = 'DISP_CONT'
            EXCEPTIONS
                cntl_error = 1
                cntl_system_error = 2
                create_error = 3
                lifetime_error = 4
                lifetime_dynpro_dynpro_link = 5.
        IF sy-subrc NE 0.
        do nothing
        ENDIF.
      create calls constructor, which initializes, creats and links
       a TextEdit Control
        CREATE OBJECT g_editor
          EXPORTING
             parent = g_editor_container
             wordwrap_mode =  cl_gui_textedit => wordwrap_at_fixed_position
             wordwrap_to_linebreak_mode = cl_gui_textedit=>TRUE
          EXCEPTIONS
              OTHERS = 1.
        IF sy-subrc NE 0.
        do nothing
        ENDIF.
    In PAI
    CALL METHOD g_editor->get_text_as_r3table
        IMPORTING
          table  = Text_table
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc NE 0.
      ENDIF.
    Text_table contains messages which r supposed to be displayed.
    Based on certain logical operations i will display the messages.

  • Performance issue in Webi rep when using custom object from SAP BW univ

    Hi All,
    I had to design a report that runs for the previous day and hence we had created a custom object which ranks the dates and then a pre-defined filter which picks the date with highest rank.
    the definition for the rank variable(in universe) is as follows:
    <expression>Rank([0CALDAY].Currentmember,  Order([0CALDAY].Currentmember.Level.Members ,Rank([0CALDAY].Currentmember,[0CALDAY].Currentmember.Level.Members), BDESC))</expression>
    Now to the issue I am currently facing,
    The report works fine when we ran it on a test environment ie :with small amount of data.
    Our production environment has millions of rows of data and when I run the report with filter it just hangs.I think this is because it tries to rank all the dates(to find the max date) and thus resulting in a huge performance issue.
    Can someone suggest how this performance issue can be overcome?
    I work on BO XI3.1 with SAP BW.
    Thanks and Regards,
    Smitha.

    Hi,
    Using a variable on the BW side is not feasible since we want to use the same BW query for a few other reports as well.
    Could you please explain what you mean by 'use LAG function'.How can it be used in this scenario?
    Thanks and Regards,
    Smitha Mohan.

  • Generate quote off custom object--HTML in narrative duplicates table

    Hi,
    I am trying to build a quote header and lines off a custom object. Quote header works, but I am using a separate narrative report called from a web link to show the quote item lines data. The narrative section displays my basic table header and lines, but since the report returns two rows for the selected parts, the table with the header and lines is displayed twice, once for each row returned by the report itself.
    I just want one instance of the table, one header and two lines, not separate tables for each part.
    Here is the sample html placed in the narrative section of the report.
    <TABLE BORDER="5" WIDTH="50%" CELLPADDING="4" CELLSPACING="3">
    <TR>
    <TH COLSPAN="2"><BR><H3>TABLE TITLE</H3>
    </TH>
    </TR>
    <TR ALIGN="CENTER">
    <TH>Column A</TH><TD>@5</TD><TH>Column B</TH><TD>@8</TD>
    </TR>
    </TABLE>
    Many thanks for any input.

    Hi,
    Instead of putting it all in the Narrative section you could use the Prefix and Postfix like below:
    <!-- Prefix -->
    <TABLE BORDER="5" WIDTH="50%" CELLPADDING="4" CELLSPACING="3">
    <TR>
    <TH COLSPAN="2">
    TABLE TITLE
    </TH>
    </TR>
    <TR ALIGN="CENTER">
    <TH>Column A</TH><TH>Column B</TH>
    </TR>
    <!-- Narrative -->
    <TR ALIGN="CENTER"><TD>@5</TD><TD>@8</TD>
    </TR>
    <!-- Postfix-->
    </TABLE>

Maybe you are looking for

  • I can't get my iPhone5 to showup in itunes. I've uninstalled the software and the re-installed and it still doesn't show.

    I'm on Window's 8.1 with iTunes 11.1.1.4 version is loaded. Is there anything I can do to force iTunes to see this device. I've tried the device selection and sync but all of those options are grayed out so they're not available to select.

  • [SOLVED] Looking for a tiling WM with a certain feature

    I've been using openbox/pekwm for a few years I recently tried tiling window managers again (tried them a few years ago and hated them) and I'm hooked but after trying just about all of the popular ones and reading the man pages/web sites I can't fin

  • No Internet at all

    I have a 15 inch iMac (with snowball at the bottom) and attempted to put OS 10.4 on it from 10.3 (many times) and kept getting a message that there was an error installing. So I wiped the drive via disk utility and reinstalled 10.3. I am on a network

  • [BO 5.1] Choose modules to install for a silent install

    Hye, under BO 5.1, I use the following command who realizes a complete silent install : .\setup\setup.exe -key xxxx-yyyyy-zzzz -rdbmskey aaaa-bbbbb-cccc -silent -skip The problem is that command install the default modules, and I don't want superviso

  • Java keeps asking me to update

    Hi here is my computer info. Every time I turn on my computer, and about 5 times a day Java sends me this update warning. It doesnt matter how many times i install java from this window by hitting more info, or by going to the website and downloading