How to invoke the softKeyboard for a TLF textfield in AS3?
Hi,
I need to use a TLF textfield in a Flash mobile app.
How to invoke the softKeyboard on mobile devices for such a TLF textfield? I tried it the way below, but it's not showing up:
import flash.ui.Keyboard;
import flash.events.KeyboardEvent;
import flash.events.SoftKeyboardEvent;
chat.needsSoftKeyboard = true
chat.requestSoftKeyboard()
(I can't use a "classic textfield" for a couple of reasons)
Any tips welcome
If you had something like this :
<FORM name="checkform">
<input type="text" name="myText" size="5">
<select size="1" name="select" onChange="check()">
<option value="1">Number1
<option value="2" selected>Number2
</select>
</FORM>Your javascript funtion would look like this :
<script language="JavaScript">
function check() {
if (this.checkform.select.options[this.checkform.select.selectedIndex].value == "1") {
this.checkform.myText.size = "20"
} else {
this.checkform.myText.size = "5"
</script>Note the names of the form (checkform) and the input field (myText).
Similar Messages
-
How to invoke the method for af:cmdtoorbarbtn having af:showpopbehavior
Hi,
Please help me to invoke the method on click the <af:commandToolbarButton> which having <af:showPopBehavior> as child tag.
Here the code snippet:-
<af:commandToolbarButton icon="/icons/field_group_plus_ena.png"
hoverIcon="/icons/field_group_plus_ovr.png"
depressedIcon="/icons/field_group_plus_dwn.png"
disabledIcon="/icons/field_group_plus_dis.png"
shortDesc="#{bundle.ADD_TAG}"
useWindow="true">
<af:showPopupBehavior popupId="popupDialogForEditTagConf"/>
</af:commandToolbarButton>
<af:popup id="popupDialogForEditTagConf">
<af:dialog title="#{bundle.SELECT_TAG}"
dialogListener="#{TagHelper.selectTagDialogCB}">
<f:facet name="buttonBar"/>
<af:panelCollection featuresOff="detach">
<f:facet name="menus"/>
<f:facet name="toolbar"/>
<f:facet name="statusbar"/>
<af:treeTable value="#{bindings.tagTree.treeModel}"
var="it" disableColumnReordering="true"
rowSelection="single" rowBandingInterval="1"
columnStretching="false" id="TagTree"
binding="#{TagHelper.tagTree}">
<f:facet name="nodeStamp">
<af:column sortable="false"
headerText="#{bundle.TAG_NAME}"
width="250">
<af:outputText value="#{it.name}"/>
</af:column>
</f:facet>
<af:column sortable="false" width="250px"
headerText="#{bundle.DESCRIPTION}">
<af:outputText value="#{it.description}"/>
</af:column>
</af:treeTable>
</af:panelCollection>
</af:dialog>Hi,
you cannot invoke the showPopupBehavior component action programatically. Instead, to programatically launch a popup, you use client side JavaScript as explained in the WebDeveloper guide http://download.oracle.com/docs/cd/E12839_01/index.htm . Note that the JavaScript can be launched from a managed bean
Frank -
How to invoke the FTP rename operation?
Does anybody know whether it is possible and how to invoke the 'rename' operation from the FTP Adapter (using ESB)?
Thanks in advance,
Jeroen van SchaijkHi,
Please use the below code for your Web Service Call
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cus="urn:crmondemand/ws/odesabs/customrecordtype/" xmlns:data="urn:/crmondemand/xml/customrecordtype/data">
<SOAP-ENV:Header>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext">
<wsse:UsernameToken>
<wsse:Username> USERNAME </wsse:Username>
<wsse:Password> PASSWORD </wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<cus:CustomRecordTypeUpsert_Input>
<data:CustomRecordType>
<!--You may enter the following 6 items in any order-->
<data:Name>myname</data:Name>
<!--Optional:-->
<data:SingularName>myname</data:SingularName>
<!--Optional:-->
<data:PluralName>myname</data:PluralName>
<!--Optional:-->
<data:ShortName>myname</data:ShortName>
<!--Optional:-->
<data:IconName>myname</data:IconName>
<data:ListOfCustomRecordTypeTranslations>
<!--1 or more repetitions:-->
<data:CustomRecordTypeTranslation>
<!--You may enter the following 4 items in any order-->
<data:LanguageCode>?</data:LanguageCode>
<data:SingularName>?</data:SingularName>
<data:PluralName>?</data:PluralName>
<data:ShortName>?</data:ShortName>
</data:CustomRecordTypeTranslation>
</data:ListOfCustomRecordTypeTranslations>
</data:CustomRecordType>
</cus:CustomRecordTypeUpsert_Input>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Hope that helps!
Thanks & Regards
Sablok Kumar -
When a context node use non-singleton, how to invoke the supply funtion eve
when a context node use non-singleton, how to invoke the supply funtion everytime the lead selection is changed ?
Hi wei,
<b>Non-singleton nodes:</b>
Web Dynpro allows you to define non-singleton nodes. Each non-singleton node has one node instance for each node element of the parent collection at runtime. The advantage is that each instance can be accessed directly. When using non-singleton nodes, the nodes are only created when the node values are retrieved. This can save resources that otherwise would slow down the performance of the application.
<b>Supply function:</b>
The Web Dynpro tools also automatically enhance the corresponding controller class with a supply function including the user coding area contained in it
Supply functions are implemented as methods of type
<b>public void supplyChildNodeElements(SomeChildNode node,
SomeParentNodeElement)</b>
in a Web Dynpro controller (view controller or custom controller). Supply functions and context nodes have a 1..1 relationship, that is, supply functions are specific for individual context nodes. Under certain conditions, supply functions are called by pages in the Web Dynpro runtime environment.
Hope this helps u,
Regards,
Nagarajan. -
How to invoke the app by touching the screen (without using the home button)
Kindly provide the solutions for the following issues
1. How to invoke the app by touching the screen (without using the home button)
2. Estimated lifespan running an iPad3 continuously 24x7
awaiting for your valuable response.
Thanks and regards,
Sathya.1. You can only invoke an app by touching its icon.
2. All depends on what your app does. -
How to invoke the Cash Drawer to be open by java code.
hi friends,
how to invoke the Cash Drawer and display pole to be open by java code.
pls help me out.hello,
you need to dig out that in the cash drawer APIs there must be some method responsible for opening the cash drawer
that will supply the operational voltage signal internally to the cash drawer.
your task is to use the API os the cash drawer and supply the arguments in.
and will you please tell us what communincation mode you are using like com port or usb. -
In VB Programming code -- How to access the formula for suppressing a field
In VB Programming code -- How to access the formula for suppressing a field
I am using Crystal Reports 2008 v1
Using VB code, I am attempting to modify a Crystal Report before exporting it into a PDF format and then displaying it on the Web.
My problem is that I am unable to access the formula used to dynamically suppress a field.
The following code is working:
mySections = rd.ReportDefinition.Sections
For Each mySection As CrystalDecisions.CrystalReports.Engine.Section In mySections
' myFieldToChange is a String set to the text of the field I need to adjust the Suppression
iloop = 0
For Each RecObj As CrystalDecisions.CrystalReports.Engine.ReportObject In mySection.ReportObjects
If mySection.ReportObjects.Item(iloop).Name.ToLower = myFieldToChange Then
myTextObject = CType(mySection.ReportObjects.Item(iloop), CrystalDecisions.CrystalReports.Engine.TextObject)
myTextObject.Text = "new field text goes here"
mySection.SectionFormat.EnableSuppress = True
' Here is where I want to change the formula for the Suppression
End if
iloop = iloop + 1
Next
Next
I can not find any reference to the actual suppression formula in the SDK help file.
Note, the EnableSuppress can be set to True for False, but if there is a formula for dynamic suppression, the True or False value is overwritten. The results of the formula determine the suppression.
Is there a way to reference this formula. I know that I can put on in using the Crystal Report Designer software, I need to modify this formula using VB code and the SDK.Hello, Mark;
If you are using the ReportDocument object you do not have access to the Conditional Suppression formula. You can get around it by using a formula field in the report for the supression and then using the FormulaField code to change it at runtime.
If you want to change the supression condition directly at runtime you need to use RAS and the ReportClientDocument.
Elaine -
How to obtain the license for the mentioned products.
Hi All,
Please help me in below licensing issues.
1) Our functional team got the below error while accessing "Job Scheduling Workbench".
Error: The Workbench is inaccessible because Oracle Manufacturing Scheduling has not been licensed. Please work with your Account Manger to purchase the license.
2) Another error message while accessing the navigation Flow Manufacturing --> Product Sync --> Flow Routings
Error: APP-BOM 20972: You cannot access this form
Cause: You do not have a license for Oracle Flow Manufacturing.
Action: Obtain a license for Oracle Flow Manufacturing.
Please guide me how to obtain the license for the above products.
Environment: eBS R12.1.3 on Linux 5.8
Regards,
SivaThanks for providing the document. I follow the document and get back to you for any issues.
Regards,
Siva. -
A^b = n ,How to get the value for a ?
a^b = n ===> n = Math.pow(a,b)
How to get the value for a ?
dose Java have API to get the value for a ?
Thanks for help~~~a^b = n
=>
a = n^(1/b)
So,
a = Math.pow(n,1.0/b) -
How to get the date for the first monday of each month
Dear Members,
How to get the date for the first monday of each month.
I have written the following code
SELECT decode (to_char(trunc(sysdate+30 ,'MM'),'DAY'),'MONDAY ',trunc(sysdate+30 ,'MM'),NEXT_DAY(trunc(sysdate+30 ,'MM'), 'MON')) FROM DUAL
But it look bith complex.
Abhishek
Edited by: 9999999 on Mar 8, 2013 4:30 AMUse IW format - it will make solution NLS independent. And all you need is truncate 7<sup>th</sup> day of each month using IW:
select sysdate current_date,
trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
from dual
CURRENT_D FIRST_MON
08-MAR-13 04-MAR-13
SQL> Below is list of first monday of the month for this year:
with t as(
select add_months(date '2013-1-1',level-1) dt
from dual
connect by level <= 12
select dt first_of_the_month,
trunc(dt + 6,'iw') first_monday_the_month
from t
FIRST_OF_ FIRST_MON
01-JAN-13 07-JAN-13
01-FEB-13 04-FEB-13
01-MAR-13 04-MAR-13
01-APR-13 01-APR-13
01-MAY-13 06-MAY-13
01-JUN-13 03-JUN-13
01-JUL-13 01-JUL-13
01-AUG-13 05-AUG-13
01-SEP-13 02-SEP-13
01-OCT-13 07-OCT-13
01-NOV-13 04-NOV-13
FIRST_OF_ FIRST_MON
01-DEC-13 02-DEC-13
12 rows selected.
SQL> SY. -
I have the code to read from a file but my problem is how to prompt the user for the file name at run time.
import java.io.File;
import java.io.FileNotFoundException;
import java.util.InputMismatchException;
import java.util.Scanner;
public class FileRead {
public static void main(String args[]) {
Scanner scan = null;
File file = new File("Results.txt");
String number;
try {
scan = new Scanner(file);
while (scan.hasNext()){
number = scan.next();
System.out.println(number);}
catch (FileNotFoundException ex1){
System.out.println("No such file");
catch (IllegalStateException ex2){
System.out.println("Did you close the read by mistake");
catch (InputMismatchException ex){
System.out.println("File structure incorrect");
finally{
scan.close();}
}Any hints would be greatly appreciated. Thank you in advanceI have read through some of the tutorials that you have directed me too and they are very useful, thank you. however there are still a few things that i am not clear about. I am using net beans 5.0 I have placed a text file named Results.txt into the project at the root so the program can view it.
When I use the code that you provided me with, does it matter where the file is, or will it look through everywhere on the hard drive to find a match?
This code compiles but at run time it comes up with this error
run-single:
java.lang.NoClassDefFoundError: NamedFile
Exception in thread "main"
Java Result: 1
BUILD SUCCESSFUL (total time: 3 seconds)
import java.util.Scanner;
import java.io.*;
class NamedFileInput
public static void main (String[] args) throws IOException
int num, square;
// this Scanner is used to read what the user enters
Scanner user = new Scanner( System.in );
String fileName;
System.out.print("File Name: ");
fileName = user.nextLine().trim();
File file = new File( fileName ); // create a File object
// this Scanner is used to read from the file
Scanner scan = new Scanner( file );
while( scan.hasNextInt() ) // is there more data to process?
num = scan.nextInt();
square = num * num ;
System.out.println("The square of " + num + " is " + square);
}his is the code that i used. It is the same as the code you posted for me (on chapter 23 I/O using Scanner and PrintStream) Sorry im just really stuck on this!! -
How to restrict the GR for Production Order when Goods Issue is not done
Hi Gurus
How to restrict the GR for Production Order when all the required components for production order are not issued with all required quantity. Even for partial issue system should not allow GR with 101. The user status with RMWA, RMWF & CGFB is not working.
Pls suggest best solution.
Abhijit.Hi,
You can club together the GI nad GR at the time of confirmation..
I.e Backflush for the components and auto GR for the Product.
So that you can stream line the Process.
The best Option would be to use the User Exit:
Enhancement - MBCF0002
Functional Module - EXIT_SAPMM07M_001
Include - ZXMBCU02
Refer below link for further details..
How to stop the goods receipt before issueing the goods for production orde
Regards,
Siva -
How to get the ItemKey for a Workflow triggered by an event in Oracle Apps
Hello,
I have added a custom sub process to the seeded "OM Order Header" workflow. The process sends a notification. There are a few attributes in the body of the message tied to this notification, to which I am trying to assign values to using the syntax:
SetItemAttrText (itemtype, itemkey, attrname, attrvalue).
I have the internal names for the item type and attribute name, but don't know how to get the value for the item key. I understand the item key is supposed to be unique for each item type and is automatically generated by the workflow engine when the work flow fires. Is there a built-in function or some means to get this value?
Regards,
SmitaHave you tried to query WF_ITEMS? -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=WF_ITEMS&c_owner=APPLSYS&c_type=TABLE
bde_wf_item.sql - Runtime Data of a Single Workflow Item [ID 187071.1]
Thanks,
Hussein -
How to setup the RV120W for quickvpn
Hello,
The PPTP client from Windows 7 is not working with this router; therefore I would like to try the quickvpn.
Is there any paper from Cisco explaining how to setup the RV120W for quickvpn ?
Thanks for any helpUser Guides for thee rv120W are here:
http://www.cisco.com/en/US/docs/routers/csbr/rv220w/quick_start/guide/rv220w_qsg.pdf
http://www.cisco.com/en/US/docs/routers/csbr/rv120w/administration/guide/rv120w_admin.pdf
and theres some more stuff over on my site:
http://www.linksysinfo.org/index.php?forums/cisco-small-business-routers-and-vpn-solutions.49/ -
How to get the order for these decoration​s?
hello,
I want to programatically resize all the controls, indicators and decorations on the front panel.
I am getting the references of all the controls and indicators and able to resize them, as each n every control and indicator has a tabbing order set to it.
I am also getting the references of all the decoration used on the front panel but not able to get the order.
how to get the order for these decorations?The order of the decorations is the same as the back to front order. So you
can change it by bringing decorations to front, or sending them to the back.
It has been suggested many times that decorations should have labels as well
as controls, but at the moment there is no way to tell which reference
belongs to which decoration (besides position and order).
Regards,
Wiebe.
Maybe you are looking for
-
How to display the return value of a function in a text field
Hi, I have 2 textfields in a page. i> Empno ii> Salary The requirement is, i. Enter an Employee No. ii. On click of the 'SUBMIT' button a process would be executed which calls a function (or procedure with out parameter) which returns the Salary of t
-
Having upgraded from iPhoto 07 to 09, I found myself without N-up. A quick search pointed me to workarounds described in threads such as http://discussions.apple.com/thread.jspa?threadID=1178557 and http://discussions.apple.com/thread.jspa?threadID=1
-
HI Iam planning for a IDES system of version ECC6EHP 6 , i was browsing the market place for the media list for the same, but unable to find it. Can any one provide me the media list for the fresh installation of an IDES system based on Ecc6Ehp6
-
PROBLEM RESETING COMPUTOR TO FACTORY SETTINGS
MY COMPUTOR WONT RESET TO FACTORY SETTINGS
-
I am trying to burn a data dvd but everytime i insert a dvd, idvd opens up and i do not get a dvd icon on the desktop do i use idvd to create my data dvd and how or how do i fix the problem