Cannot customizing control hints

I downloaded the ToyStore sample code and tried changing the control hints but none of my changes take effect. For example, to try to change the field labels on the "Register New User" screen, I tried changing the control hints in the Account entity object and the nothing changes ... then I change the control hints in the Accounts view object and still none of my changes take effect. I re-compiled the Toystore model project AND restarted the embedded OC4J server but to no avail -- the original field labels values are still displayed. Furthermore, the values that are in the Account's message resource bundle class are different than what you see in the control hints GUI dialog --- as a matter of fact, the control hints GUI dialog for the Account EO and Accounts VO show nothing yet the message resource bundle class shows values. Am I looking at this incorrectly?

Yup -- I do see my changes in the BC4J tester locally. I'm assuming you mean through testing it through the "Test" feature of the Application Module object.
Please try changing a View Object's control hints in the Toy Store sample app and see if the changes stick in the JSP. I have to be doing something wrong if I'm not seeing the changes stick.

Similar Messages

  • Custom Control Hints

    Is there any way to have my own Control Hint?
    For example:
    - resource bundle of entity control hints contains
    {"DayType_ENUMERATEVALUES", "P,S,N"},
    {"DayType_ENUMERATELABELS", "work,saturday,sunday"}
    And then I can use:
    aDef.getUIHelper().getHintValues(localeContext, "ENUMERATEVALUES");
    aDef.getUIHelper().getHintValues(localeContext, "ENUMERATELABELS");
    I tried this, but it doesn't work.
    Some other way to do it...?
    (The best solution can be using standard message bundles of entity object....)
    Thank you very much for any comment

    I'm unable to reproduce this behavior in Jdev 903
    Here's what I tried:
    - I create a custom hint say "Label" from the wizard on a Name attribute in an entity object.
    - I save the resource bundle file (actually all the files)
    - Then I edit the resource bundle file for the entity and add my custom messages following the pattern in the file.
    - Then I edit the entity/entity attribute, add more labels etc.
    My custom messages were preserved. Their position in the messages array was moved to the top of the 'array'.
    The other question - why attribute wizard is for root resource bundle only?
    I do not understand this question? Could you elaborate/restate?

  • Problem of Customizing Control Hints

    I am now working with BC4J+Uixml to demonstrate a Web .And I want to use Control hints in Object Entities for the Object Veiws which depend on them.But I dont think i can work after trying it sometimes . But i got that this problem is fixed but the fix ist not for 903,Just want to know how long we should wait until this problem is soluted or Maybe I can have another way ,thanks .

    Hi Trevi, I have tried it again . And it seems not better.Here is my code --a table and a Choice based on the same Countries EO. the table can be displayed properly but  Nothing is post to the Choice.
    <bc4j:viewObjectScope name="Countries">
    <contents>
    <bc4j:table name="CountryTable">
    <contents>
    <bc4j:column attrName="CountryId" >
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:textInput readOnly="true"/>
    </contents>
    </bc4j:column>
    <bc4j:column attrName="CountryName">
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:dateField readOnly="true"/>
    </contents>
    </bc4j:column>
    </contents>
    </bc4j:table>
                                                                     <bc4j:messageChoice nodeID="CountryName" attrName="CountryName" >
                                                                     </bc4j:messageChoice>
    </contents>
    </bc4j:viewObjectScope>
    Where ist the problem now?
    Thanks
    Yong

  • Where to put my customized formatting that Control Hints does not provide?

    To whom that know or have experience with it:
    The control hints does not provide solutions for all possible formatting needs. For example, I need to display only last four digits of social security numbers (i.e., for "123-45-6789", display "***-**-6789"). Another data table column stores school semesters as YYYYMM, e.g., 200902, where 2009 is the year and 02 is the month that represents Spring (MM can also be 06 and 09 that represent Summer and Fall). I need to display the semester in a more user-friendly way (i.e., for "200902", display "Spring 2009"). Of course, I can not change data format in the table; I only seek to format the display of the data.
    I would think that it takes only a few lines of java code to do these formatting by splitting the string into sub-strings, replace some of them with appropriate new values, then re-assemble them. But where to put such code? Does any documentation cover this topic?
    Newman

    Shay,
    I read the document, tried it, and it worked out nicely.
    There is not the getAttributeName() method in the ViewObjectImpl class in version 10.1.3.4, which is the version I am using. But the EO class has it and it works out all the same.
    I don't know how long it would otherwise take me to read and fumble to find out where to put the custom formatting code. Your experience and familiarity with the technology really saved me a huge amount of time. Thank you so much for your help!
    Newman

  • Scene Builder: cannot edit when I embed a custom control!

    Hi guys, I'm having an issue with Scene Builder and embedded custom controls...
    I have a LoginPanel .fxml/.java module, which contains two re-usable custom controls I've built:
    * StatusZone .fxml/.java
    * LanguageSelector .fxml/.java
    The application runs.
    However, I can't open LoginPanel.fxml to edit it with SceneBuilder v1.1 (developer preview).
    To be specific, in LoginPanel.fxml, I have this data:
    <StatusZone fx:id="statusZone" />
    <LanguageSelector fx:id="languageSelector" />
    SCENARIO 1
    -- LoginPanel.fxml --
    <?import kalungcasev2.view.StatusZone?>
    <?import kalungcasev2.view.LanguageSelector?>
    I get:
    Warning: File 'LoginPanel.fxml' contains references to types that could not be loaded.
    Missing types are [kalungcasev2.view.StatusZone]
    I can click 'Set up classpath', but no matter which folder I choose, it doesn't seem to fix the problem.
    SCENARIO 2:
    -- LoginPanel.fxml --
    <?import kalungcasev2.view.*?>
    I get:
    Warning: File 'LoginPanel.fxml' contains references to types that could not be loaded.
    Missing types are: [StatusZone, LanguageSelector]
    I can click 'Set up classpath', but no matter which folder I choose, it doesn't seem to fix the problem.
    How do I fix this?

    Hi,
    If no ClassLoader is configured in the FXMLLoader, then the FXMLLoader will try to load the
    classes using the System/Context class loader.
    This works well in the context of an application where everything is in the system class loader.
    In SceneBuilder however - your classes will not be in the System class loader, but in a special
    URL class loader that SceneBuilder created for your FXML file.
    SceneBuilder sets this ClassLoader on the FXMLLoader that loads your top FXML file,
    but it can't do anything for the instances of FXMLLoader that your own code creates.
    Therefore - it's best to configure your FXMLLoader with the appropriate class loader,
    which is usually the class loader that loaded your custom type.
    See https://javafx-jira.kenai.com/browse/DTL-5177 for more details.
    -- daniel
    Edited by: daniel on Apr 25, 2013 7:33 AM
    Sorry - to be more precise:
    loader.setClassLoader(this.getClass().getClassLoader());
    is the correct line.

  • Cannot create custom controls

    I have the following .ctl file and I am having problems creating a custom control out of it. It is a push button and LED tied together with a frame around it. How can I create this as one control that I can use in my other .vi's?
    Thanks

    Okay, I went ahead and did it.
    I did as I described below and here is the result:
    Attachments:
    indicator_button.ctl ‏6 KB

  • How to create a custom control of a button where the look will be applied to all others but not the Boolean text?

    Hi all
    I would like to create a customized button as a master so that if I change the look of the master all other buttons will change too.
    I have done this with a custom control as a "strict type def" otherwise the look will not change BUT If I do this as a strict type def I cannot change the Boolean text anymore which should be different on every button.
    How can I create a master control of a button where the look will be applied to all others but not the Boolean text?
    Stay Hungry, Stay Foolish
    Solved!
    Go to Solution.

    Steve Chandler wrote:
    I don't think you can do that. I just looked and as I suspected the Boolean text property is read only for strict typedefs so you cannot use property nodes to change the text.
    As a workaround just make it a typedef. When you want to change the look open the typedef and make it strict, make your changes, then make it non strict again. You will have to update the Boolean text again for all instances. Kind of a pain. Maybe this is something for the idea exchange.
    Kudos for being sneaky.
    I like these creative work-arounds!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Problem with control hints and date formatting

    Hi,
    I have a Date attribute with a control hint 'dd.MM.yyyy' in my EO. When the user browse through the data all date values have 4 digits. But when a lazy user changes a date value to e.g. 12.12.04, the new value is stored as 12.12.0004. This is correct Java behavior.
    When I change my control hint to 'dd.MM.yy', the lazy user can enter 12.12.04, which is stored as 12.12.2004. Great, but the user want to see a 4-digit year.
    My problem is that the customer wants to enter only 2 digits for the year but the application must render the date with 4 digits.
    How can I configure ADF to solve my problem?
    Does Domains help? Is there a general switch in Java or ADF witch converts 12.12.04 to 12.12.2004?
    Any hints are welcome.
    Thanks,
    Markus

    For your 2nd problem, you can create a field of type string (create a data type which has domain STRING), which has unlimited lenght. However, you can only have 3 of these fields in your table.
    I think this will solve the # problem too.
    Regards,
    Valter Oliveira.

  • How do I find the EventID of an event in a custom control?

    Hi all,
    I have a custom control created in VB .NET that I have embedded into a SAP screen using a wrapper class as described in Thomas Jungs example: <a href="/people/thomas.jung3/blog/2004/09/01/using-net-windows-controls-in-the-abap-control-framework .Net Windows Controls in the ABAP Control Framework</a>
    My problem is that I cannot get the wrapper class to react to any events raised by the custom control!
    I do not know how to find what the EventID is of an event so that I can register it in the class - do you know how to find this EventID? Or even if this is the problem?
    Tx.
    N

    Is there any way to find the image dpi in a free or low cost program?

  • How to use the custom control ?

    Hi Friends,
    plz help to use of  custom control in screen painter ?
    and how to use the custom control ?
    Thanking you.
    Regards,
    Subash.

    HI,
    Screen Elements
    A screen can contain a wide variety of elements, either for displaying field contents, or for allowing the user to interact with the program (for example, filling out input fields or choosing pushbutton functions). You use the Screen Painter to arrange elements on the screen.
    You can use the following elements:
    ·        Text fields
    Display elements, which cannot be changed either by the user or by the ABAP program.
    ·        Input/output fields and templates
    Used to display data from the ABAP program or for entering data on the screen. Linked to screen fields.
    ·        Dropdown list boxes
    Special input/output fields that allow users to choose one entry from a fixed list of possible entries.
    ·        Checkbox elements
    Special input/output fields that the user can either select (value ‘X’) or deselect (value SPACE). Checkbox elements can be linked with function codes.
    ·        Radio button elements
    Special input/output fields that are combined into groups. Within a radio button group, only a single button can be selected at any one time. When the user selects one button, all of the others are automatically deselected. Radio button elements can be linked with function codes.
    ·        Pushbuttons
    Elements on the screen that trigger the PAI event of the screen flow logic when chosen by the user. There is a function code attached to each pushbutton, which is passed to the ABAP program when it is chosen.
    ·        Frame
    Pure display elements that group together elements on the screen, such as radio button groups.
    ·        Subscreens
    Area on the screen in which you can place another screen.
    ·        Table controls
    Tabular input/output fields.
    ·        Tabstrip controls
    Areas on the screen in which you can switch between various pages.
    ·        Custom Controls
    Areas on the screen in which you can display controls. Controls are software components of the presentation server.
    ·        Status icons
    Display elements, indicating the status of the application program.
    ·        OK field
    Every screen has a twenty-character OK_CODE field (also known as the function code field) that is not displayed directly on the screen. User actions that trigger the PAI event also place the corresponding function code into this field, from where it is passed to the ABAP program. You can also use the command field in the standard toolbar to enter the OK field. To be able to use the OK field, you need to assign a name to it.
    All screen elements have a set of attributes, some of which are set automatically, others of which have to be specified in the Screen Painter. They determine things such as the layout of the screen elements on the screen. You can set the attributes of screen elements in the Screen Painter - either for a single element, or using the element list, which lists all of the elements belonging to the current screen. Some of the attributes that you set statically in the Screen Painter can be overwritten dynamically in the ABAP program.
    with regards,
    sowjanyagosala

  • How can I find the coordinates of individual controls inside a custom control?

    I have a custom control that contains 44 smaller custom controls.
    I can get the coordinates of the 44 embedded custom controls by getting the controls[] property of the main control, but I cannot find a way of getting the coordinates of the controls inside each of these smaller custom controls.
    Is there a way of getting at the coordinates of custom controls that are nested several layers deep?
    Erik.

    For future reference and for any LabVIEW users who have older versions here are the Front Panel displays before running the VI along with the Wiring Diagram with each of the four cases for handling the various types of ClassIDs that can contain child controls.  X1, X@, Y1, and Y2 are the coordinates of the top left and bottom right corners of each control.  These coordinates can then  be used to determine which control the mouse is pointing at.
    In my own project I did further evaluation to eliminate all parent controls (controls that contain other controls) and passed along only the controls that were end-nodes (controls that contain no other controls). Also, the control's refnum was stored for later use.
    The bottom picture shows the data gathered during the execution of this VI.
    Thanks again, Mike!

  • LabVIEW and custom controls

    Hi all,
    I'm an italian PhD student working with Polytechnic of Bari.
    I'd like to submit to this forum a question about LabVIEW and custom controls in form of ActiveX components.
    Some introductory word about my problem will be helpful: in the past few months here at Polytechnic of Bari my colleagues and I developed some useful ActiveX controls with custom functionalities to use in LabVIEW.
    For example we developed a "contraves", an
    "endless knob" and a useful counter with a scale very similar to that of standard gazometers or energy counters.
    However we are experimenting some difficulties with the integration of these controls in LabVIEW; the controls are correctly imported in our VIs with using the ActiveX Container but...
    in the block diagram they appear as ActiveX references and we must use property nodes to access even their most useful property (value).
    Please, do someone of you know if (and eventually how) is it possible to integrate more deeply the controls in the LabVIEW environment?
    Do someone of you know if it exist an hypothetical "Custom Controls SDK" for LabVIEW more advanced of that integrated in LabVIEW 6.0?
    Any hint would be appreciated.

    > Please can you specify in more detail how I can obtain the ActiveX
    > refnum input automatically wired to a constant (I have observed this
    > behaviour with the 3D-Graph control as you suggested). I haven't found
    > any reference in the LabVIEW on-line help about the topic "merge-VI".
    >
    The first step is to build a VI that contains the panel and diagram
    elements that you want to drop all at once. In your case, drop the
    ActiveX control at a good size, and on the diagram, you can wire it to
    helper VIs, property nodes, etc. The VI's icon and name are important
    as that is what will show up in the palette menu representing your
    control. The connector pane isn't used.
    With the VI constructed, you want to add it to the palette menu. In the
    Tools menu, Advanced, there is an item about half way down for
    Customizing the Palette menu. You will need to build a New Palette Set
    using the ring and name it whatever you like. You can now add your VI
    wherever you like. Most likely you will want to right click to add a
    new subMenu in the Controls palette and place it in a new .mnu file. In
    the subMenu, right click to add Control. The file dialog will open
    allowing you to select a control file to add to the palette. By
    changing the filter from .ctl to all, you can insert VIs into the
    controls palette.
    All VIs inserted into the Control palette will act as merge VIs, meaning
    that when dragged to a panel, the panel elements will be merged into the
    destination panel, and the diagram elements will be merged into the
    destination diagram.
    For others that want to have these on the Functions palette rather than
    the Controls, you add the VI to the Functions palette, then popup on the
    palette item and check the menu item to make it a Merge VI.
    When it comes time to distribute, you will want to give out your .mnu
    file and the VI of course. Easiest is to place both of them in
    user.lib. If you want the items to go at the top level of the palettes,
    then you can add them to add-ons inside of vi.lib, but this causes more
    upgrade challenges.
    Hope that helps.
    Greg McKaskle

  • Cannot open Control file, /dropbox/P919920/cstmr.ctl

    Hi,
    I have created folder P919920 under dropbox in FTP server. When I try importing it , it has been throwing  error as cannot open the file.
    Can someone acknowledge if it has to do something with the file permissions granted. I am on hanasvr 04.
    Error is : SAP DBTech JDBC: [2]: general error: Cannot open Control file, /dropbox/P919920/cstmr.ctl
    Import statement:  IMPORT FROM '/dropbox/P919920/cstmr.ctl'
    Code in ctl file:
    import data
    into table P919920."CUSTOMER"
    from 'CSTMER.csv'
    record delimited by '\n'
    fields delimited by ','
    optionally enclosed by '"'
    error log 'Text_Tables.err'
    Regards,
    Kumud

    Hi Kumud,
    The top level folder is called dropbox, and you have your P919920 in a subfolder also called dropbox.  So the path to your ctl file is /dropbox/dropbox/P919920/cstmr.ctl
    Your file permissions appear to be correct.
    Please try again with IMPORT FROM '/dropbox/dropbox/P919920/cstmr.ctl'
    Cheers,
    Jody

  • Veristand Custom Controls

    I am just starting to use the Veristand evaluation copy to see if it can do what I need it to do.  It seems very customizable, and I was trying to create custom workspace controls through Labview.  I would like to get things like radio buttons, lists and drop down menus into the workspace to control my model.  I tried simply taking one of the numeric controls and replacing it with one of the previously mentioned controls, but it gave me an error saying that they were unsupported.  It seems like I would be able to do this using the Free Label Template, but I'm not quite sure how to do that.  I was able to find a custom indicator example (the min/max one), but was unable to find anything involving custom controls.  Are there any examples or tutorials I could look at?  How would I go about making some of those Labview controls into things I could use in the Veristand Workspace?
    -Eric
    Solved!
    Go to Solution.

    Hi erric, I have some answers for your issue.
    1. I attached a zip file that contains your control renamed and build a project in it. You should be able to unzip it, check the build specificiation and make sure the output destination is the C:\Documents and Settings\All Users\Documents\National Instruments\VeriStand\Display Templates. Trigger a build on this and you should get EricHettlerSample - Radio.vi and EricHettlerSampleControlSupport.llb in there. Once you have this run a workspace you will be able to drop the EricHettlerSample - Radio control from the control list.
    2. For the explanation. I think when you do a save as on the min-max example you download from the web LabVIEW cross link the vis that is in the llb with the one in the vi.lib. So doing a save as will not work. What will work is that you create a project and setup a source distribution to build the custom control. These are the steps I take based on your attached file:
    Rename in windows explorer the attached numeric indicator - radio.vi to EricHettlerSample - radio.vi
    Open LabVIEW convert the .llb you attached to a directory.
    Create a new project file.
    Open EricHettlerSample - radio.vi under my computer, when LabVIEW prompts me for some VI i look for them in the converted llb directory. Note that LabVIEW will find most of the files under vi.lib since these are the files that NI VeriStand install to labview directory.
    Once I added the some of the vis, I mass compile the project.
    Create a source distribution. Add the EricHettlerSample - radio.vi. Go to source file setting make the main vi go to the template folder and everything else go to a llb folder.
    Trigger the build, LabVIEW will do a better job creating an isolated component that is correctly linked.
    As a rule you always want to create a project to build a custom control, since Save As will not always worked with the LabVIEW VI linkage in NI VeriStand.
    To create a completely base custom control project what you do is:
    Copy C:\Documents and Settings\All Users\Documents\National Instruments\VeriStand\Display Templates\Decoration - Free Label.vi in windows explorer to a directory of your choice.
    Do a rename on the VI in window explorer.
    Open LabVIEW create new project add the renamed VI under my computer. This will create a blank project for customizing custom controls.
    I hope this helps, let me know if it still does not work for you.
    Also if you still bothered by the error messages that shows up you might want to clean up C:\Documents and Settings\All Users\Documents\National Instruments\VeriStand\Screens directory since this directory is where NI VeriStand caches all the controls you drop in the workspace. So if you have a control that cannot be loaded delete all vis in this directory should remove the bad vis.
    Attachments:
    EricHettler.zip ‏75 KB

  • How do you Create a Custom Control

    Is it possible to create a custom control under LabWindows ?
    I want to creat a control that represents a mobile phone.
    It will be a rectangle with about 4 lines of text displayed in it witch needs to be programmatically entered and the back ground colour needs to be able to be change to represent different states also programmatically.

    I don't know if it's possible to create custom controls under CVI. I can suggest you some hint to help solve your problem.
    As for the second part of your question, you could use a picture ring with different pictures (with different background color) associated with the different states in your program. When program state changes you will only have to SetCtrlVal (panel, control, state) to have the picture ring display the desired colour. I guess this is a simple indicator, so you can put Control mode to indicator and hide inc/dec arrow in order to exclude operator's managing of the control.
    As a workaround about the four line of text to be displayed, what about putting on top of the picture ring a simple text box or text message with transparent backgroud col
    our and frame colour? At the cost of managing two different controls, the matter should work...
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

Maybe you are looking for