How to insert a button in a form in a j2me application ?
Dear Friends,
I'm new to J2ME. I want to know that how to insert a button in a J2ME form. What are the button action listener available here ? Please provide sample code.
Form form = new Form("Form Title");
StringItem button = new StringItem("", "Button text", Item.BUTTON);
Command buttonCommand = new Command("Button command", Command.ITEM, 1);
button.setDefaultCommand(buttonCommand);
button.setItemCommandListener(new ItemCommandListener() {
public void commandAction(Command c, Item item) {
System.out.println("Button was clicked");
form.append(button);
Similar Messages
-
Is it possible to create a single texbox? and how to delete a button on a form? please asap, badly needed it right now. thx -regards gustavo
Hello Gustavo,
You can create a single textbox using the textbox option here (This is for you to enter text - not for the visitor): http://jingsite.businesscatalyst.com/jing/2013-09-30_2212.png
If you want to create a textbox for the visitors to enter text, then you need to enter a form, and you can delete the "message" field from the "simple contact" form, but not the name and the email fields (those are mandatory and can't be deleted).
You may want to check external forms in case you want to have the form rather customized, to check if you can have forms with single textbox. An example would be "Jotform".
Hope this helps.
Cheers
Parikshit -
How to insert a button on the column header of a table in webdynpro java
Hi
Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
regards
sunitHi sunit,
Instead of adding button in the column header , in the column
add a fixed top cell.
right click on the column
Insert FixedTopCell
Right click on the fixedTopCell
insert Editor.
select button.
then button will be only in the top most row.
Hope it will satisfy ur requirement
Regards
Smitha -
Insert Print button on Infopath form for particular view
Hello,
I want to insert "Print" button on my InfoPath form, by clicking on it which can give print preview with print option.
I am publishing my form through SharePoint Server into one form library.
So unable to edit using site actions > Edit page.
Could you please guide me how to it in simple way....not with customization.
Thanking you in advance.
Regards,
JayashriHi Jayashri,
I may not make myself clear. If we can get friendly print view of form, then we can use IE browser print option to print the form: IE gear settings > Print.
If you need to seperate print button on form, you could edit form web parts > edit page then insert content editor web part with:
<input onclick="window.print();" type="button" value="Print"/>
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to insert radio button in application?
Hi tecs,
I want to insert the radio buttons in my form. But when i am writing
<h:selectOneRadio id="fileBackup" <f:selectItem itemValue="1" itemLabel="Installation"/>
<f:selectItem itemValue="2" itemLabel="Folder/File" />
<f:selectItem value="#{backup.fileBackup}" />
</h:selectOneRadio>
i m getting error-
javax.servlet.ServletException: javax.servlet.jsp.JspException: "{2}" Conversion Error setting value ''{0}'' for ''{1}''.
plz tell me how to solve this ? it wud b really nice if some one can tell me the coding of jsp & corresponding bean.
Thnx in advance.<h:selectOneRadio id="fileBackup" value="#{pc_formname.varname}"><f:selectItem itemValue="1" itemLabel="Installation"/>
<f:selectItem itemValue="2" itemLabel="Folder/File" />
<f:selectItem itemvalue="#{backup.fileBackup}" itemLabel="Folder/Filetemp" />
</h:selectOneRadio>
-- value binding expression should be of same type as itemvalue-- raju -
How to disable delete button in a form
HI
can anyone show me the procedure to disable the delete button from oracle forms seeded and custom form oracle applications 11i. We are on form patch set level 18
RegardsHi ,
there are various ways of doing it..
You can try as the previous post says or also you can try When new block instance trigger and disable the item
using set_item_property , it all depends on when and how you want to diable that item. -
How to insert vietnameese text in a form
Hi all,
How to insert Vietnamese text in a smartform since it is not supported by SAP.You can insert using standard text So10 call the standard text in your form where every it is required.
Download text/language converter using google search. Convert text to your desired language and place it in SO10.
close the thread once your question is answered.
Regards,
SaiRam -
How to insert special character from Oracle form builder 10g
Dear all,
I need help. how to insert special character like 'Superscript or Subscript ' from oracle form builder 10g. I had try in Oracle form builder 6i with press ALT+ASCII code in the text item and it work, but in the oracle form builder 10g this method doesn't work... would you like to help me...somebody please...
Best Regard,
Dedy P.T.What do you mean by insert ... from Forms Builder? Do you mean you want to add it as text in a string of pl/sql code or as part of boiler plate text (label) or a value on the Property Palette?
For special characters you would need set NLS_LANG to something that would support the characters you want to use. For the Builder to see the change, you would need to set NLS_LANG to something like:
NLS_LANG=AMERICAN_AMERICA.UTF8
This can be done in the Windows Registry or system. As I mentioned, this will only apply to the Builder and will have nothing to do with a running form. For running forms you would need to set this in default.env. As for things like super and sub scripts, these are font formats and not necessarily characters. For the most part, I don't believe these are supported in Forms. -
How to make picture button in oracle forms?
can any one tell me how to make a picture button in oracle form builder?
please help?Hi,
Only a icon can be pasted on the push button. We can not user jpg,,jpeg or gif for the picture only ico file can be used.
go to properyt pallet,
make iconic as yes
give the path in icon filename --- C:\Program Files\Winamp\eMusic\eMusicClient
where eMusicClient is -- icon file name without extension, dont use " " in path
bye -
How to hide 'SAVE' button in adobe form layout
Hi Friends,
I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
Thanks and Regards,
Subeesh KannottilHi Subeesh,
Are you talking about restricting the User from Saving the Adobe Form Output.
Regards,
Sivanand Ala -
How to Disable Save Button in interactive form via sfp
Dear,experts
My requirement is that Disable Save Button in interactive form via sfp .Is there any options to do this or write Javascript/Formcalc.Please help!
Thanks
Vince.I found a adobe documentation that says that If you want to disable some toolbar buttons, you will have to use application-level Javascript. Looks like it is not possible from ADLC
Place the following Javascript code inside a .js file in
%ProgramFiles%\Adobe\Reader 9.0\Reader\JavaScripts to disable the toolbar buttons:
// [File - Create Adobe PDF Using Acrobat.com], plus toolbar button
app.hideMenuItem("WebServices:CreatePDF");
app.hideToolbarButton("Weblink:CreatePDF");
// [File - Collaborate], plus toolbar button
app.hideMenuItem("Annots:FileCollaboration");
app.hideToolbarButton("Annots:CollabToolButton");
app.hideToolbarButton("CommentTask");
app.hideToolbarButton("SigTaskButton");
app.hideToolbarButton("SaveFileAs");
app.hideToolbarButton("Save");
Regards
Sandy -
How to disabling a button in the form?
Hi All,
Based on our requirement we need disabling a button in a form depends on the value of another item in same form itself. I was searched through forum but i didn't get the suitable answer for this. Please help me if anybody know the solution.
Thanks in Advance...
Regards,
NeelHi Neel,
You could set the conditional display of the button based on a Plsql function returning a boolean.
Something along the lines of:
IF :P1_ITEM = 'Some Value' THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
This will not display the button at all unless the P1_ITEM is equal to the value that you want.
This is the simplest form that will get you going. If you want to "grey out" the button to leave it visible but disabled then you would need to investigate this a little further. I have seen some other threads that would probably help you out here but am no exert on javascript so just have a poke around.
Hope this helps,
Mike C -
How to send sms from gsm modem(AT commands) to j2me application(not inbox)
hi
i want to send sms from gsm modem to a j2me application, for this to happen i have to send sms to a specific port in which j2me application is running.when i m trying to send sms from modem it doesnt go to application it goes to inbox.
is it related to udh settings if yes then how do i set port no in settings?if no what are the other ways.Hi Vignesh,
Might be you can call ActiveX or DLL objects of the software installed for modem from LabVIEW, if it is unblocked.
Have a look on the link > http://zone.ni.com/devzone/cda/tut/p/id/2983
CLA 2014
CCVID 2014 -
Hi! I'm doing a cv template for my company so that Human Resourses can send to candidates. I made the form and I have a page for the "professional experience" area. This page is enough for a recent graduated student but not for a senior candidate (that has more experience). Can I insert a "ADD" button on this page where it creates a reset copy of the "professional experience" page where the candidate could add more professional experience? Thanks
Yes, by using JavaScript to create a new page by spawning a template page. The downside is that is will only work with Reader 11 (and Acrobat) and not previous versions of Reader. It also won't work if you need to Reader-enable the document so that pre-11 versions of Reader can save the filled-in form. If these limitations are not a problem and you need more help, post again.
-
How to create browse button in Oracle Form Builder?
Hello all
I'm learning Oracle Form Builder and i want to create browse button but i don' know how i do
I hope u will help me!
Thanks all<p>Configure and use the Webutil library functions. See the Webutil link from the OTN Forms home page</p>
Francois
Maybe you are looking for
-
PHDs on multiple computers, NHDs on others
I'd like to set up a system in which each user has one (or perhaps more than one, if possible) computer on which they use a portable home directory, but I'd like to allow them to log in from other people's main machines using their network directory.
-
How can I make a while loop wait 10 seconds before iterations​?
I am using labview to for an osmosis system that measures the amout of water lost from the reading on a scale. I currently have the program displaying the data from 3 scales every second. I also need to calculate the flux through the membrane over
-
My IPHONE 4S Rings well as phone. However, I could not hear the sound from vedio or from ITUNES. Even the keyboard sounds are not clicking. The vonage and magic jack rings one and sometimes vibrate only.. what should I do to solve this probelm??
-
How to reverse and reset documents cleared by FB1S
Hi all, This is the scenario am into: Payment program cleared an open item doc say 19xxx for the vendor and created a clearing document 20xxx and check ABCD was send to vendor. Later found check was to be voided and the document reversed. Instead of
-
Adding audio suddenly creating video gap
I'm working on a slide show and it was going really well until today. The video is finished, with transitions, effects, etc., and I've been adding audio over the past couple of days. Today, I added a couple of songs and they did fine, then I added an