Custom Property Editors in jDev

Hello,
I have a custom property editor for a component in the viewer window. How do I access the component from my custom property editor? The propety editor does not have any reference of the component, since it is used to set the value of the property in the property inspector. Does anyone have a way to this?? Please help.
Another problem I faced is that a Combobox does not show the items as it normally does when used in the UI of a custom property editor. Why is it so??
Thankyou.

already done that....
apparently it's something to do with the inner properties of the editor being 'hidden' and the IDE doesn't notice that the bean has changed when its inner properties have changed.
tried setting the property to 'hidden' as recommended elsewhere, but still no luck

Similar Messages

  • Custom property editors part II

    I have a custom property editor that sets up an array of values, plus an associated string.
    I am having problems being able to use these items (setup in the property editor) from the object on which the property exists.
    eg suppose i had a property Colour on an Object Door, I set the Colour to blue in my property editor, but the Object does not register this change.
    Obviously I am not setting the property correctly from my property editor, but...
    All of the documentation I have come across is severely lacking on advanced property editor programming...
    somebody please help!!

    already done that....
    apparently it's something to do with the inner properties of the editor being 'hidden' and the IDE doesn't notice that the bean has changed when its inner properties have changed.
    tried setting the property to 'hidden' as recommended elsewhere, but still no luck

  • How to reference a custom property in a vo transient attribute expr + bug

    Hi all
    I have created a transient attribute with an expression that evaluate null content to replace it by a appropriate text.
    <ViewAttribute
        Name="DescriptionUI"
        IsUpdateable="false"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR">
        <TransientExpression><![CDATA[((Description == null) ? 'Pas de description' : Description)]]></TransientExpression>
      </ViewAttribute>I have defined a custom property for that attribute that contains the message text. I was surprised to see that the custom property was not associate with the attribute in the source file. Don't understand where the association is done
        <Properties>
          <CustomProperties>
            <Property
              Name="flex.tree.noLabel"
              ResId="flex.noDescription"/>
          </CustomProperties>
        </Properties>I had some difficulties to use the custom property editor. When creating a new related one by using an existing resource the property column value is not changed and the content 'Property' is generated. Because no relationships exists between attribute and the property, the entry is lost in the table referring custom property list for the attribute when your come back into the view object or if you save an another entry in an another attribute.
    So my first question ? Is the attribute editing part the right part to define custom property pairs if they are not related to attributes ? is it a bug ?
    My second question is : is it possible to evaluate the bundle in the expression (replacing the literal 'Pas de description' by an expression) ? What is the expression to use ? Where it is described to do such things in the help or in the documentation ?
    Thank you

    This is wrong
    ((Label == null) ? {FlexParameterModelBundle['flex.tree.noLabel']} : Label)
    What is the correct syntax to refer to the project model standard bundle in the groovy expression ?
    Thank for the help !

  • How to re-use the Property Editor in a custom development?

    Hi,
    I would like to re-use the Property Editor in a new project.
    Is this possible and where do I have to start?
    Is it possible to use the enhancement technology on this new editor?
    thanks for your help,
    Jan

    Hi
    [Click Here|https://www.sdn.sap.com/irj/sdn/articles-topic?rid=/webcontent/uuid/7082f9fc-070d-2a10-88a2-a82b12cea93c&startindex=121]
    Reagrds
    pavan

  • How to use Property Editor from an Add-In?

    Hi,
    I am writing a WYSIWYG add-in for JDev that allows users to put some object into a JPanel instance.
    Thess object has properties such as left, right, width, height, etc.
    - Question: how to use JDev's property editor to allow users change properties of thess object?
    - Another word: how to user JDev's Property Editor API from an add-in?
    I looked at the document. It does not give me enough information about Property Editor.
    Thanks in advance,
    Trung

    Hello Prasad,
    You are on the right avenue - launch an external application which can connect to running Outlook instance and then close it. After this you can launch Outlook anew. Here are the steps required to get the job done:
    1. Use the Marshal.GetActiveObject method which obtains
    a running instance of the specified object from the running object table (ROT) - Outlook in your case, for example:
    // Check whether there is an Outlook process running.
    if (Process.GetProcessesByName("OUTLOOK").Count() > 0)
    // If so, use the GetActiveObject method to obtain the process and cast it to an Application object.
    application = Marshal.GetActiveObject("Outlook.Application") as Outlook.Application;
    then use the
    Quit method to close the running instance. The
    associated Outlook session will be closed completely; the user will be logged out of the messaging system and any changes to items not already saved will be discarded.
    2.  Use the
    Start method of the System.Diagnostics.Process class to start Outlook anew.

  • Enum property editor not rendering

    I am trying to get a simple Enum property editor to work for my custom component but I keep getting an error: "Failed to load/render Property Editor"
    The component XML is:
    <input-parameter  hidden="false"  name="level" required="true" title="Log Level" type="org.apache.log4j.Level">
              <default-value>
            </default-value>
          <property-editor editor-id="com.adobe.idp.dsc.propertyeditor.system.Enum" />
      </input-parameter>
    <class-path>
          libs/log4j.jar
       </class-path>
    Log4j.jar is in the component package and in the component class path
    I have tried the com.adobe.idp.dsc.propertyeditor.system.Enum Class as described in the docs here: http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=001419.html
    I also tried using com.adobe.idp.dsc.propertyeditor.system.EnumPropertyEditorComponent as described here: http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=001379.html
    Both give the same error. I even tried using my own Enum class insteasd of org.apache.log4j.Level and referencing that, but still get the same error.
    Any ideas would be helpful - thanks
    (Adobe LiveCycle Workbench ES2
    Version: 9.0.0.1.20100511.1.236086)

    Ok after some playing about and changing random things, I seem to have figured it out.
    - org.apache.log4j.Level is not an Enum class, it is a collection of static vars.
    - I refactored my own Enum class to remove everything but the Enumeration values (no constructor, methods or construction parameters)
    - I used com.adobe.idp.dsc.propertyeditor.system.Enum and not com.adobe.idp.dsc.propertyeditor.system.EnumPropertyEditorComponent
    - I added my Enum class to the <export-packages> XML parameter
    Hope this helps someone else with the same issues

  • Upgrading to JSF 1.2,  error: Property Editor not registered

    we have a JSF appliction working well on Jboss 4.0.5GA using myfaces 1.1. Now we are moving to jboss 5.0.1GA that uses jsf ri 1.2. After fixing some issues, finally we got the following error for our custom component at runtime:
    <x:hello value="#{bean.name}" />
    org.apache.jasper.JasperException: Unable to convert string "#{bean.name}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager.
    org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:887)
    It works for myfaces 1.1 version. What is the possible reason? Thanks for any information.
    Dave

    Thanks a lot for response!
    We are using weblogic10.3
    We had MyFaces jars and things are very fine. We are planning to use Iceface which required JSF 1.2
    I had taken jsf-api-1.2.jar and jsf-impl-1.2.jar and latest supporting jars.
    Now I am getting below error with existing jsp
    welcome.jsp:31:25: No property editor found for the bean "javax.el.ValueExpression".
    <h:outputText value=_"click here"_ styleClass="TXT" />
    ^----------^
    welcome.jsp:31:25: No property editor found for the bean "javax.el.ValueExpression".
    <h:outputText value="click here" styleClass=_"TXT"_ />
    ^----------^
    It is throwing while compiling jsp for almost all the places....
    Is there any extra configuration required which is specific to jsf 1.2?
    Edited by: nishantparmar on Jun 13, 2009 8:30 AM
    Edited by: nishantparmar on Jun 13, 2009 8:31 AM

  • How to simply add custom property to a HTML Form Web Part?

    Hello.
    Is it possible to add a custom property (like a date-field) to a HTML Form Web Part with help of JavaScript? I do not want to use Visual Studio / Nappa etc. Is this possible in an easy way?
    Thanks for your help.

    Hi,
    Based on your description, my understanding is that you want to count the date between today and the latest event date.
    You can create a calendar in a page firstly, then add a content editor web part rather than the html form web part, as html form web part can't place the Jquery element.
    Then you can firstly read the date field value of the calendar list using JavaScript Client Object Model and then calculate the difference between two date values using Jquery. You can add the code directly in the content editor web part.
    Here are some detailed code demos for your reference:
    Get SharePoint calendar list field value using JavaScript Client Object Model:
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script>
    $(document).ready(function(){
    SP.SOD.executeFunc("sp.js", "SP.ClientContext", retrieveListItemsCal);
    function retrieveListItemsCal() {
    var clientContextCal = new SP.ClientContext.get_current();
    var oListCal = clientContextCal.get_web().get_lists().getByTitle('Calendar');
    var camlQueryCal = new SP.CamlQuery.createAllItemsQuery();
    AllItemsCal = oListCal.getItems(camlQueryCal);
    clientContextCal.load(AllItemsCal);
    clientContextCal.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceededCal), Function.createDelegate(this, this.onQueryFailedCal));
    function onQuerySucceededCal(sender, args) {
    var listItemInfo = '';
    var listItemEnumeratorCal = AllItemsCal.getEnumerator();
    var htmlCal = '';
    while(listItemEnumeratorCal.moveNext()) {
    var oListItemCal = listItemEnumeratorCal.get_current();
    htmlcal= oListItemCal.get_item("Start Time").format("MMMM d, yyyy"));
    break;
    function onQueryFailedCal(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>
    Calculate the difference between two dates:
    http://stackoverflow.com/questions/2609513/jquery-calculate-day-difference-in-2-date-textboxes
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Jerry Guo
    TechNet Community Support

  • Set list custom property value on creation

    I have a list template created, and a custom action that exposes a settings page. On the settings page, I can read / set a custom list property. I would like to be able to set the property when I'm creating the list (and have a similar requirement when
    creating a site). Is there any way to expose the custom property to the "New list" dialog (Silverlight)?

    Hi Ahmad,
    Could you please follow the below steps to get ALL to the top:
    -Edit the objects properties for which you want to apply condition.
    -Click on SQl editor and check the option don't generate sql
    -Write the sql as follows:
    SELECT DISTINCT
    TABLE NAME.COLUM NNAME
    FROM
      TABLE
    UNION
    SELECT '*ALL' FROM TABLE
    For Example:
    SELECT DISTINCT
      EMP.ENAME
    FROM
      EMP
    UNION
    SELECT '*ALL' FROM EMP
    __-Create a pre defined condition in universe_:
    @Select(Emp\Ename) IN @Prompt('VAL',A,'Emp\Ename',MULTI,FREE) OR '*ALL' IN @Prompt('VAL',A,'Emp\Ename',MULTI,FREE)
    Note: Use '*ALL' insted of 'ALL'

  • Dynamic Property Editor for a Component

    All,
    Have a requirement to show the properties of a given component when the component is selected by the user in a nice property editor within Webcenter. The component will be part of a Fusion Web application (ADF). Can we surface the properties of the component via introspection at runtime from a Fusion Web application (ADF) within WebCenter for DT@ RT. Does Webcenter have any property editor which introspects and displays the component properties, say the properties of a Java Data Transfer Object in this case.
    Thank you.

    well your requirement is similar that ADF Faces Rich client demo provides.
    Unfortunately the online hosted version is not working but you can download the code and run http://www.oracle.com/technetwork/developer-tools/adf/documentation/adf-faces-rc-demo-083799.html
    http://www.oracle.com/technetwork/developer-tools/jdev/index-098948.html
    Zeeshan

  • Property editor sheet

    Hi
    I need to develop a generic GUI-based java bean property editor. A simple sheet like the one used to edit bean properties in netbeans would suffice. Can anyone tell me if some software is already available for this purpose?

    Christoph,
    I would guess that your view part needs to implement ISelectionProvider...
    On 30/11/2012 10:59 AM, Christoph Miksovic wrote:
    > Dear readers,
    >
    > I have an EMF-based RCP-application that was originally generated
    > using the genmodel-generator. The application thus has EMF.Edit end
    > EMF.Editor components. When I run the application, I basically have an
    > editor and a property sheet. When I select an object in the editor,
    > the property sheet shows its properties, as expected.
    > Now I added a custom view part that contains a Tree viewer.
    > Essentially the code is as follows:
    >
    >
    > public class MyCustomViewPart extends ViewPart
    > (...)
    > private ComposedAdapterFactory adapterFactory = new
    > ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);
    > (...)
    > public void partActivated(IWorkbenchPartReference arg0) {
    > (...)
    > treeViewer.setContentProvider(new
    > AdapterFactoryContentProvider(adapterFactory));
    > treeViewer.setLabelProvider(new
    > AdapterFactoryLabelProvider(adapterFactory));
    > treeViewer.setInput(editingDomain.getResourceSet());
    > (...)
    > }
    >
    > public void createPartControl(Composite parent)
    > { (...)
    > getSite().setSelectionProvider(treeViewer);
    > (...)
    > }
    >
    >
    > When I now select an object in the tree viewer of MyCustomViewPart,
    > the property sheet remains empty. When I activate the editor and
    > select an object in the editor, the property sheet shows the
    > proprieties of the selected objects.
    >
    > Can anyone please give me a hint why the property sheet remains empty
    > if I select an object in the tree viewer of my MyCustomViewPart?
    >
    > Thank you very much for any help,
    > Christoph

  • Adding property to property editor of Dynpro iView

    In case of regualr(non-dynpro) iView, I could just modify portalapp.xml to add a property which shows up in the iView property editor inside PCD.
    In case of web dynpro iView, How do I add property which shows up on my web dynpro iView property editor? How do I programmatically read this property?
    Right now I am using "Application Parameters" attribute of the iView to store the attributes as name/value pair seperated by "&" . But it's not very user friendly.
    Thanks
    Sam

    Hi,
    I can only ask the same as Sam.
    Is it possible to add any custom property to a web dynpro iView ?
    Regards,
    Ferenc

  • JPanel which uses reflection to create a simple property editor

    Hi everyone,
    Here's what I'd like: a custom JPanel, let's call it DesiredJPanel, which can be passed an object as an argument, and which then detects all the public getters and setters on that object, and then creates a simple property editor, with default behavior for numbers, booleans, Strings, etc. It might be used like this:
    JDialog dialog = new JDialog(new DesiredJPanel(someObjectWithSettersAndGetters)));
    dialog.setVisible(true);
    Then we'd get a dialog populated with the current values of all relevant properties. The panel could have a button bar, with an ok button. When you press it, all the properties of someObjectWithSettersAndGetters are set according to what the user has entered in the fields of the panel.
    This seems like a pervasive, standard use case. It also seems like javabeans is intended for this. E.g. quoting wikipedia: "JavaBeans are reusable software components for Java that can be manipulated visually in a builder tool." Moreover, there is the java.beans.PropertyEditor interface.
    And yet I can't find anything that seems to do this, so I end up writing the same boilerplate style code over and over. I found some commercial thing (this is for an open source project), and netbeans does what I'm after but it's netbeans. I want something that can be used in any swing app.
    Apologies if I've overlooked something obvious or posted this to the wrong forum (if either, please let me know!).
    All best and happy new year!
    - Jeff

    Not exactly what you asked for, but reasonably close. You can use my [Bean Table Model|http://www.camick.com/java/blog.html?name=bean-table-model] to create a JTable which will display all the properties in a single row of a table. The appropriate renderer/editor is used for each property.
    Play with the commented out code in JButtonTableModel class to see what you get for your particular bean.

  • How can I get the value of a custom property from a resource object?

    I am trying to get the value(s) of a custom property, called "status" within a method. The method has an object of type IResource available to it.
    I have tried the following:
    PropertyName propName = new PropertyName("","status");
    value = res.getProperty(propName).toString();
    However, I am getting a NullPointerException when I try to create the PropertyName instance.
    Is there a better way to get the value of a specific property from a resource object?
    Thanks,
      Tom

    Thanks Praveen.
    I was missing the default namespace of "http://sapportals.com/xmlns/cm" - I thought I could just pass an empty string for the namespace, but it looks like I must always specifiy, even if it is default.
    Tom

  • How do I map custom property from portal api ptsearchresponse?

    I want to map the search results to my datatable.
    I can execute the search fine. But how do I map the property value? My property id is 101.
    In other words which ptSearchResponse method do I use?
                    IPTSession ptSession;
                    IPTSearchRequest ptSearchRequest;
                    IPTSearchResponse ptSearchResponse;
                    IPTSearchQuery ptSearchQuery;
                    string serverConfigDir = ConfigPathResolver.GetOpenConfigPath();
                    IOKContext configContext = OKConfigFactory.createInstance(serverConfigDir, "portal");
                    PortalObjectsFactory.Init(configContext);
                    ptSession = PortalObjectsFactory.CreateSession();
                    ptSession.Connect(1, "", null);
                    // Create a SearchRequest object
                    ptSearchRequest = ptSession.GetSearchRequest();
                    // Set search settings (constraints)
                    // Set maximum results desired (100)
                    ptSearchRequest.SetSettings(
                    PT_SEARCH_SETTING.PT_SEARCHSETTING_MAXRESULTS, 100);
                    // Set the folder in which to search (array to support multiple folders)
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_DDFOLDERS,
                        new int[] { Convert.ToInt32(ConfigurationManager.AppSettings["DocumentFolderId"]) });
                    // Include subfolders of the folder
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_INCLUDE_SUBFOLDERS, true);
                    // Restrict search to just portal documents
                    // (not ALI Collaboration or ALI Publisher)
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_APPS, PT_SEARCH_APPS.PT_SEARCH_APPS_PORTAL);
                    // get documents only
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_OBJTYPES, new int[] { PT_CLASSIDS.PT_CATALOGCARD_ID });
                    // Request the intrinsic PT_PROPERTY_PROVIDERCLSID and custom property 101
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_RET_PROPS,
                        new int[] { PT_INTRINSICS.PT_PROPERTY_PROVIDERCLSID, 101 });
                    //Use IPTFilter to create search filter with clause with two statements
                    IPTFilter ptFilter;
                    IPTPropertyFilterClauses ptFilterClause;
                    IPTPropertyFilterStatement ptFilterStmt1;
                    IPTPropertyFilterStatement ptFilterStmt2;
                    // Create the filter itself
                    ptFilter = PortalObjectsFactory.CreateSearchFilter();
                    // Create the filter clause
                    ptFilterClause = (IPTPropertyFilterClauses)ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_CLAUSES);
                    ptFilterClause.SetOperator(PT_BOOLOPS.PT_BOOLOP_OR);
                    // Attach it to the filter itself
                    ptFilter.SetPropertyFilter(ptFilterClause);
                    // Put two statements into the clause
                    ptFilterStmt1 = (IPTPropertyFilterStatement)
                        ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
                    ptFilterStmt1.SetOperand(101);
                    ptFilterStmt1.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
                    ptFilterStmt1.SetValue(tbSearch.Text.Trim());
                    ptFilterClause.AddItem(ptFilterStmt1, ptFilterClause.GetCount());
                    ptFilterStmt2 = (IPTPropertyFilterStatement)
                        ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
                    ptFilterStmt2.SetOperand(1);
                    ptFilterStmt2.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
                    ptFilterStmt2.SetValue(tbSearch.Text.Trim());
                    ptFilterClause.AddItem(ptFilterStmt2, ptFilterClause.GetCount());
                    // Make the filter into an actual search query
                    ptSearchQuery = ptSearchRequest.CreateAdvancedQuery(ptFilter);
                    // Run the search and return results
                    ptSearchResponse = ptSearchRequest.Search(ptSearchQuery);               
                    // How many things matched the search?
                    int totalMatches = ptSearchResponse.GetTotalMatches();
                    // How many items were returned? (Not necessarily all)
                    int returnedMatches = ptSearchResponse.GetResultsReturned();
                    // create DataTable and map results to
                    // datatable fields
                    DataTable dtSearchResults = new DataTable("Documents");
                    dtSearchResults.Columns.Add("Name");
                    dtSearchResults.Columns.Add("Excerpt");
                    dtSearchResults.Columns.Add("DocSubject");
                    dtSearchResults.Columns.Add("DocTopic");
                    dtSearchResults.Columns.Add("DocType");
                    dtSearchResults.Columns.Add("DocKeywords");
                    dtSearchResults.Columns.Add("Url");
                    dtSearchResults.Columns.Add("ImageURL");
                    DataRow dr;                                                                                                          
                    // Print the name of each result
                    for (int i = 0; i < returnedMatches; i++)
                        dr = dtSearchResults.NewRow();
                        String strName = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTNAME);                  
                        String strText = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTSUMMARY);
                        String strURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_DOCUMENTURL);
                        String strImageURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTIMAGEUUID);
                        dr["Name"] = strName;
                        dr["Excerpt"] = strText;
                        dr["Url"] = strURL;
                        dr["ImageURL"] = "pt://images/plumtree/portal/public/img/sml" + strImageURL + ".gif";
                        dtSearchResults.Rows.Add(dr);
    Edited by [email protected] at 04/11/2008 7:26 PM
    Edited by [email protected] at 04/11/2008 7:27 PM

    Problem solved. I should use JsonObject instead of JSONObject :D 

