How to create a exit buttom in my mobile application in html5
Please i want to create a exit button for my android aplication on dreamweaver my app is in html5 i need the code for create this
Hi pofpofines45,
Can you check out this discussion in the time that the other experts get back to you?
http://stackoverflow.com/questions/5023954/javascript-ok-exit-button
Thanks,
Preran
Similar Messages
-
How to create and configure proxies in ADF mobile using OWSM client agent?
Hi
Can anyone please tell me how to create and configure proxies in ADF mobile application using Oracle Web Services Manager (OWSM) Lite Mobile ADF Application Agent. I read it in mobile document that,
For secured web services, the user credentials are dynamically injected using ADF Mobile uses Oracle Web Services Manager (OWSM) Lite Mobile ADF Application Agent to create and configure proxies, as well as to request services through the proxies. The user credentials are injected into the OWSM enforcement context when proxies are configured.
I am new with this OWSM, can anyone please give me some hints like how to proceed further for implementing authentication using OWSM lite mobile ADF Application Agent??
Thanks in advance
RajHi Juan
The demo is very useful, and in that Shay describes about the remote login using a regular ADF webapplication as a secured one and deploying it into the server. But I would like to know how to create a local login using OWSM client agent? .
Without creating a regular ADF webapplication, how can i call secured webservices(i.e., by using OWSM client agent how to create and configure proxies to call secured webservice, where the user credentials are injected into webservice request by OWSM client as mentioned in ADF mobile document)??
Regards
Raj -
Hi,
Please tell me steps for how to create Menu Exit. Please Help meMENU EXITS
Menu exits allow you to add your own functionallity to menus. Menu exits are implemented by SAP, and are reserved menu entries in the GUI interface. The developer can add his/her own text and logic for the menu.
Function codes for menu exits all start with "+"
Example
We want to create a new menu item in the Office menu. The text for the menu should be "Run ZTEST", and the menu will
run report ZTEST.
Goto transaction SE43 Area Menu Maintenance
In Area Menu Paramenter type 'S000' (S triple Zero)
Select Change and ignore all the warning screens
Expand the office menu. In the buttom of the office tree you will find a menu named "Customer function"
Double click on the text. In the pop-up screen change the text to "Run ZTEST". Note that the trsnaction code is +C01
Goto transaction SE93 and create transaction +C01 that calls report ZTEST.
Now you will se the menu displayed in the office tree. If you delete transaction +C01 again, the new menu will dissapear.
There are 'only' 177 Menu exits in standard - I couldn't see the right one, too.
But you could search the implemented exits, this should be only a small number. Go to transaction CMOD, enter * and F4, information system (F5), show all selections (Shift+F7) and then you can restrict to search only menu exits.
Of course there is the possibility, that these are added in a different way...
... at least you can be sure, if it's a normal menu exit.
Check this sap help..
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
http://www.sapbrainsonline.com/TUTORIALS/default.html
You can achieve this functionality by configuring in IMG.
Please find the info regarding User-Exit's in the following links:
http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec07a25db911d295ae0000e82de14a/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
Re: doubt on user exits
user exits and Badis
User exits is the enhancements provided by SAP
You can use them in transactions. Each transaction will have user exits.
If you want to use your own requirements by making your coding while the transaction is run you can use user exits.
For example if you want to run the MRP in MD02 specific to MRP controller you can user exit.
Please also refer the document below.
USEREXIT
Userxits allow us to add our own functionality to SAP standard program
without modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.
All Userexits start with the word USEREXIT_...
FORM USEREXIT_..
z..
ENDFORM.
The problem lies in finding the correct userexit and how to find it if one exists for the purpose. Once the correct userexit is found the necessary customer code is inserted in the customer include starting with the z.. in the form routine.
e.g. USEREXIT_SAVE_DOCUMENT_PREPARE
Certain application like SD still provide this form of enhancement using userexit but this practice is no longer being followed for newer extensions instead they are using EXITs which come bundeled in enhancement packages . Neverthiless existing USEREXITS will be supported by SAP an all the newer versions of SAP.
HOW TO FIND USEREXITS
Userexits can be found in number of ways:
1) To find userexits in SD module , goto object navigator(SE80) and select
development class from the list and enter VMOD in it. All of the userexits in SD are contained in the development class VMOD. Press enter and you will find all the includes which contain userexits in SD for different functions like PRICING, ORDER PROCESSING etc. Select the userexit according to the requirement and read the comment inserted in it and start coding .
Some examples of userexits in SD(SALES & DISTRIBUTION ) are:
1)ADDING OF NEW FIELDS IN PRICING
In Pricing in SD the fields on the basis of which pricing is done are derived from the FIELD CATALOG which is a structure KOMG .This structure is used to transfer transaction data to the pricing procedure in SD and is also known as communication structure.This structure KOMG consists of two tables KOMK for Header related fields and KOMP for item related fields. The fields which are not in either of the two tables KOMK and KOMP cannot be used in pricing .Sometimes a need arises when the pricing is to be based on some other criteria which is not present in the form of fields in either of the two tables. This problem can be solved by using USEREXITS which are provided for pricing in SD. Pricing takes place both when the SALES ORDER ( Transaction VA01) is created as well as when INVOICING ( Transaction VF01) is done.Hence SAP provides 2 userexits ,one for sales order processing which is
USEREXIT_PRICING_PREPARE_TKOMP or
USEREXIT_PRICING_PREPARE_TKOMK
Depending upon which table (KOMK or KOMP) the new fields were inserted we use either of the above two userexits.These userexits are found in include MV45AFZZ of the standard SAP sales order creation program SAPMV45A.
In the case of userexit which will be called when invoicing is done ,these
are provided in the include RY60AFZZ which is in the standard SAP program SAPMV45A. The name of the userexits are same. i.e
USEREXIT_PRICING_PREPARE_TKOMP or
USEREXIT_PRICING_PREPARE_TKOMK
These userexits are used for passing the data from the communication structure to the pricing procedure, for this we have to fill the newely created field in the communication structure KOMG for this we fill the code in the above userexit using the MOVE statement after the data that has to be passed is taken from the database table by using the SELECT statement. The actual structure which is visible in these userexits and which is to be filled for that particular field is TKOMP or TKOMK.
Before the coding for these userexits is done ,it is necessary to create a new field in either of the two tables KOMK or KOMP .For this purpose includes are provided in each of them .
To create the field in header data(KOMK) the include provided is KOMKAZ
and to create the field in item data(KOMP) the include provided is KOMPAZ.
One possible example for the need of creating new fields can be e.g. Frieght to be based upon transportation zone ,for this no field is available in field catalog and hence it can be created in KOMK and then above userexits can be used to fill the transportation data to it.
2)The other method of finding userexit is to find the word USEREXIT in the
associated program of the transaction for which we want to determine userexit using SE38.
3)The other method of finding userexits is to find the include in case of SD/MM applications where the userexits are located ,this can be found in the SAP reference IMG generally in the subfolder under SYSTEM MODIFICATION.
Some other examples of userexits in SD are:
USEREXIT_NUMBER_RANGE
This userexit is used to assign a different internal document number to the
sales order(VA01) when it is created depending on some criteria like a different SALES ORGANIZAION(VKORG) .
USEREXIT_SAVE_DOCUMENT_PREPARE
This userexit is used to insert the ABAP code which will be called when
the document (sales order VA01) is just about to be saved.This userexit is used generally for custom checks on different fields , to display some information before the order will be saved or for making changes to certain fields before the sales order will be saved.
Exits & Enhancements
There are mainly six types of EXITs in sap which have been collected in the form of enhancement packages and attached to standard code in SAP.
These are different from USEREXIT in the way that they are implemented
in the form of FUNCTIONs while in USEREXITS we use form routines for their implementation. These are also sometimes known as function exits .
These start from the word EXIT_ followed by the program name and then followed by a three digit number.
e.g. EXIT_SAPMV45A_002
This exit is found in SD in enhancement V45A0002.
TYPES OF EXITS
1)MENU EXITS
2)FUNCTION EXITS
3)TABLE EXITS
4)SCREEN EXITS
5)KEYWORD EXITS
6)FIELD EXITS
We use SAP transactions CMOD and SMOD to manage exits. Before implementing an exit , it is required to create the project by using CMOD
selecting the enhancement e.g. V45A0002 and selecting the component
(one which fulfills our need) i.e the exit which will be implemented in SMOD and after coding has been done the project has to be activated.
An exit can be coded only once.
FUNCTION EXITS
These are used to add functionality through ABAP code . These start from the word EXIT_programname_NNN ending in a 3 digit number. No access code is required to implement any tupe of exit including function exits.
The function exits are called from the standard SAP program in the form
of ABAP statement
CALL CUSTOMER-FUNCTION 'NNN'
This is in contrast to USEREXITs where PERFORM statement is used to call
the required userexit.
To implement the FUNCTION EXITs first of all the project is created and a suitable enhancement package is selected and from its compnents the function exit to be implemented is selected and on double clicking it the exit code will appear in ABAP EDITOR(se38) where a Z include will be found and the customer code should be entered in this include.
e.g.
ADDING A DEFAULT SOLD-TO-PARTY in Sales Order Creation
To show a default sold-to-party in this field when the user creates a sales order (VA01) we can use a function exit .This function exit is located in enhancement no V45A0002 . Before we can choose the exit we have to create a project in CMOD after that enter V45A0002 in the enhancement field and click on the components . In the components you will see the exit EXIT_SAPMV45A_002 . This exit is used for our purpose.
Double clicking on this exit will takes us to function builder (SE37) . This
function exit has one exporting parameters and two importing parameters, we are interested in exporting parameter which is E_KUNNR of type KNA1-KUNNR i.e if we move the desired customer name to this structure(E_KUNNR) it will be shown in the field as the default value when we create the sales order. This function also contains a customer include ZXVVA04 . This include will be used to write our custom code .
Double clicking on this include and it will prompt us that this include does not exists do you want to create this object ,select yes and the include will be created .In this include we can write our own code that will fill the field E_KUNNR.
e.g. E_KUNNR = 301.
Activate the include and Activate the project. Now when ever the SALES ORDER will be created , sold-to-party field will come up with a predefined customer .
FIELD EXITS
The field exits are managed,created,activated through program RSMODPRF. The field exit is associated with a data element existing in ABAP dictionary and hence to the screen field using that data element.
The format of field exit is :
FIELD_EXIT_dataelement_A-Z or 0-9
If a particular screen and program name is not specified than the field exit will effect all the screens containing that data element.
The function module associated with field exit shows two parameters
INPUT and OUTPUT. Input parameter contains the data passed to the field exit when the field exit was invoked by the R/3 , We can write our own code to change the output parameter depending upon our requirements.
Before the field exit can have any effect the system profile parameter
ABAP/FIELDEXIT in all the application servers should be set to YES
ABAP/FIELDEXIT = YES.
Reward points Please ... -
How to create menu exits?
hi experts can anyone tell how to create menu exits?
Check these links:
http://help.sap.com/saphelp_bw21c/helpdata/en/c8/19762743b111d1896f0000e8322d00/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
MENU EXIT
MENU EXIT
please explain me menu exit
Rohit -
How to create User Exits in ECC 6
Hi Experts,
good day, i'm looking for any notes or learning materials on how to create User Exits in ECC 6. please send me the links.
thanks you for your usual support.Hello,
For information on Exits, check these links
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
Any Basics u wana know abt Enhancements.,.,go through the link.,
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
Thanks,
Swati -
How to create the Exit Variable
Dear all,
I want to create the exit Variables for query.
But How to create the exit variables.
Dose Anyone could share some document?
Thanks
Best regards,
LeonHi,
Check this out:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06
assign points if useful ***
oops this is for authorization in BW reports***
anyways keep this,.. it may be help for you though this may not answer your Qn. on exit variable.
Thanks,
Raj
Message was edited by: Raj -
How to create customer exit variable
Hi guys,
please any one can help for how to create customer exit variabel.
Regards.Hi!
welcome to SDN.
its very simple.just go to Bex query designer. there u can use the following <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/ac/789b3c4d4d8d15e10000000a114084/content.htm">Link</a> to create a variable.. but use the processing type user exit.
after that go to transaction SE37 in BW and opent he function module EXIT_SAPLRRS0_001
and in that there is a include ZXRSRU01.... just double click on it and edit that...
there u can write code for your variable ,...for example write code inside
case "ZMY_VARIABLE"
*code for ur variable
endcase
u can use the following
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/content.htm">link for help</a> -
How to create customer exit for characteristic variables and for text vars.
hi friends,
can anybody tell me how to create customer exit for characteristic variables and for text variables in bw ides system.
thanks,
sreeHi,
Please have a look at:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
Krzys -
How to create user exit search help
Hi,
I have created a search help from se11 with a field (PT9653-ZDOCENTE) of table control.
Now I want to fill another field (PT9653-ZMATERIA) of table control when the user select a value in the search help.
How do I do it?
I read that I must use a user exit, is it correct?
could you give me some examples?I have created a exit that should upgrade the second field with the function
dynpvaluetab2-fieldname = 'PT9653-ZDOC_TXT'.
WRITE wa_nome TO dynpvaluetab2-fieldvalue.
dynpvaluetab2-stepl = sy-stepl.
APPEND dynpvaluetab2.
CLEAR dynpvaluetab2.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'MP965300'
dynumb = '2000'
TABLES
dynpfields = dynpvaluetab2.
but it is not work.
Instead, if the first use F4IF_INT_TABLE_VALUE_REQUEST to see the search help and then the DYNP_VALUES_UPDATE to update the other fields work.
SELECT objid stext FROM hrp1000
INTO CORRESPONDING FIELDS OF TABLE tab_materie
WHERE plvar EQ '01'
AND otype EQ 'ZM'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'OBJID'
dynpprog = sy-repid
dynpnr = '2000'
dynprofield = 'PT9653-ZMATERIA'
value_org = 'S'
TABLES
value_tab = tab_materie
return_tab = tb_ret_conc
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE s000(zh) WITH 'Non trovati record per questa selezione'.
ENDIF.
GET CURSOR FIELD pt9653-zmateria LINE riga_corrente.
READ TABLE tb_ret_conc INDEX riga_corrente.
REFRESH dynpvaluetab.
dynpvaluetab-fieldname = 'PT9653-ZMATERIA'.
WRITE tb_ret_conc-fieldval TO dynpvaluetab-fieldvalue.
dynpvaluetab-stepl = riga_corrente.
APPEND dynpvaluetab.
CLEAR dynpvaluetab.
READ TABLE tab_materie WITH KEY objid = tb_ret_conc-fieldval.
dynpvaluetab-fieldname = 'PT9653-ZMAT_TXT'.
WRITE tab_materie-stext TO dynpvaluetab-fieldvalue.
dynpvaluetab-stepl = riga_corrente.
APPEND dynpvaluetab.
CLEAR dynpvaluetab.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = dynpvaluetab.
bold The problem is that for this field, I need a collective search help , and therefore I can not use the F4IF_INT_TABLE_VALUE_REQUEST. bold -
How to create Customer exit ?
Hello,
I am new to BI 7 and working on same.
I wanted to create a Customer exit as per the requirements for a Text variable so as to do proper display.
Can any one suggest step by step to do that .
I use T code in Bi server
What i see are the option of
New project etc.
But i dont see any option for Customer exit.
Can any one provide step by step guide or some thorough example for creating Customer exit , it will be really helpful.
Thanksif you are looking for BEx user exit.. Go to CMOD .. you need to create a project say for eg: ZBIVAREX. Assign enhancement as RSR00001 (BI: Enhancements for Global Variables in Reporting).
go thru the example given :
http://help.sap.com/saphelp_nw04s/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm -
How to create user exit for MIGO check "item OK" Field select/unselect?
Hi All,
I want to know User Exit for MIGO Screen. when I click check button it will be show "Item OK " Field select or not.
MIGO Screen post if Item ok field select both parent id and line id . otherwise it will be show error message?.
Can Please every one tell me how to do user exit for MIGO?
mail id: [email protected]
thanks,
S.Muthu,Hi,
check the BADI <b>MB_MIGO_BADI</b> ( method: POST_DOCUMENT).
COMD enhancment <b>MBCF0005</b>
Regards -
Hi,
Please tell me the step by step procedure for creating Filed ExitHi Mohan,
This will be too useful for u...
Step by step procedure for creating Field Exits
There are eight steps to creating a field exit:
Step 1: Determine Data Element
Step 2: Go To Field Exit Transaction
Step 3: Create Field Exit
Step 4: Create Function Module
Step 5: Code Function Module
Step 6: Activate Function Module
Step 7: Assign Program/Screen
Step 8: Activate Field Exit
Step 1: Determine Data Element
- Before you can begin adding the functionality for a field exit, you must know the corresponding data element.
- An easy way to determine the data element associated to a particular screen field is to:
Go the appropriate screen.
Position the cursor in the appropriate field.
Press F1 for field-level help.
Click on the Technical info pushbutton (or press F9) on the help dialog box.
On this Technical Information dialog box, the data element will be specified if the field is 'painted' from the ABAP/4 Dictionary.
Step 2: Go To Field Exit Transaction
- The transaction to create field exits is CMOD.
- You can use the menu path Tools -> ABAP/4 Workbench -> Utilities -> Enhancements -> Project management.
- From the initial screen of transaction CMOD, choose the Text enhancements -> Field exits menu path.
- After choosing this menu path, you will be taken to the field exits screen. From here, you can create a field exit.
NOTE : Even though you use transaction CMOD to maintain field exits, you do not need to create a project to activate field exits.
Step 3: Create Field Exit
- From the field exit screen of transaction CMOD, choose the Field exit -> Create menu path.
- After choosing this menu path, a dialog box will prompt you for the appropriate data element .
- Enter the data element name and click the Continue pushbutton.
- Now, you will be able to create the function module associated to the data elements field exit.
Step 4: Create Function Module
- You will automatically be taken to the Function Library (SE37) after entering a data element name and clicking the Continue pushbutton.
- In the Function module field, a function module name will be defaulted by the system based on the data element specified. This name will have the following convention:
FIELD_EXIT_<data element>
- You can add an identifier (an underscore followed by a single character ).
- The first function module for a data elements field exit must be created without an identifier.
- To create the function module, click on the Create pushbutton, choose menu path Function module -> Create, or press F5.
- After choosing to create the function module, you will get the warning: "Function module name is reserved for SAP". This message is just a warning so a developer does not accidentally create a function module in the field exit name range. By pressing Enter, you will be able to go ahead and create the function module.
- Before coding the function module, you will have to specify the function modules attributes -- function group, application, and short text.
Step 5: Code Function Module
- From the function modules attributes screen, click on the Source code pushbutton or choose the Goto -> Function module menu path to the code of the function module.
- Here you will add your desired functionality for the field exit.
- Remember that field exits function module will have two parameters -- one importing parameter called "INPUT" and one exporting parameter called "OUTPUT". These parameters will be set up automatically by the system.
- You must remember to assign a value to the OUTPUT field. Even if the value does not change, it must be moved from the INPUT field to the OUTPUT field.
Step 6: Activate Function Module
- After coding the function module, you must remember to activate it.
- Use the Function module -> Activate menu path to activate the function module.
- At this point, you can return to the field exit transaction.
- You should be able to 'green arrow' back to this transaction.
- When you return to the field exit transaction, you will see an entry for the newly created field exit.
- At this point, the field exit is global. That is, it applies to all screens that use a particular data element. On any screen that uses the data element, the corresponding field exit function module will be triggered, once it is active.
- Also, the field exit will not be triggered yet because it is inactive.
Step 7: Assign Program/Screen
- This step is only needed if you want to make a field exit local.
- To make a field exit local, select the field exit and click on the Assign prog./screen pushbutton.
- In the dialog box , indicate the appropriate program name and screen number.
This information indicates that the field exit is local to the specified screen in the specified program.
- In the dialog box, you determine which function module gets executed for the field exit by specifying the identifier in the Fld. Exit field.
- If this field is left blank, the function module triggered will be 'FIELD_EXIT_<data element>'.
- If a single-character identifier is entered into the field, the function module triggered will be 'FIELD_EXIT_<data element>_<identifier>'.
Step 8: Activate Field Exit
- The field exit must be active for it to be triggered by the system.
- Activate the field exit by choosing the Field exit -> Activate menu path.
- After assigning the field exit to a change request, its status will change to Active and it will be triggered automatically on the appropriate screen(s).
NOTE : In order to activate the field exit the profile parameter abap/fieldexit = YES must be set on all application servers
Set the above config in Tcode RZ11 -
How to create the digital clock in java swing application ?
I want to create the running digital clock in my java swing application. Can someone throw some light on this how to do this ? Or If someone has done it then can someone pl. paste the code ?
Thanks.hi prah_Rich,
I have created a digital clock you can use. You will most likely have to change some things to use it in another app although that shouldn't be too hard. A least it can give you some ideas on how to create one of your own. There are three classes.One that creates the numbers. a gui class and frame class.
cheers:)
Hex45
import java.awt.*;
import java.util.*;
import javax.swing.*;
import java.awt.geom.*;
public class DigitalClock extends Panel{
BasicStroke stroke = new BasicStroke(4,BasicStroke.CAP_ROUND,
BasicStroke.JOIN_BEVEL);
String hour1, hour2;
String minute1, minute2;
String second1, second2;
String mill1, mill2, mill3;
int hr1, hr2;
int min1, min2;
int sec1, sec2;
int mll1, mll2,mll3;
public void update(Graphics g){
paint(g);
public void paint(Graphics g){
Graphics2D g2D = (Graphics2D)g;
DigitalNumber num = new DigitalNumber(10,10,20,Color.cyan,Color.black);
GregorianCalendar c = new GregorianCalendar();
String hour = String.valueOf(c.get(Calendar.HOUR));
String minute = String.valueOf(c.get(Calendar.MINUTE));
String second = String.valueOf(c.get(Calendar.SECOND));
String milliSecond = String.valueOf(c.get(Calendar.MILLISECOND));
if(hour.length()==2){
hour1 = hour.substring(0,1);
hour2 = hour.substring(1,2);
}else{
hour1 = "0";
hour2 = hour.substring(0,1);
if(minute.length()==2){
minute1 = minute.substring(0,1);
minute2 = minute.substring(1,2);
}else{
minute1 = "0";
minute2 = minute.substring(0,1);
if(second.length()==2){
second1 = second.substring(0,1);
second2 = second.substring(1,2);
}else{
second1 = "0";
second2 = second.substring(0,1);
if(milliSecond.length()==3){
mill1 = milliSecond.substring(0,1);
mill2 = milliSecond.substring(1,2);
mill3 = milliSecond.substring(2,3);
}else if(milliSecond.length()==2){
mill1 = "0";
mill2 = milliSecond.substring(0,1);
mill3 = milliSecond.substring(1,2);
}else{
mill1 = "0";
mill2 = "0";
mill3 = milliSecond.substring(0,1);
hr1 = Integer.parseInt(hour1);
hr2 = Integer.parseInt(hour2);
min1 = Integer.parseInt(minute1);
min2 = Integer.parseInt(minute2);
sec1 = Integer.parseInt(second1);
sec2 = Integer.parseInt(second2);
mll1 = Integer.parseInt(mill1);
mll2 = Integer.parseInt(mill2);
g2D.setStroke(stroke);
g2D.setPaint(Color.cyan);
num.setSpacing(true,8);
num.setSpacing(true,8);
if(hr1==0&hr2==0){
num.drawNumber(1,g2D);
num.setLocation(40,10);
num.drawNumber(2,g2D);
else{
if(!(hr1 == 0)){
num.drawNumber(hr1,g2D);
num.setLocation(40,10);
num.drawNumber(hr2,g2D);
num.setLocation(70,10);
num.drawNumber(DigitalNumber.DOTS,g2D);
num.setLocation(100,10);
num.drawNumber(min1,g2D);
num.setLocation(130,10);
num.drawNumber(min2,g2D);
num.setLocation(160,10);
num.drawNumber(DigitalNumber.DOTS,g2D);
num.setLocation(190,10);
num.drawNumber(sec1,g2D);
num.setLocation(220,10);
num.drawNumber(sec2,g2D);
/*num.setLocation(250,10);
num.drawNumber(DigitalNumber.DOTS,g2D);
num.setLocation(280,10);
num.drawNumber(mll1,g2D);
num.setLocation(310,10);
num.drawNumber(mll2,g2D);
g2D.setPaint(Color.cyan);
if((c.get(Calendar.AM_PM))==Calendar.AM){
g2D.drawString("AM",260,20);
}else{
g2D.drawString("PM",260,20);
String dayOfweek = "";
switch(c.get(Calendar.DAY_OF_WEEK)){
case(Calendar.SUNDAY):
dayOfweek = "Sunday, ";
break;
case(Calendar.MONDAY):
dayOfweek = "Monday, ";
break;
case(Calendar.TUESDAY):
dayOfweek = "Tuesday, ";
break;
case(Calendar.WEDNESDAY):
dayOfweek = "Wednesday, ";
break;
case(Calendar.THURSDAY):
dayOfweek = "Thursday, ";
break;
case(Calendar.FRIDAY):
dayOfweek = "Friday, ";
break;
case(Calendar.SATURDAY):
dayOfweek = "Saturday, ";
break;
String month = "";
switch(c.get(Calendar.MONTH)){
case(Calendar.JANUARY):
month = "January ";
break;
case(Calendar.FEBRUARY):
month = "February ";
break;
case(Calendar.MARCH):
month = "March ";
break;
case(Calendar.APRIL):
month = "April ";
break;
case(Calendar.MAY):
month = "May ";
break;
case(Calendar.JUNE):
month = "June ";
break;
case(Calendar.JULY):
month = "July ";
break;
case(Calendar.AUGUST):
month = "August ";
break;
case(Calendar.SEPTEMBER):
month = "September ";
break;
case(Calendar.OCTOBER):
month = "October ";
break;
case(Calendar.NOVEMBER):
month = "November ";
break;
case(Calendar.DECEMBER):
month = "December ";
break;
int day = c.get(Calendar.DAY_OF_MONTH);
int year = c.get(Calendar.YEAR);
Font font = new Font("serif",Font.PLAIN,24);
g2D.setFont(font);
g2D.drawString(dayOfweek+month+day+", "+year,10,80);
public static void main(String args[]){
AppFrame aframe = new AppFrame("Digital Clock");
Container cpane = aframe.getContentPane();
final DigitalClock dc = new DigitalClock();
dc.setBackground(Color.black);
cpane.add(dc,BorderLayout.CENTER);
aframe.setSize(310,120);
aframe.setVisible(true);
class Task extends TimerTask {
public void run() {
dc.repaint();
java.util.Timer timer = new java.util.Timer();
timer.schedule(new Task(),0L,250L);
class DigitalNumber {
private float x=0;
private float y=0;
private float size=5;
private int number;
private Shape s;
private float space = 0;
public static final int DOTS = 10;
private Color on,off;
DigitalNumber(){
this(0f,0f,5f,Color.cyan,Color.black);
DigitalNumber(float x,float y, float size,Color on,Color off){
this.x = x;
this.y = y;
this.size = size;
this.on = on;
this.off = off;
public void drawNumber(int number,Graphics2D g){
int flag = 0;
switch(number){
case(0):
flag = 125;
break;
case(1):
flag = 96;
break;
case(2):
flag = 55;
break;
case(3):
flag = 103;
break;
case(4):
flag = 106;
break;
case(5):
flag = 79;
break;
case(6):
flag = 94;
break;
case(7):
flag = 97;
break;
case(8):
flag = 127;
break;
case(9):
flag = 107;
break;
case(DOTS):
GeneralPath path = new GeneralPath();
path.moveTo(x+(size/2),y+(size/2)-1);
path.lineTo(x+(size/2),y+(size/2)+1);
path.moveTo(x+(size/2),y+(size/2)+size-1);
path.lineTo(x+(size/2),y+(size/2)+size+1);
g.setPaint(on);
g.draw(path);
return;
//Top
if((flag & 1) == 1){
g.setPaint(on);
}else{
g.setPaint(off);
GeneralPath Top = new GeneralPath();
Top.moveTo(x + space, y);
Top.lineTo(x + size - space, y);
g.draw(Top);
//Middle
if((flag & 2) == 2){
g.setPaint(on);
}else{
g.setPaint(off);
GeneralPath Middle = new GeneralPath();
Middle.moveTo(x + space, y + size);
Middle.lineTo(x + size - space,y + size);
g.draw(Middle);
//Bottom
if((flag & 4) == 4){
g.setPaint(on);
}else{
g.setPaint(off);
GeneralPath Bottom = new GeneralPath();
Bottom.moveTo(x + space, y + (size * 2));
Bottom.lineTo(x + size - space, y + (size * 2));
g.draw(Bottom);
//TopLeft
if((flag & 8) == 8){
g.setPaint(on);
}else{
g.setPaint(off);
GeneralPath TopLeft = new GeneralPath();
TopLeft.moveTo(x, y + space);
TopLeft.lineTo(x, y + size - space);
g.draw(TopLeft);
//BottomLeft
if((flag & 16) == 16){
g.setPaint(on);
}else{
g.setPaint(off);
GeneralPath BottomLeft = new GeneralPath();
BottomLeft.moveTo(x, y + size + space);
BottomLeft.lineTo(x, y + (size * 2) - space);
g.draw(BottomLeft);
//TopRight
if((flag & 32) == 32){
g.setPaint(on);
}else{
g.setPaint(off);
GeneralPath TopRight = new GeneralPath();
TopRight.moveTo(x + size, y + space);
TopRight.lineTo(x + size, y + size - space);
g.draw(TopRight);
//BottomRight
if((flag & 64) == 64){
g.setPaint(on);
}else{
g.setPaint(off);
GeneralPath BottomRight = new GeneralPath();
BottomRight.moveTo(x + size, y + size + space);
BottomRight.lineTo(x + size, y + (size * 2) - space);
g.draw(BottomRight);
public void setSpacing(boolean spacingOn){
if(spacingOn == false){
space = 0;
else{
this.setSpacing(spacingOn,5f);
public void setSpacing(boolean spacingOn,float gap){
if(gap<2){
gap = 2;
if(spacingOn == true){
space = size/gap;
public void setLocation(float x,float y){
this.x = x;
this.y = y;
public void setSize(float size){
this.size = size;
class AppFrame extends JFrame{
AppFrame(){
this("Demo Frame");
AppFrame(String title){
super(title);
setSize(500,500);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
} -
How to create an rss feed for a database application page
Hi
I need to create a web service for an apex application page so that it can be utilized and hosted another server of apex. For that we thought of creating an rss feed for that application page.
Please help me out how to create an rss feed for an apex page.
Thanks in advance.
Regards
Sandeep ArthamHi,
This might help
http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/advnc_web_services.htm#sthref2628
Also Blog posts
http://tylermuth.wordpress.com/2008/01/22/producing-rss-from-plsql/
http://richmurnane.blogspot.com/2010/03/oracle-apex-creating-simple-rss-feed.html
http://www.apex-blog.nl/node/8
Regards,
Jari -
How to create DVT Clickable Piechart in ADF Mobile framework
Hi All,
I am working on ADF Mobile app which displays piechart component on the mobile UI screen. I want to have clickable piechart which the user will click to navigate to next page to show more details of the pie clicked/touched.
I have looked into this doc link below but there is no info on how to create a clickable pie chart.
http://docs.oracle.com/cd/E37975_01/doc.111240/e24475/amxui.htm#ADFMF670
Is there any documentation on how to do that?
Thanks.
-Nirav
Edited by: Shah23 on May 29, 2013 11:10 AMHi Nirav,
There is an action attribute on the dvtm:pieDataItem tag where you can specify which action to take when the user touches the pie slice.
Hope this helps
Katia
Maybe you are looking for
-
Upgrade from CS2 to CS5 will not connect to Elements 5.0 "catalogue" files.
Until now, I have been seamlessly using CS2 as my Photoshop Editor which was accessed through the Photoshop Elements 5.0 Catalogue function. Within the Elements catalogues, raw or processed photos were acquired to Photoshop CS2 by left clicking the
-
Using LR4 (not 4.1) and Win7 Home Premium. Catalog had been upgraded from LR3 and LR4 catalog was working fine until now. I've been using LR since the begining. Two problems, probably related. 106K photos over two drives, almost 3Tb. At the catalo
-
How to control which Configuration File a package Opens with in MS Visual Studio 2008 ?
When running our jobs, I know which Configuration File is being used, as it's specified in the path. But when opening SSIS Jobs in MS Visual Studio, lets say there is four different Config files. How do you control which one is used when you are work
-
I have an older panasonic camcorder I can't get my MAC/Imovies 11 to recognize the format. The movies play fine on the camcorder and I think are recorded in MPEG2 format. Any suggestions on an App or solution to get them on my Mac. Thanks
-
Saving monitor views as quicktime file
For training purposes I would like to capture a series of actions from my screen and save as a quicktime file. I see Grab lets me take a single screen shot but I need to capture more than this. How can I do this? Thanks in advance