Looking for beep(frequency,duration) class method
These 2 last days, I had already posted topics about this subject , but I was certainly not very clear in the topic header. (or even about what I was really looking for).
Is there a package somewhere I can download which contains a class with a beep method to fire a sound at a particular frequency and for a specified duration ?
System.beep() does not allow to change the frequency.
Thanks
"nd on a google search gives http://www.developer.com/java/other/article.php/2226701#Complete%20Program%20Listings which containes more than you need. You will have to extract the bits you need and say thanks to Richard Baldwin.
Similar Messages
-
Type for SENDER parameter in Class Method
Hi all,
I have an import parameter declared in a Class method .
in SE38 program i want to retrieve through export parameter .
But i am not able to figure how to defind the type of SENDER parameter . Please suggest if my perception is wrong or the point that i am missing here .
Regards,
Ry.Hi Vijay,
Thank you for your reply . the problem i am having is the functionlaity of this report is it displays three grids and when ever i double click on a grid it should identify the particluar grid . i have highlighted in bold where i am encountering the problem. i am enclosing the class details and the report source code. Please suggest after going through it . thanks in advance.
Class details that i have created :
the class has a method handle_double_event with event handler double_click of CL_GUI_ALV_GRID . i have defined this in the method section.
in public section section :
public section.
types GO_GRID1 type ref to CL_GUI_ALV_GRID .
class-methods HANDLE_DOUBLE_CLICK
for event DOUBLE_CLICK of CL_GUI_ALV_GRID
importing
ES_ROW_NO
E_COLUMN
E_ROW
SENDER .
in handle_double_event code :
DATA:
go_grid1 TYPE REF TO cl_gui_alv_grid,
go_grid2 TYPE REF TO cl_gui_alv_grid,
go_grid3 TYPE REF TO cl_gui_alv_grid.
DATA:
gt_knb1 TYPE STANDARD TABLE OF knb1,
gt_vbak TYPE STANDARD TABLE OF vbak,
gt_vbap TYPE STANDARD TABLE OF vbap.
define local data
DATA:
ls_knb1 TYPE knb1,
ls_vbak TYPE vbak,
ls_vbap TYPE vbap.
DATA: es_row_no type lvc_s_roid,
e_column type lvc_s_col,
e_row type lvc_s_row.
*CASE sender. - here when i double click on the first grid go_grid1 it should go inside the go_grid1 . but it is not entering .*
WHEN go_grid1.
READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row-index.
CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
CALL METHOD go_grid1->set_current_cell_via_id
EXPORTING
IS_ROW_ID =
IS_COLUMN_ID =
is_row_no = es_row_no.
Triggers PAI of the dynpro with the specified ok-code
CALL METHOD cl_gui_cfw=>set_new_ok_code( 'ORDERS' ).
WHEN go_grid2.
READ TABLE gt_vbak INTO ls_vbak INDEX e_row-index.
CHECK ( ls_vbak-vbeln IS NOT INITIAL ).
CALL METHOD go_grid1->set_current_cell_via_id
EXPORTING
IS_ROW_ID =
IS_COLUMN_ID =
is_row_no = es_row_no.
Triggers PAI of the dynpro with the specified ok-code
CALL METHOD cl_gui_cfw=>set_new_ok_code( 'ORDER_DET' ).
WHEN go_grid3.
READ TABLE gt_vbap INTO ls_vbap INDEX e_row-index.
CHECK ( ls_vbap-matnr IS NOT INITIAL ).
SET PARAMETER ID 'MAT' FIELD ls_vbap-matnr.
CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.
WHEN OTHERS.
RETURN.
ENDCASE.
endmethod.
Code for the Report that is accessing the class.
DATA:
gd_okcode TYPE ui_func,
go_docking TYPE REF TO cl_gui_docking_container,
go_splitter TYPE REF TO cl_gui_splitter_container,
go_splitter_2 TYPE REF TO cl_gui_splitter_container,
go_cell_top TYPE REF TO cl_gui_container,
go_cell_bottom TYPE REF TO cl_gui_container,
go_cell_left TYPE REF TO cl_gui_container,
go_cell_right TYPE REF TO cl_gui_container,
go_grid1 TYPE REF TO cl_gui_alv_grid,
go_grid2 TYPE REF TO cl_gui_alv_grid,
go_grid3 TYPE REF TO cl_gui_alv_grid,
list type ref to zcl_eventhandler,
es_row_no type lvc_s_roid,
e_column type lvc_s_col,
e_row type lvc_s_row,
sender(8) type c.
DATA:
gt_knb1 TYPE STANDARD TABLE OF knb1,
gt_vbak TYPE STANDARD TABLE OF vbak,
gt_vbap TYPE STANDARD TABLE OF vbap.
PARAMETERS : p_bukrs TYPE ekko-bukrs default '1000'.
START-OF-SELECTION.
create object list.
SELECT * FROM knb1 INTO TABLE gt_knb1
WHERE bukrs = p_bukrs.
Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 50
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Create splitter container
CREATE OBJECT go_splitter
EXPORTING
parent = go_docking
rows = 1
columns = 1
NO_AUTODEF_PROGID_DYNNR =
NAME =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Get cell container
CALL METHOD go_splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = go_cell_left.
container = go_cell_top.
CALL METHOD go_splitter->get_container
EXPORTING
row = 1
column = 2
RECEIVING
container = go_cell_right.
Create 2nd splitter container
CREATE OBJECT go_splitter_2
EXPORTING
parent = go_cell_left
parent = go_cell_top
rows = 2
columns = 1
NO_AUTODEF_PROGID_DYNNR =
NAME =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Get cell container
CALL METHOD go_splitter_2->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = go_cell_top.
CALL METHOD go_splitter_2->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = go_cell_bottom.
Create ALV grids
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_cell_top
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT go_grid2
EXPORTING
i_parent = go_cell_bottom
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT go_grid3
EXPORTING
i_parent = go_cell_right
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD ZCL_EVENTHANDLER=>HANDLE_DOUBLE_CLICK
EXPORTING
ES_ROW_NO = ES_ROW_NO
E_COLUMN = E_COLUMN
E_ROW = E_ROW
SENDER.
Set event handler
SET HANDLER: list->handle_double_click FOR go_grid1.
SET HANDLER: list->handle_double_click FOR go_grid2.
SET HANDLER: list->handle_double_click FOR go_grid3.
Display data
CALL METHOD go_grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'KNB1'
CHANGING
it_outtab = gt_knb1
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH: gt_vbak.
CALL METHOD go_grid2->set_table_for_first_display
EXPORTING
i_structure_name = 'VBAK'
CHANGING
it_outtab = gt_vbak
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH: gt_vbap.
CALL METHOD go_grid3->set_table_for_first_display
EXPORTING
i_structure_name = 'VBAP'
CHANGING
it_outtab = gt_vbap
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Link the docking container to the target dynpro
CALL METHOD go_docking->link
EXPORTING
repid = syst-repid
dynnr = '0100'
CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
NOTE: dynpro does not contain any elements
CALL SCREEN '0100'.
Flow logic of dynpro:
*PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
*PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
END-OF-SELECTION.
*& Form CUSTOMER_SHOW_ORDERS
text
--> p1 text
<-- p2 text
FORM customer_show_orders .
define local data
DATA:
ld_row TYPE i,
ls_knb1 TYPE knb1.
CALL METHOD go_grid1->get_current_cell
IMPORTING
e_row = ld_row.
READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
CHECK ( syst-subrc = 0 ).
SELECT * FROM vbak INTO TABLE gt_vbak
WHERE kunnr = ls_knb1-kunnr.
REFRESH: gt_vbap.
ENDFORM. " CUSTOMER_SHOW_ORDERS
*& Form ORDER_SHOW_DETAILS
text
--> p1 text
<-- p2 text
FORM order_show_details .
define local data
DATA:
ld_row TYPE i,
ls_vbak TYPE vbak.
CALL METHOD go_grid1->get_current_cell
IMPORTING
e_row = ld_row.
READ TABLE gt_vbak INTO ls_vbak INDEX ld_row.
CHECK ( syst-subrc = 0 ).
SELECT * FROM vbap INTO TABLE gt_vbap
WHERE vbeln = ls_vbak-vbeln.
ENDFORM. " ORDER_SHOW_DETAILS
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'. " contains push button "ORDERS"
SET TITLEBAR 'xxx'.
Refresh display of detail ALV list
CALL METHOD go_grid2->refresh_table_display
EXPORTING
IS_STABLE =
I_SOFT_REFRESH =
EXCEPTIONS
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Refresh display of detail ALV list
CALL METHOD go_grid3->refresh_table_display
EXPORTING
IS_STABLE =
I_SOFT_REFRESH =
EXCEPTIONS
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
move sy-ucomm to gd_okcode.
CASE gd_okcode.
WHEN 'BACK' OR
'END' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
User has pushed button "Display Orders"
WHEN 'ORDERS'.
PERFORM customer_show_orders.
WHEN 'ORDERS_DET'.
PERFORM order_show_details.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
endmodule.
Regards,
Ry -
Looking for an example of class to run in database
A few years back our dba took a class I had written to run outside the database and put it inside.
I maintained it from that point on, but am unsure of all the rules.
I know about using the "default" connection, and remember that he took out all the imports and think I remember the package(s) were also removed.
I also remember that when I edited it in Eclipse it always showed errors.
I've looked at the simple examples and they are not much help.
Would like to find a more general example or a set of rules (dos and donts).
Also would like to know if JDeveloper will handle the code in context, i.e. no errors.
My project is to move the data access layer of a distributed set of apps (each in it's own JVM) on to the database so that I can fully sychronize the access.
Thanks,
Jim
Edited by: user642308 on Dec 4, 2009 4:14 AMI can help with some of the do's and don'ts but they are by no means exhaustive. One thing is is I am wondering why the imports were taken out?
The best way to do things is to compile the code into classes, then load and resolve those classes into the schema where the application will run.
You can refer the the Java Developers Guide for that.
The Java stored procedure can only access public static methods.
Do not load any jars or classes that contain methods that will call Non-JDK natives, they will fail. If the package does this then it will not run properly if called in our vm. We do not support the loading of JNI libraries because of security issues.
I don't know much about Jdeveloper but it supports development for the JVM and should handle the code correctly. It also will help with loading the classes into the database. -
Looking for hook into a mb method on page load of jsff with auto query on view criteria.
Hello,
I have a View Criteria that is set to Query Automatically (showing data to match today's date). The target table has a detail table and there is a control that shows parsed XML from the current row in the detail table into a table that I build dynamically. The main table and the detail table show the proper data on page load but the table for the parsed XML is empty. The dynamic table is bound to a managed bean where the parsing is done and data is created. I have the control refreshing properly on a row change of the main and detail tables and on a queryListener for the view criteria.
This is for a jsff page. I have been trying a bunch of approaches with no success. The detail table has a ppr to the main table and the query. I am looking some event on either the query, the main table or the detail table where I can make a call to my managed bean to parse the XML, build the table and refresh the control. I have an attribute binding to the XML data (when I placed it in a control as plane XML it refreshed properly). I only need this on initial page load or first time the tables are populated, I have the other use cases covered.
Running JDev 11.1.2.4
Thank you
Rudyok but where?
i have read a topic about "setRefreshOption", but i need a component to execute it.
i have read a topic about a false criteria (1=2), and when i want search, i remove it, but again, i need a component to execute it.
i have read a topic about ${adfFacesContext.postback == true} to write into iterator proeprty, but i haven't this view into my appmodule.
i'm really sorry, but please, can you explain me a little ?
Edited by: bradici on 8 oct. 2009 16:36 -
Looking for a formal training class for the SDK.
Is there a formal SDK class this forum would recommend? Focus is on Cloud for Customer.
Hi Michael,
yes, there is:
WDC4C3 - Cloud for Customer-Development Training | SAP Training and Certification Shop
Cheers,
Jens -
Best Practice for Updating Infotype HRP1001 via Class / Methods
I want to update an existing (custom) relationship between two positions.
For example I want
Position 1 S = '50007200'
Position 2 S = '50007202'
Relationship = 'AZCR'
effective today through 99991231
Is there a best practice or generally accepted way for doing this using classes/methods rather than RH_INSERT_INFTY ?
If so, please supply an example.
Thanks...
....MikeHi Scott
You can use a BAPI to do that.
Check the following thread:
BAPI to update characteristics in Material master?
BR
Caetano -
Listen for event in own class?
Hi
I dispatch events from models to classes listening. How do you set up an event and listener in the same class?
Eg for the former - a model "MyModel" to class - it's:
public static const MY_VAR:String = "myVar";
triggered by...
dispatchEvent(new Event(MY_VAR));
picked up in another class by...
modelVar.addEventListener(MyModel.MY_VAR, doSomething);
but what if the class that's dispatching also has the listener?
So if MyClass is dispatching the event, along the lines of...
addEventListener(MyClass.MY_VAR, doSomething);
Cheers for taking a lookVery often I'm waiting for a few key items before I can finally do something else. Setting simple flags or checking nulls can help with this.
Often I download multiple data structures (JSON/XML/etc) and I need all of them before I can parse them because the co-depend on each other. URLLoaders finish at different times so I just set a flag for what I need but check if all are complete before I continue each time one finishes.
e.g.
package
public class IHateWaiting extends EventDispatcher
public static const MY_VAR:String = "myVar";
private var _xmlA:XML;
private var _xmlB:XML;
public function IHateWaiting()
// load A
var ulA:URLLoader = new URLLoader();
ulA.addEventListener(Event.COMPLETE, _handleFinishedF);
ulA.load(new URLRequest("http://www.example.com/a.xml"));
// load B
var ulB:URLLoader = new URLLoader();
ulB.addEventListener(Event.COMPLETE, _handleFinishedF);
ulB.load(new URLRequest("http://www.example.com/b.xml"));
// listen to self
addEventListener(IHateWaiting.MY_VAR, _handleAppEventF);
private function _handleFinishedF(e:Event):void
if (e.type == Event.COMPLETE)
var data:XML = XML(e.target.data);
// A or B? any way you can tell
if (data.A.length() > 0) _xmlA = data;
else if (data.B.length() > 0) _xmlB = data;
// event method (requires extra handler or a fake event)
if (_xmlA && _xmlB) dispatchEvent(new Event(IHateWaiting.MY_VAR));
// preferred direct reference, no handler needed
// if (_xmlA && _xmlB) _parseXML();
private function _handleAppEventF(e:Event):void
if (e.type == IHateWaiting.MY_VAR) _parseXML();
private function _parseXML():void
// parse XML
I recommend the reference version from post #2. It's cleaner because you don't need to double up on functions (handler->reference) like you see above with dispatching. The only purpose for _handleAppEventF() in this case is just to run _parseXML(), which is a useless duplicate function.
I've always kept my handlers free of model-esque logic, so you see me calling a different function from that handler, _parseXML(). This is just because I want my handlers to only handle events and then hand off the work elsewhere.
Instead of dispatching the event, I agree with moccamaximum, run the method directly. Even if it's 2 lines of code to do 1 thing, I think the clarity of it is much cleaner coding. So I would recommend nuking the self-listener in the constructor above. When I have all the data I'm looking for, I'd run the methods in the class directly and If the parent needs to know, I'd dispatch when they complete.
e.g.
private function _handleFinishedF(e:Event):void
if (e.type == Event.COMPLETE)
var data:XML = XML(e.target.data);
// A or B? any way you can tell
if (data.A.length() > 0) _xmlA = data;
else if (data.B.length() > 0) _xmlB = data;
if (_xmlA && _xmlB)
// parse first (synchronous)
_parseXML();
// xml ready, dispatch to parent
dispatchEvent(new Event(IHateWaiting.MY_VAR)); -
TilePuzzle Class - Not looking for solution just how to do each method
The TilePuzzle class represents the basic functionality of the tile puzzle game. Even if there is no window or text interface available, you should be able to play the game using an instance of the TilePuzzle object in the interactions pane. All other classes are used for display purposes; to show the contents of the TilePuzzle.
This class is reponsible for performing the following operations:
1. At creation, it initializes the instance variables used to store the current state of the game.
2. When a move is specified, it checks if it is a legal move and makes the move if it is legal.
3. It reports information about the current state of the game when asked (whether the player has won the game, how many moves have been made, what the current tile layout is, etc.)
You are required to implement the following methods for this class:
Method Name Description
TilePuzzle
The constructor for this class. This constructor takes in a two-dimensional array of integers, and uses this array to initialize its internal game grid. The grid represents the tile layout: the first dimension of the input array is assumed to be the horizontal dimension of the tile layout, and the second dimension of the array is the vertical dimension of the tile layout. The top-left grid position occurs at position (0,0). For example, in a 4x4 array called grid, the value in the top-right corner would be at grid[3][0], and the bottom left value would be at grid[0][3]. The one empty space in the layout of a tile puzzle is represented in the appropriate position in the grid with the value -1. You may assume that there will only ever be one empty space (-1) in the grid.
The constructor should also set all the default values for the other instance variables used.
moveTile
After the grid has been read and stored, the moveTile method takes in a single integer value that indicates a tile to move, and moves that tile into the blank tile's position, if it is a legal move. A move is only legal if the specified number exists in the grid, and if the specified tile's position is adjacent to the blank tile's position. The method returns a boolean value to indicate whether the move was made.
hasWon
This method takes in no values, and returns a boolean value to indicate whether the current grid layout is a winning configuration or not. A winning configuration has the number 1 in the top-left corner, and increases incrementally from left to right along the row, continuing into the following rows (see illustation above). The empty space should be in the bottom-right corner of the grid.
numTileMoves This method takes in no values, and returns an integer that represents the number of tile moves performed so far. Actions that have not resulted in a tile being moved are not counted.
maxTileValue
This method takes in no values, and returns the highest value that a tile in this puzzle can have, assuming that the first tile has a value of 1 and the other tile values increase incrementally (by 1).
getGrid
This method returns a two-dimensional array of integers that represents the current grid of tile values. The first dimension of the array represents the horizontal dimension of the grid, and the second dimension of the array represents the vertical dimension of the grid. The orientation of this grid should be consistent with that of the constructor's input parameter, so see that method's description for more clarification.
equals
This method compares the contents of this TilePuzzle object to the given TilePuzzle and returns true if their tile grids match. It takes in a single TilePuzzle parameter to use in the comparison, and returns false if:
* The two tile grids have the same dimensions
* <<<<<<< index.shtml The numbers in each grid are in the same positions ======= The grids have the same dimensions, but the numbers are in different positions. >>>>>>> 1.15
toString
Returns a String that represents the current layout of the grid in String form. Each row of the grid is separated by a newline character '\n', the adjacent tiles are separated by spaces, and the blank tile is represented with an asterisk ('*') character. For example, the winning layout for a tile grid with 3 rows and 4 columns would look like the following:
"1 2 3 4
5 6 7 8
9 10 11 *"
There should be no leading or trailing spaces in each line of this String, and there should be no newline character after the final row.Please do not post in text in code tags.
Please do not post assignments, post program code, and problems. -
Need Help with command line arguments for a class method
Hey guys,
I'm fairly new to programming in java.
I want to a write a class method that adds up its command line arguments which are numbers. For example, if the input was .... 5 2 3....then the output would be 10.
I have been told to use the Convert to convert a string to a double. I'm ok for writing the class method but I have no idea how to use Convert and why I need it in the method.
Can anybody help please?Hey guys,
I'm fairly new to programming in java.
I want to a write a class method that adds up its
command line arguments which are numbers. For
example, if the input was .... 5 2 3....then the
output would be 10.Okay. So you would receive the numbers to add as the String[] argument to a main method. The steps are simple:
1) declare a variable for the count
2) for each String in the array:
2.1) extract the value as a double
2.2) add this to the count
3) output the resulting count
I have been told to use the Convert to convert a
string to a double.
I'm ok for writing the class
method but I have no idea how to use ConvertThere is no class Convert in the Java API.
and why
I need it in the method. Do you understand you need to somehow convert each String to a double (step 2.1)? Since Convert is unknown to me, maybe you should just take a look at class Double. It can help you do step 2.1, the rest should be trivial enough.
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Double.html
Give it a go and feel free to post back with a specific problem you are having, accurately described if you please :-) -
Looking for a good method or APP to have client sign a form in a text box
I am looking for a good method or App to take an existing form/Document and have a client sign, date etc. I will want to create the text boxes in a stationary location. Possibly to also take a picture to add to form.
Has anyone used any apps to accomplish this?
Apps I have tried.
Signnow
Sign PDF
Sign Easy
Sign Easy is about the best except the signatures (text boxes, dates, etc) are free floating and confuse people where to add them on form each time. Clients have no clue how to use it.
Any suggestions would be helpful. I may be over complicating this also, as there could just be a PDF app that I utilize.
Thanks,
JimMaybe more than you need...
PDF readers
PDF Expert – the PDF handling app for the iPad. "It allows you to markup documents with highlights and handwriting, insert text and stamps, sign and even merge PDFs."
https://itunes.apple.com/us/app/pdf-expert-5-fill-forms-annotate/id743974925?mt= 8
iAnnotate – turns your tablet into a world-class productivity tool for reading, marking up, and sharing PDFs, Word documents, PowerPoint files, and images. Has a secure document edition designed for corporations.
http://www.branchfire.com/iannotate/ -
A function module or class/method to look up repository objects?
Hi,
Does anyone know of a class/method or a function module that returns back objects of a namespace in the integration repository.
For example, I would like to be able to retrieve all the message interfaces of a particular namespace.
Thanks in advance,
DukeHi Duke,
I am not sure about the function module. But you can look up all the objects with their IDs using transaction sxi_cache.
Regards,
Ramesh P -
Looking for information about AS3 sound classes in "audio" wrong places?
I'm looking for in depth information about ActionScript 3.0 sound classes. No matter where I search I continually encounter the same sort of kindergarten level descriptions, which never teach more than what we can readily glean from Adobe's documentation. Someone must know where there a discussion that really gets to the heart of the matter.
I've read Adobe's LiveDocs on the Sound, SoundChannel, SoundMixer, SoundTransform classes. Indeed, they provided me enough guidance to create my own streaming MP3 player, with volume, pan, my own custom mono mix, http request, a preloading animation, and peak meters ...
Here's an example (in the last statement of the following code) where I understand the end effect, but I fail to comprehend what happens at the compiler level:
var currentSoundSource:Sound = new Sound();
currentSoundSource.load(new URLRequest("http://www.mySite.com/myRecording.mp3"));
var audioChannel_01:SoundChannel = new SoundChannel();
audioChannel_01 = currentSoundSource.play();
Unfortunately the class definitions in LiveDocs are quite terse, and they're seemingly incomplete with respect to:
• advice on best practices
• a thorough coverage of class to class interactivity
• a description of exactly how audio streams/plays into channels
... and in certain cases it appears that Adobe's descriptions are not fully accurate.*
Regarding best practices, at first blush I'm sure everyone ponders over the fact that SoundChannel and SoundMixer have a stop method while the Sound class does not.
One assumes that this surprising design must bear some advantages. If so, what are they? Where are the analog sound mixer analogies? What would be the disadvantage of a sound class with a stop method ... particularly when they have their own play method?
Where are the discussion of these concepts? (Even if Adobe hired the wrong guy to write its sound classes, there should be some follow through that thoroughly explains the existing situation.)
Phrankie
* Here's an instance where the docs appear to be partially in error. (Is "and play" mistakenly included in the following?)
"The Sound class lets you lets you create a new Sound object [and] load and play an external MP3 file into that object."
... uh, mmmmmm ... we play an MP3 into a sound class object?
Wouldn't it be more accurate to say the following:
A soundChannel can receive the audio data from a sound class object. We can play a sound object into an SoundChannel and manipulate it by altering the SoundChannel's soundTransform property, and we can stop it with the SoundChannel's stop method.check everything you can find written by tinic uro. this will get you started: http://www.kaourantin.net/
-
Applet is not looking for the classes in the jar
I have an applet that uses 2 jar files (Jasplet.jar and WinLS.jar). They are downloaded fine, but then java look for the classes in a URL instead of using the jar:
network: Cache entry found [url: http://localhost:8000/reportes/Jasplet.jar, version: null]
network: Connecting http://localhost:8000/reportes/Jasplet.jar with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/Jasplet.jar with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: ResponseCode for http://localhost:8000/reportes/Jasplet.jar : 304
network: Encoding for http://localhost:8000/reportes/Jasplet.jar : null
network: Disconnect connection to http://localhost:8000/reportes/Jasplet.jar
security: Loading Root CA certificates from /usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/security/cacerts
security: Loaded Root CA certificates from /usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/security/cacerts
security: Loading Deployment certificates from /home/santiago/.java/deployment/security/trusted.certs
security: Loaded Deployment certificates from /home/santiago/.java/deployment/security/trusted.certs
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: The CRL support is disabled
security: The OCSP support is disabled
security: No timestamping info available
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
network: Cache entry found [url: http://localhost:8000/reportes/lib/WinLS.jar, version: null]
network: Connecting http://localhost:8000/reportes/lib/WinLS.jar with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/lib/WinLS.jar with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: ResponseCode for http://localhost:8000/reportes/lib/WinLS.jar : 304
network: Encoding for http://localhost:8000/reportes/lib/WinLS.jar : null
network: Disconnect connection to http://localhost:8000/reportes/lib/WinLS.jar
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: The CRL support is disabled
security: The OCSP support is disabled
security: No timestamping info available
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/engine.class, version: null]
network: Connecting http://localhost:8000/reportes/winls/resource/engine.class with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/winls/resource/engine.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/engine_en.class, version: null]
network: Connecting http://localhost:8000/reportes/winls/resource/engine_en.class with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/winls/resource/engine_en.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/engine_en.properties, version: null]
network: Connecting http://localhost:8000/reportes/winls/resource/engine_en.properties with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/winls/resource/engine_en.properties with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/engine_en_US.class, version: null]
network: Connecting http://localhost:8000/reportes/winls/resource/engine_en_US.class with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/winls/resource/engine_en_US.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Connecting socket://localhost:5432 with proxy=DIRECT
select relname,attname,typname,atttypmod-4 as length from pg_class c , pg_attribute a ,pg_type t where c.oid=a.attrelid and a.atttypid=t.oid and (typname='varchar' or typname='bpchar') and relkind='r' and substring(relname from 1 for 4)!='sql_' and substring(relname from 1 for 3)!='pg_'
network: Connecting socket://localhost:5432 with proxy=DIRECT
Oct 22, 2008 11:52:20 AM winls.dbdata.DataEmployee getEmployee():505
INFO: Connected to:jdbc:postgresql://localhost:5432/wmc
Oct 22, 2008 11:52:20 AM winls.dbdata.DataEmployee getEmployee():505
INFO: Connected to:jdbc:postgresql://localhost:5432/wmc
select * from employees where empusername = 'jw1' and emppassword = 'YW5jeA=='
network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/resource.class, version: null]
network: Connecting http://localhost:8000/reportes/winls/resource/resource.class with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/winls/resource/resource.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/resource_en.class, version: null]
network: Connecting http://localhost:8000/reportes/winls/resource/resource_en.class with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/winls/resource/resource_en.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/resource_en.properties, version: null]
network: Connecting http://localhost:8000/reportes/winls/resource/resource_en.properties with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/winls/resource/resource_en.properties with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/resource_en_US.class, version: null]
network: Connecting http://localhost:8000/reportes/winls/resource/resource_en_US.class with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/winls/resource/resource_en_US.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Connecting socket://localhost:5432 with proxy=DIRECT
LISTEN companyPostDate
network: Cache entry not found [url: http://localhost:8000/reportes/org/postgresql/errors.class, version: null]
java.lang.NullPointerException
at winls.gui.WinLSFrame.loadCompany(WinLSFrame.java:365)
at winls.gui.WinLSFrame.<init>(WinLSFrame.java:250)
at winls.gui.WinLSDesktop$2.run(WinLSDesktop.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at spin.Invocation.evaluate(Invocation.java:122)
at spin.off.OffInvocation.spin(OffInvocation.java:78)
at spin.Invocation.start(Invocation.java:100)
at spin.Interceptor.intercept(Interceptor.java:52)
at spin.Spin$AbstractInvocationHandler.invoke(Spin.java:411)
at $Proxy1.run(Unknown Source)
at winls.gui.WinLSDesktop.<init>(WinLSDesktop.java:137)
at jasplet.Main.init(Main.java:38)
at sun.applet.AppletPanel.run(AppletPanel.java:425)
at java.lang.Thread.run(Thread.java:619)
basic: Exception: java.lang.NullPointerException
network: Connecting http://localhost:8000/reportes/org/postgresql/errors.class with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/org/postgresql/errors.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Cache entry not found [url: http://localhost:8000/reportes/org/postgresql/errors_en.class, version: null]
network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en.class with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Cache entry not found [url: http://localhost:8000/reportes/org/postgresql/errors_en.properties, version: null]
network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en.properties with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en.properties with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Cache entry not found [url: http://localhost:8000/reportes/org/postgresql/errors_en_US.class, version: null]
network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en_US.class with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en_US.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Cache entry not found [url: http://localhost:8000/reportes/org/postgresql/errors_en_US.properties, version: null]
network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en_US.properties with proxy=DIRECT
network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en_US.properties with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
network: Connecting socket://localhost:5432 with proxy=DIRECTThe lines like network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/engine.class, version: null] are the ones that seems to cause the problem.
I have tried to clear the cache. I even deleted mi ~/.java/deployment directory. Any idea of what could be the problem?Your applet appears to be asking for https:// protocol security.
Is there a certificate should be in your localhost server and https enabled and supported
(the applet continually asks for "https protocol" types of information and your using standard http)?
Other protocols for such use are ssl:// and tls://
Dependent the server configuration you may or may not require the port number on the end of the domain
e.g. something like.
ssl://mydomain.com:443 or https://mydomain.com:8080 or tls://mydomain.com:989
And be sure there program if its an extra such as ssl:// has its service started.
Edited by: nicephotog on Oct 28, 2008 4:09 AM -
FM/Class method for address maintenance?
Hi All
Does anyone know of the new function modules/class methods to be used for
the address maintenance of business partner/customer?
I have been using 'ADDRESS_MAINTAIN_NEW' from the function group 'SAD0' but
this has since become obsolete.(ERP 2007)
I tried using 'ADDR_DIALOG' from SZA1 Function group but it always searches from table 'ADRC' because it looks like the table name is hardcoded inside the FM!
The table which the address in my case is 'SADR'.
Do give suggestions if you know something about this.
Thanks
SahirHi Sahir ,
check <b>ADDRESS_MAINTAIN / INSERT</b>.
or search for all FMs for SADR-ADRNR there u will get the List
Regards
Prabhu -
"I am looking for LabVIEW instrument drivers for a PTS 160 Frequency Synthesizer
looking for instrument driver for PTS 160 Frequency Synthesizer
"Unfortunately I was unable to find a driver for this instrument at http://ni.com/idnet. This leaves you with one of a couple options. It may be possible to modify an existing driver to work with this instrument. Otherwise, http://www.ni.com/devzone/idnet/other. htm states a few options to obtaining a driver. NI only writes drivers for standalone instruments in the eight IVI classes(DMMs, Scopes, Function Generators, Switches, Power Supplies, Power Meters, RF Signal Generators, and Spectral analyzers) that communicate via GPIB, Serial, or TCP/IP, so a driver cannot be written for your instrument. It would also be beneficial to notify the instrument manufacturer, they often have drivers for multiple programming languages. If they do not, you may want to hire an
Alliance Member to write an driver for you.
Alliance Member Directory
http://www.ni.com/alliance/ alliance_member.htm"
Maybe you are looking for
-
"Connect to iTunes to use push notifications" That's the popup I'm getting.
-
HT204266 How to select non payment option in App Store
Need help in selection of non payment option in billing for App Store
-
Different Modules from BW point of View
Hi Experts, I am new learner please let me know the important information and concepts of different modules like SD,MM,FI Etc from the perspective of BW. What should I learn from these modules which is releated to BW. If some one asks me about these
-
8.0.2 update completed but new options not showing up
I've downloaded the Mac 8.0.2 update and successfully installed it but the changes don't seem to be taking effect. When trying to convert my pages with Flash content I'm not able to access any options to do so. They don't appear, as if I hadn't insta
-
How do I set up my Message center no on my latest ...
Please help to set up to My Latest N91 with Message Center no feeded in the same.