Maybe you are looking for

  • Conversion problem in PURCHASE ORDER

    Hi all,    wrong conversion was done in Quantities/Weights tab of item overview during creation of Purchase Order,instead of putting order unit  " 1 tonne  = 1000kg" it was wrongly fix as "5 tonne = 4536kg",  the order has been receive and issue , bu

  • Asset sold and purchased back

    Hi Gurus, I wanted to find out how other companies handle this situation. We have an asset that was sold last year and it was purchased back this year. From what I understand from the user, is they wanted to see the history and total accumulated depr

  • Dreamweaver cs6 web image gallery

    hi to all, i need help with web and image gallery, as far as web is OK but im trying to involve a lot of pictures inside, the problem is im trying to put table inside div tag with auto resize to thumbnails, i hope it is possible o is there another so

  • Anchor WLC web-auth secure web issue

    Hi all, I am running into an issue with disabling the web-auth secure web on an 5508 anchor WLC running 7.2.110. After the WLC rebooted, the guest authentication portal didn't show up...I could see the IE tab showed Web Auth Redirect though...Changed

  • Gap of Time of R3 and PPDS planned orders

    Hello Gurus, I'm facing an issue regarding R/3 - PPDS planned orders. The customer has the cenário that R3 and APO does not synchronize planned order on-line. R3 sends the orders on line however APO send it only in a determinated  time. As a matter o