Set cursor style
Hi,
Using Oracle9iDS Form, How to set the cursor style when mouse on the button?
I want to set cursor style = HAND when mouse on the button and set cursor style = DEFAULT when mouse leave the button.
I'm tried to used trigger WHEN-MOUSE-MOVE and WHEN-MOUSE-LEAVE but not work.
Regards,
Ken
those trigger aren't allowed since forms 9i / 10g. You have to use PJC's for this case.
Have a look in the code-examples on OTN for forms. There are several examples for new items with new features. Maybe you only have to create a item and deploy it at PJC in your application.
Try it
Gerd
Similar Messages
-
Cursor style doesn't work on web forms
Hi All,
I have a FORM (6i) from which I run the report by clicking a button .
I used to set_application_property to set cursor style to BUSY untill I get report output . It works in client/server but doesn't work in Web .
Can I set this in any other way or is there any way we can show a progress bar in web FORMS without using ActiveX ? .
Thanks in Advance,
SampathHi Duncan,
Thank you for your update . I didn't get "try a call to synchronize "
in your note did you want me to run the report in Synchronous mode ?
Thanks,
Sampath
Cursor Style does work on the Web (at least in 6i, there was an old bug in 4.5) - you shouldn't have to but try a call to synchronize after the set_application_property call. -
Cursor style setting... Urgent please help...
Hi,
I'll have to set the cursor style to a wait_cursor on click on a toolbar button which would open a dialog. The dialog takes sometime to open as it has to fetch data from the database and display. Here is the code snippet which I have..
// get the main frame and set the cursor style to waitcursor.
getApplicationFrame().setCursor(new Cursor(Cursor.WAIT_CURSOR));
// Fetch datafrom the database.
// display information in the dialog and show dialog..
// reset the cursor style to Default.
getApplicationFrame().setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
The above code doesn't seem to work. Can anyone let me know the reason why..
Thanks in advance..
VenkyHere's the methods I use to do that:
public static void setWaitCursor() {
owner.setCursor(new Cursor(Cursor.WAIT_CURSOR));
public static void setNoWaitCursor() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
owner.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); -
hello,
i'm pretty much a noob at scripting. i'd like to automate applying paragraph styles to a document with reviews.
basically, i want to place the cursor in a paragraph (manually), and have a script do the following: set paragraph style 5, go to the next paragraph, set paragraph style 1, go to the next paragraph, set paragraph style 2, go to the next paragraph, set paragraph style 3.
help?
(i specified AS as i think i might understand it, but JS probably works as well)Assuming you set the relationship of one style to the next using the 'Next Style' definition in the paragraph styles, then the following should do the trick (assuming you have your cursor in the first paragraph).
> // Follows next paragraph style setting until Same Style or No Paragraph Style
>// Get the current pagaraph based on user cursor location
var myCurrentParagraph = app.documents[0].selection[0].paragraphs[0];
do
] // Currently applied paragraph style
var myCurrentParagraphStyle = myCurrentParagraph.appliedParagraphStyle;
] // Next Style for current paragraph style
var myNextParagraphStyle = myCurrentParagraph.appliedParagraphStyle.nextStyle;
] // Check current style and next style are not the same or No Paragraph Style
if (myCurrentParagraphStyle == myNextParagraphStyle
|| myNextParagraphStyle == app.documents[0].paragraphStyles.item("[No Paragraph Style]") ) {
]] exit(); }
] // Get next paragraph in chain
var myNextParagraph = myCurrentParagraph.insertionPoints[-1].paragraphs[0];
] // If we are end of story then stop
if (myNextParagraph == myCurrentParagraph) { exit(); }
] // Apply next style to next paragraph
myNextParagraph.appliedParagraphStyle = myNextParagraphStyle;
] // Restart the process
myCurrentParagraph = myNextParagraph;
>while (true)
Note that the process will end when the Next Style setting of one paragraphs is Same Style or when the Next Style is No Paragraph Style. There would be other ways to end the process, such as limiting it to a certain number of steps if the number of steps was always the same. Let me know. -
Cursor Style, Forms Web Implementation 6.0
I am using the Forms server 6.0 with static HTML to display
forms over Intranet. The cursor styles through SET APPLICATION
PROPERTY builtin does not seem to change the cursor in the
browser. (Works fine when I test the form in Client/Server
environment.) Tried it with both IE 4.0 and NetScape 4.5. I did
not see in Developer 6.0 documentation that Cursor Style is not
available in Web implementation.
Has anyone used cursor styles successfully with Developer 6.0 in
static Web Implementation?
Thanks,
Amir
nullCherif,
please ask Oracle customer support for this.
thanks
Frank -
How to set multiple styles on a single component in flex ?
Hi ,
I would like to know how to set multiple styles on a single component in flex.
Can anyone give me an example as to how to set multiple styles for a single component ?
Thanks ,
Regards,
AjanthaHi tuliptaurus,
You can setStyleName property for chnaging the external css dynamically by using the setStyle() method ...
btn.setStyle("styleName","blendButtonSkinOther");
You can change the external css by using the styleaName property with setStyle method..the line in blue..where blendButtonSkinOther is another css class..
blendButtonSkin {
fontFamily: Arial;
fontSize: 11;
color: #F1F1F1;
textRollOverColor: #F1F1F1;
textSelectedColor: #F1F1F1;
horizontal-align:center;
width:150;
height:30;
cornerRadius:5;
upSkin:ClassReference('assets.skins.BlendButtonSkin');
downSkin:ClassReference('assets.skins.BlendButtonSkin');
overSkin:ClassReference('assets.skins.BlendButtonSkin');
disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
blendButtonSkinOther {
fontFamily: Arial;
fontSize: 11;
color: #F1F1F1;
textRollOverColor: #F1F1F1;
textSelectedColor: #F1F1F1;
horizontal-align:center;
width:150;
height:30;
cornerRadius:5;
upSkin:ClassReference('assets.skins.BlendButtonSkin');
downSkin:ClassReference('assets.skins.BlendButtonSkin');
overSkin:ClassReference('assets.skins.BlendButtonSkin');
disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
Thanks,
Bhasker Chari -
Set cursor in a specific view of transaction MM01/MM02
Hi,
We have to check a condition in the user-exit EXIT_SAPLMGMU_001, for transaction MM01/MM02, and if the condition fails the client wants to set the cursor in a specific field from a specific view. Is it possible? I tried to use the sentence SET CURSOR referenced to a remote program but it doesn't work.
Does anybody knows how to solve this problem?
Thanks in advance
Regards
MaribelHi
I hope, you have read the documetation attached with this Standard Enhancement - MGA00001.
EXIT_SAPLMGMU_001
Where Is the Customer Exit - EXIT_SAPLMGMU_001 called?
The customer exit is in function module MATERIAL_UPDATE_ALL. The
function module checks the data for errors (logical relationships,
foreign keys, fixed domain values, and so on) when the material master
is updated.
Use
o New fields
You can make checks possible for new fields of your own. These
checks must be identical to the checks that you carry out for your
new fields in online maintenance.
o Existing fields
For existing fields, you can extend and intensify the checks.
You can also change data for descriptions and general material data
(MARA). For example, the descriptions can be generated from attributes
of the material.
Limitations
You cannot bypass existing checks.
Interface to Application
The respective data of the current logical transaction is contained in
the structures, for example, in structure WMARA for MARA. Nonrelevant
structures are transferred with their initial values.
General material data that can be changed (CMARA) has the structure
MARU. This MARA view contains fewer internal fields than MARA itself. If
WMARA is filled, CMARA is also filled when accessed.
The customer exit contains the exception APPLICATION_ERROR for your
self-defined error situations.
Using the language element MESSAGE .. RAISING APPLICATION_ERROR, you can
terminate the current (logical) transaction and display your message in
the log.
Also, I guess, have you put some code in the Includes available with the EXITS and then activated the Project in CMOD.
<b>Reward points</b>
Regards -
Set cursor in Control String component
Hello:
I would like to set cursor in "Control String" automatically when I open my VI. If I open my VI, cursor should be seen automatically in the text field of "Control String". The user hasn`t set cursor by mouse into this field. Has anybody an idea how can I do?
Thanks!Create a property node for the control on your block diagram and set the Key Focus property value to TRUE.
http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/ctrl_key_focus/
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness -
Make sure both attached files (Run LabVIEW_Cursor_TestCase.vi, SimpleVI.vi) are in the same folder. Run LabVIEW_Cursor_TestCase.vi notice that the -3 error code is returned from "Set Cursor.vi" after it has been called with 30 different panel refs. If "Set Cursor.vi" is replaced with "Set Busy.vi" the same error occurs.Is there a workaround for this problem other that setting the cursor image manually in user32.dll? I must be able to open more than 30 panels and set them all to busy. In the test case I used a single VI, simply to demonstrate the error.
Message Edited by Jerred on 05-04-2007 10:06 AM
Attachments:
LabVIEW_Cursor_TestCase.vi 68 KB
SimpleVI.vi 13 KBThis bug is fixed in LabVIEW 8.0 and later. Unfortunately, I know of no workaround in LabVIEW 7.x. When I encountered this bug in one of my UIs in LabVIEW 7.x, my "fix" was simply to ignore the error outputs from the cursor VIs, and to live with the fact that I had no custom cursors after 30 windows had been opened.
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
How do I set cursor.index to anywhere in the graph array?
I am using LV 8.5.1 and feeding an XY graph with an X-Y array of data. Only a section of the array is displayed on the graph. I have a cursor (single-plot).
I would like to set Cursor.Index property node of the cursor associated with the plot to the maximum index value of the graphed array regardless of the XScale range. I don't seem to be able to do it. I cannot set it beyond a certain number. When I rescale the graph I have a new maximum number. Is this what should happen?
To get around this, I am momentarily setting the XScale.ScaleFit property to 1, which then allows me to set Cursor.Index to maximum (I then immediately reduce my scale range appropriately). I am having to do this before every occurrence of setting the Cursor.Index in case the new setting exceeds the currently allowed maximum value. Just seems a bit clunky.
Thanks for any help.This is no longer a problem. My data is too big to feasibly be fed into a graph so am having to chop it up and use my own index pointer.
-
How to set cursor in table control?
I have a table control (Screen 300) to display invoice number and amount. For some checks we have around 200 invoices to be displayed. When user enters the invoice number in invoice text box and click on OK, it should highlight the invoice number and amount row or set the cursor position.
I have another problem.
Screen 300 is being called from Screen 200. When the user clicks on OK in 300, 300 is getting closed. Acutally it should be displayed with Cusor position or highlighted row.
I appreaciate your help ... ThanksI believe that you can use the SET CURSOR statement to do the first part of your requirement. Something like this should work:
SET CURSOR FIELD w_field LINE w_line.
Here's the info from SAP help:
Effect
: The cursor is positioned on the screen element whose name is contained in upper case in field. The data object field must be character-type and flat. The screen layout or a table control is scrolled in the display so that the screen element on which the cursor is positioned is visible. If the specified screen element is not found, the statement is ignored.
If the specified screen element is part of a table control or a step loop, the line of the table control or group of the step loop in which the cursor is positioned on the specified screen element must be specified using the addition LINE. For the data object line, the type i is expected. If there is no line or group for the value of line, or the addition LINE is not specified, the statement is ignored. The statement is also ignored if the addition LINE is specified and the screen element is not part of a table control or step loop.
I hope this helps.
- April King -
Set cursor alv grid (not using objects)
I got a question on ALV GRID (not using objects), please let me know if you have pointers. Thanks.
Output has 2 screens both has different contents. The output is generated using internal table1 and 2 and using FM 'REUSE_ALV_GRID_DISPLAY_LVC' (both screen use same FM).
First screen has multiple pages of output (say 10 pages). User scrolled page 5 and line 10 of first screen and then double clicked it takes to screen #2. After completion of screen #2, the back arrow should get back to page 5 and line 10 of screen #1. Currently the back arrow gets to screen#1 page 1 and line 1. How to remember the cursor position in alv grid and instruct the cursor to go there?
Appreciate the input.
Note: I tried "set cursor line n" with "Scroll" command but no luck. http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba47e35c111d1829f0000e829fbfe/content.htmThanks for the inputs.
FYI, I got it implemented using method CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->set_current_cell_via_id
The method is called by 'REUSE_ALV_GRID_DISPLAY_LVC' form 'PF_STATUS_SET' when the ALV grid output is presented each time.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_bypassing_buffer = 'X'
i_callback_program = gc_repid
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = 'USER_COMMAND'
is_layout_lvc = lwa_layout
it_fieldcat_lvc = git_fc_lvc
i_default = ' '
TABLES
t_outtab = git_data
EXCEPTIONS
program_error = 1
OTHERS = 2.
FORM alv_event_pf_status_set USING rt_extab
TYPE slis_t_extab.
DATA lo_ref1 TYPE REF TO cl_gui_alv_grid.
*Get the reference to class "lo_ref1" for the ALV report
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = lo_ref1.
*set the focus of cursor in ALV
CALL METHOD lo_ref1->set_current_cell_via_id
EXPORTING
is_row_no = gv_row. "row number where you want to focus the cursor
ENDFORM. -
I can't find the style property in my object inspector(Delphi). With style, I want to set the graphic type. For example: simple, bar or multicolor. In the help from the CWGraph object I can not find anything about it. I have solved the problem now by exporting the desired graph and then import it if I create a new object Dynamicly. Does anyone have an answer?
You set the style for each individual CWPlot, not the graph itself. Each plot can have its own style, the graph style sheet is just there for quick changes of common plot styles. You would change the LineStyle, PointStyle, Colors, etc of each plot to do this programmatically. For example, to pick a bar style for a plot you would:
CWGraph1.Plots(1).LineStyle = cwLineStepXY
CWGraph1.Plots(1).FillToBase = True
CWGraph1.Plots(1).PointStyle = cwPointNone
This would create a plot that steps and is filled to base with no points shown (bars). If you want to see how the graph styles change the plots, pick a graph style in the property pages, then look at the plot page and see how the plot properties changed.
Best Regards,
Chris Matthews
Measurement Studio Suppo
rt Manager -
How to set cursor in perticular field Table Maintence generator?
Hi
All
I have created a table with 2 fields Start_date and End_date. Now my requirement is i have to validate the both date field as Start_Date must be LESS than or EQUAL to End_Date. In table maintenance maintenance generator i have created a event VALIDATE_DATE in event 21. Its validating perfectly. The issue is after the ERROR message the Cursor is going to the key field. I want to set the cursor at End_Date field.
I used
data:ly_pos type i.
IF NOT start_date LE end_date.
SET CURSOR FIELD 'TABLE_NAME-END_DATE' LINE sy-linno OFFSET lv_pos.
MESSAGE exxx(MsgClass).
ENDIF.
Its working for the FIRST time i am entering the new data. Next time the cursor going to the KEY field. I have been asked not to write code in SE80. Anyhow i have to set the cursor in table maintenance maintenance generator event.
Can anybody help?Hi Sourav,
Please follow the below method:
Go to Maintainance Screen (where you want the cursor setting). Goto Status - > Remember the screen name -> Double click on Program name.. Open Object list and expant Screen Tree -> double click on the same screen Number -> Go to its first tab attributs -> Change Mode -> Do F4 on Cursor Position field -> Choose the field where you want the cursor.
But this way will always set the cursor at the HardCoded Field Name.
Thanks,
Preyansh -
Set cursor on error field in selection screen
Hi ALL,
How to place the cursor on a particular selection screen field?I am doing validation if validation fails for a particular field the program should give error mesg and the cursor should place on the error field only but it's going to the Ist field on the selection can somebody tell me how do this? I tried with set cursor field <fieldname) but not working I am doing validations on at-selection screen.
Thanks&Regard
maheshHi chandrasekhar find my code below
this code i am writing under at selection-screen.
*& Form Z_VALIDATE_TVKOV
FORM z_validate_tvkov .
DATA: i_vtweg LIKE vbak-vtweg.
IF NOT s_vtweg-low IS INITIAL.
SELECT SINGLE vtweg FROM tvkov INTO i_vtweg
WHERE vtweg = s_vtweg-low.
IF sy-subrc <> 0.
set cursor FIELD 'S_VTWEG-LOW'.
MESSAGE e000(z_sd) WITH text-052.
ENDIF.
ENDIF.
IF NOT s_vtweg-high IS INITIAL.
SELECT SINGLE vtweg FROM tvkov INTO i_vtweg
WHERE vtweg = s_vtweg-high.
IF sy-subrc <> 0.
MESSAGE e000(z_sd) WITH text-052.
ENDIF.
ENDIF.
ENDFORM. " Z_VALIDATE_TVKOV
Maybe you are looking for
-
Using External JARs in a Web Dynpro Project
Hi, I'm having some difficulties building and deploying a Web Dynpro application that uses the Apache JaxMe libraries. We're using SP11 of Developer Studio and WebAS and we're using JDI Scenario 2+ for building and deployment. Thus far here's the p
-
How do you apply 2 different types of page numbers in the same document?
How do one apply 2 different types of page numbers in the same document??? I do not want a number on the first page!
-
Rendering...Can anyone help???
I have 2 classes for rendering images. When i run the application, the images kept flashing, may i know how could i actually have 1 image appearing instead of many images flashing? In other words, i would like in a way similar to mosaic rendering pro
-
User Registration Process: Task Assingment for a Self-Request User
Hi guys, Doubt: In the User Registration Process Can I configure the Target User's Manager as the Assignee of the Awaiting Approval Data? I understood that I can do that because the user has not been created yet. Does it make sense? I need to send th
-
Photosmart eStn C510a Zeen won't stay connected to network long enough to update software
My network connection to my printer works fine; but the zeen connection is intermittent. And will not stay connected long enough to download the software update that it shows is available. Sure wish I could use the USB port on the zeen to accomplis