How to set SubmitButtonBean's attribute in Java

I want create
<submitButton name="Buttom's name" ctrl:event="push"/>
in Java:
SubmitButtonBean button = new SubmitButtonBean("Buttom's name");
and I need set attribute "ctrl:event". I tried this:
oracle.cabo.ui.AttributeKey event = AttributeKey.getAttributeKey("ctrl:event");
button.setAttributeValue(event,"push");
No event when I click button.
Could you help me, how I can do this? Maybe I must use javascript to run uix event, is it possible?

as an example&lt;submitButton formName="testForm" event="submitPage" text="Submit" /&gt;in the event handlers &lt;handlers&gt;
    &lt;event name="submitPage" &gt;
      &lt;method class="com.test.EventHandler" method="handleControlSubmitEvent" /&gt;
    &lt;!-- Add EventHandlers (&lt;event&gt; elements) here  --&gt;
    &lt;/event&gt;
  &lt;/handlers&gt;in the EventHandler.java u should be able to get the event name with this
public static EventResult handleControlSubmitEvent( BajaContext context,
                                                 Page page,
                                                 PageEvent event ) {
    String eventName = event.getName();
}regards,
raj.

Similar Messages

  • How to set the DFF Attribute Programmatically?

    hi
    how to set the DFF Attribute Programmatically in Process Request of CO
    thanx

    Hi
    Do u want to set the value in DFF Programmatically ?
    u can capture the VO used for DFF and set the the value in controller.
    Thanks

  • How to Set / change the attribute of Business Object

    Hi all,
    Say I have a Z Business Object -> ZBO
    Inside the BO, I have an attribute -> ZA1
    And one method -> ZM1
    Is there any way in which  i can set / update the attribute ZA1 (for any particular instance) outside the Business Object (I mean without writing any code in the program of the Business object)?
    Thanks,
    Deb

    >
    Debidutta Mohanty wrote:
    > But Inside the class -> Can be assigned or changed -> Using Method -> Correct ?
    >
    > That means, inside the Business Object aslo, we can have one method to assign or change attribute. Is there any Macro to change the attribute ?
    Yes.
    BOR attribuites are a piece of code. You can see this by hilighting an attribute and clicking on the "Program" button. That code returns the attribute value, usually something from a DB table, something calculated, or a private attribute.
    To change what the attribute returns, you need to change the underlying data. How you do it depends on what your attribute code does in first place. This is why we can't give you an exact answer. If your attribute retrieves a value from a table entry then you need to change the table entry. If it is a calculated value then you need to change the data used in the calculation to make your attribute return something else. If it returns a private attribute value then you need to update this via a method.

  • IFS/CMSDK - How to set READINDICATIONENABLED Extended Attribute to TRUE?

    iFS/CMSDK - How do I set READINDICATIONENABLED Extended Attribute to TRUE for PrimaryUserProfile?
    I have a requirement to provide a list of all users who have read a specified document. I would like like this attribute to be automatically set for every user when created. Thus, when a user has viewed a particular document a entry will be automatically place in the ODMZ_READ_INDICATION view/table.

    Please repost this question in the iFS forum, http://forums.oracle.com/forums/forum.jsp?forum=152

  • How to Set Basic compression attribute through Oracle ILM

    Hi,
    I have log a SR with Oracle with regard to this but they redirect to this forum.
    We have configured Oracle ILM in our environment. We have a requirement that after 3 years the data to be moved to a Low Cost Storage. We tested the same through Oracle ILM and it works fine for the above scenario.
    We have another requirement that after moved to Low Cost Storage Tier through Oracle ILM we also want to compress the data.
    When we set the compressed attribute through Oracle ILM it alwasy generated the script
    like the one below
    alter table test_user.range_part
    move partition year4
    tablespace part3
    compress for all operations -----------------Oracle Advanced Compression--------------
    update indexes;
    But we want some thing like below through Oracle ILM
    alter table test_user.range_part
    move partition year4
    tablespace part3
    compress -------------------Basic Compression----------------
    update indexes;
    Can you please help us how to set the Basic compression attribute through Oracle ILM.
    Thanks and Regards
    Ganesan Sivaraman

    Oracle support referred you here?
    Please post the SR number here or send it to me by email for follow-up (damorgan12c (at) gmail.com).
    Thank you.

  • How to set a extended attribute as read-only in runtime

    Hi Team,
    I would like to set a extended attribute as read-only in runtime based in a condition.
    I tried with "Criterion" in a extended model definition, but if the condition is false the content field disappear.
    Best regards

    Hi Bruno,
    About the first part of your problem : User with permission and user without permission.
    To meet your needs I would have defined a Group named "WithPermission" and associated this group to a Member (user) "A"
    While other users would not have been associated with this group.
    When an user login I would have checked what groups that are associated with. If the group "WithPermission" was found I would have allowed the current login user to write "My Example". If the current login user was not associated to group name "WithPermission". The user would not have been able to edit the field.
    I did a search in the metamodel object and I found nothing Method. Following my reading it seems that it is not possible. Read below.
    In Sybase Guide "Customizing and Extending PowerDesigner" - CHAPTER 7: Scripting PowerDesigner you can read the following :
    Manipulating the Repository By Script
    PowerDesigner lets you access the Repository feature via scripting using the RepositoryConnection as BaseObject global property.
    It allows you to retrieve the current repository connection, which is the object that manages the connection to the repository server and provides access to documents and objects stored under the repository.
    The RepositoryConnection is equivalent to the root node in the Repository browser.
    You can access the repository documents, but you cannot access the repository administration objects, like users, groups, configurations, branches, and list of locks. In addition, only the last version of a repository document is accessible using scripting.
    As described by Dirk I think the only thing you can do is to make a check on a specific username. Unfortunately it will be "hard coded" in your program. Or If you can by vb script access the repository tables. You could resolve your problem by checking Group permission associated to each users logged in..

  • How to update OID oblogintrycout attribute through java code

    Hi Team,
    As per my requirement ,i need to update OID oblogintrycout attribute through java code. could you please help me on this.
    where can i get the java code.
    Regards,
    Ravi.

    As always, Google is your friend.
    Follow the bouncing link.
    http://www.google.com/search?hl=en&q=VisualSourceSafe+%2B+Java+API
    PS.

  • How to set "Image Map" attribute to "Polygon" via javascript in Illustrator CS5

    Ok, so I have this little script I've written that I want to use to go through a bunch of paths in a document and give each path a url for use in an image map. I want each link to be a Polygon because, well, let's face it, "Rectangle" is useless 99% of the time. Obviously, the way you would do this manually would be to open the Attributes panel and set the Image Map attribute to Polygon and type a URL in the URL field. Fine. Easy enough. However, when scripting the process, it seems one can only set the URL (or the uRL [sic] as documented in the javascript reference) of the PathItem. In other words:
    pathItem.uRL = "http://someurlfor.me";
    Unfortunately, this defaults the "Image Map" attribute to "Rectangle" (which we already know is useless 99% of the time.) SO, anyone out there know how to change that attribute to "Polygon?"
    Btw, I'm on Illustrator CS5 and have been using this reference:
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scrip ting/illustrator_scripting_reference_javascript_cs5.pdf
    Thanks,
    -Matt

    We found that with the following setting, the problem is almost solved :
    theme.setQueryWindowMultiplier(1);
    theme.enableAutoWholeImage(true);
    We still have a problem : a portion of the base map appears black most of the time, on Blackberry only (Opera Mini) ... like 1/5 of the map ... the right side ... any idea ?
    Thanks,
    JP

  • How Can Get DTD elements/Attribute In java

    Dear Friends,
    I want to get DTD Element in java Like by using DOM parser we can get Elements/Attribute in XML.
    <!ELEMENT author (#PCDATA)>
    <!ATTLIST author
         id (2 | 4 | 6) #REQUIRED
    >
    <!ELEMENT book (author, page)>
    <!ATTLIST book
         id (1 | 2 | 3 | 4) #REQUIRED
         name CDATA #REQUIRED
    >
    <!ELEMENT library (book+)>
    <!ELEMENT page (#PCDATA)>
    By Example
    i wants i can get elements library -> childs are book
    book child have Attributes id and name..
    how can i get .
    pls help me
    with regards
    Siddharth singh

    Build an XML-ORM then integrate it into the DOM, then have a nice day.

  • How to set my own icon for java frame ??

    I create a java class it extends JFrame. I want to change default icon on the left_top corner and using my own icon. It is a --.gif file. How to do it. When I try to modify it using setIconImage( Image image), I met problem. I cann't new Image("--.gif"). I don't know how to create a Image object using a string(file name). I try to use ImageIcon , but it is not image obj. Thanks. Gary

    According to the documentation setIconImage does the following: Sets the image to be displayed in the minimized icon for this frame. Not all platforms support the concept of minimizing a window.
    So,
    1) It does not change the icon in the top-left corner
    2) It does not work on all platforms.

  • How to set up older version of Java JDK?

    I am a Java Developer, and I recently bought a Mac.  I also just started working for a Client who is using JDK 1.6.0_23, and this is not going to change.  The code fails to compile when running through the latest Java 1.6 JDK, so I REALLY need to download and set up JDK 1.6.0_23.  Is this possible?  If I can't get this working, I will unfortunately have to use the Windows machine that the Client gave me.
    Thanks in advance.

    I removed the old program.
    I am using this line in my autoexec.bat
    path = c:\jdk1.3.1_01\bin
    I understand that I don't need to set any classpath. If I am wrong, would this line be correct ?
    classpath = %classpath%;c:\jdk1.3.1_0\bin;c:\jdk1.3.1_01\lib\tools.jar

  • How to set a new attribute in th Servlet Context from an external app.

    Hi,
    I need to do an external application that can access to the servlet context to recover/modify some attributes. Anybody know how can I do it?.
    I've revised some mBeans thinking that they can serve me the servlet context, but I have not viewed anything related.
    Best Regards
    Antonio

    I'd say your best bet is adding another servlet and mapping to your application that presents a REST interface to this information. You could return application-scope data in a small XML document, and you could send attribute names and values with request parameters.
    It's not practical to dynamically change the actual init-params of the servlet context.

  • HOW to set the value attribute of FORM INPUT data to a variable in a JSP

    eg. Registration.jsp
    The data is accessed from an hidden field called course
    for example, if I have "Java programming" in the field course, and I use
    an expression to access the value from the hidden field.
    **My problem is that the data gets truncated to "Java" , I need "Java Programming"to display. The code looks like this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <INPUT TYPE="text" SIZE=12 NAME="course"
    VALUE=<%=getParameter("course") %>
    IS there ANY OTHER WAY to set the value of VALUE to a variable?

    Instead of value=<%=request.getParameter("course")%>
    Use double codes
    value="<%=request.getParameter("course")%>"

  • How to set path to run a Java program?

    my pc os is win2000 service pack 3.
    cpu is celoron 667mhz
    256 pc133 sdram
    i have done the setting b4 run a java program but no any effect.
    setting as below:
    set path=c:\j2sdk1.4.1_01\bin
    set classpath=c:\j2sdk1.4.1_01\lib
    my java file is store in C:\Java, file name is HelloWorld.java, so when i type:
    C:\>
    C:\>Java\javac HelloWorld.java
    (the screen show me : java\javac not internal or external........")
    and i try again as follow:
    C:>
    C:>\Java>javac HelloWorld.java
    (the screen show : Exception in thread "main" java.lang.NoClassDefFoundError:HelloWorld/java)
    i cant do anymore, who can help me?

    you need to put the CLASSPATH to dir: c:\j2sdk1.4.1_01
    and also to the directory you are working
    For example, you are working in "C:\Myclasses". You need to put:
    set CLASSPATH = C:\j2sk1.4.1_01;C:\Myclasses;
    if you don't put your working directory, java doesn't find your classes
    Try it and luck!

  • How to set up and use to Java fax machine

    How to setup and use the fax utilies on the c410a allin one smakphoto printer.

    Hello @158, 
    Welcome to the HP forums.
    I understand that you would like to know how to setup and use your Photosmart c410 for faxing.
    I would like to help.
    Setting up the fax requires the phone line to be plugged into Lin -1 on the back of the printer.
    There should be a fax setup wizard with your HP  Solutions Center.
    You can also go into the printers setup menu and setup the fax from the front panel.
    Touch the button with teh wrench icon to access the setup menu.
    From here select the Basic or Advanced fax setup menu.
    You will see your options for rings to answer and other features as you scroll through.
    Running the fax setup wizard may be the easier method.
    As for sending a fax, that can be found on page 87 of the Users guide.
    Fax 1–sided document
    a. Load original.
    Remove any staples or clips from the original document.
    Slide original with print side up into document feeder tray until the product detects the pages.
    Slide paper-width guide inward until it stops at edge of paper.
    b. Press Start Fax and wait for tone.
    c. Enter number
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

Maybe you are looking for

  • How do you use AVERAGE based on values from an IF formula?

    This is probably a very simple thing to do, but I haven't managed to find a solution yet. Someone please help! I have a spreadsheet to calculate grades for my students. I enter their raw scores, which is then calculated into a percentage (which I the

  • [SOLVED] Update broke tint2-svn

    The transparency on my tint2-svn icons has been broken with a recent update. Here are the packages that were updated before the breakage: 2015-04-10 11:55 adwaita-icon-theme 2015-04-10 11:55 atk 2015-04-10 11:55 at-spi2-atk 2015-04-10 11:55 at-spi2-c

  • Resultant window size in 9i forms/reports?

    I am calling a report from Form; I need to setup the report resultant browser window size and appearing coordinates (like we setup stacked canvas height/width & XY co-ordinates). How and where can I customize these coordinates? Please advise. Thank y

  • Delete an Entry, Selected in a WebDynpro Table

    Hello Everybody, i'm doing my first exercises programming in WebDynpro Abap and stuck at the following point: I implemented a database-table containing customer data, created a function module which returns all entries, and a webdynpro view which dis

  • Solaris Virtual File System

    Have Solaris virtual file system been changed since Solaris 2.5.1? How much?