:SYSTEM.CURSOR_BLOCK command ?

I have two forms: Form A and Form B.
I have three different data blocks on a form B. When I click on a push button, I simply want to determine where the user's cursor is. I thought I could use :SYSTEM.CURSOR_BLOCK to determine which is the active block on Form B, but it shows the data block from Form A, which is hidden behind the current form.
How do I use the command properly ?
Thanks,
Bob

Hi Bob,
Maybe your push button is located in a block in form A.
Try putting the :SYSTEM.CURSOR_BLOCK in a global variable
in the post-block trigger (E.g. GLOBAL.cBLK_in_use := :SYSTEM.CURSOR_BLOCK;)
Then at your push button's when-mouse-click trigger you can check for the value of the global variable.
"     Use a Post-Block trigger to validate the block's current record; that is, the record that had input focus when the Leave the Block event occurred.
Copyright (c) 1994, Oracle Corporation."
Regards.

Similar Messages

  • Use system.cursor_block in default_where of set_block_property

    Dear All.
    I have got a control_block with Search&update button.I have got 3 database blocks.I wish to use above button for searching all the blocks by dymanically passing the block name using system.cursor_block:
    go_block('SYSTEM.CURSOR_BLOCK');
    set_block_property('SYSTEM.CURSOR_BLOCK',default_where,'CONTROL_NO='||:SYSTEM.CURSOR_BLOCk.CONTROL_NO);
    execute_query;
    set_block_property('SYSTEM.CURSOR_BLOCK',default_where,'');
    above code is giving error at :syste..cursor_block.control_no.
    Plz. help me how to do this.
    Thanks in advance.
    Mani

    try this statement
    go_block(:system.cursor_block);
    set_block_property(:system.cursor_block,etc etc);
    execute_query;
    set_block_property(:system.cursor_block,default_where,'');
    Hope it helps you,
    Fabrizio

  • "System Exec" command in NT / W95 How to use?

    Hi LVers,
    I can start the shell with the System Exec command with LV, but how can I put
    additional (batch) commandos into it?
    I already tried:
    - piping "cmd < dir"
    - batch files "mybatch.bat"
    Where are the differencies btw. NT and W95
    thanks
    tom

    I am not sure that I understand what you are trying to do.
    Anyway, in LVWUtil32.zip you can find some VIs that improve the use of System Exec[http://digital.ni.com/public.nsf/3efedde4322f​ef19862567740067f3cc/824b3db43031317686256aaf00713​218/$FILE/LVWUtil32.zip]. As far as I remember you have some good documentation inside.
    Also, you can use a KeyGenerator [http://hamiltondesign-consulting.com/ftpfiles/Sen​dKey.zip] to send commands to a shell window (via keystrokes).
    Hope this helps

  • :system.cursor_block value does not change when mouse click

    Form created with Forms version 6.0.8.8.0. Consists of a control block that has the toolbar buttons, a filter control block that contains item, and a data block. The filter control block and data block are on a tabbed canvas. There are 3 tabs with corresponding filter control block and data block on each.After the data block is queried, code sets the navigation to the control block with the go_item built-in. The user would use a mouse click on the filter control block on one of the tabs to activate an LOV, code is in a generic when-mouse-click trigger that will determine the item focus with the value in the system variable :system.cursor_block. Works for the first tab. Does not work for 2nd or 3rd tab. On-error trigger does not capture any error. Values for :system.cursor_block for tab 1 show that value before mouse click is 'control.detail' and after mouse click is 'filter.a'. For tabs 2 and 3 the value before mouse lick is 'control.detail' and after mouse click is 'control.detail' instead of 'fiter.b' or 'filter.c'. Verified that the 3 filter blocks are identical. Can anyone shed some light on this anomoly? I have been looking for this solution (many different iterations and changes to trap it) for too long.

    :System.Cursor_Block reports the name of a block, NOT a BlockName.ItemName.
    Use :System.Trigger_Item with your mouse click, or :System.Cursor_Item.

  • HIde Menu,System and Command Promt from transaction ivew

    Hi,
    Our client has implemented SAP HR module, year back.
    Now they are implementing ESS and they have done some developments for CLAIMS in R/3 earlier. Now they want to see those claims in portal. For that we have created transactional iview. Its coming fine in portal. But the only problem is that, its displaying sap standard menu. i.e menu, system and command promt in portal. Now my concern is how to hide these things ???
    Useful Answer's will rewarded.

    Put these parameters
    ~noHeaderOkCode = 1
    ~webTransactionType = EWT.
    in transaction sicf
    ->sap->bc->gui->sap->its-> Webgui
    push button gui configuration and set the parameters
    check with se93 if transaction is web enabled
    regards

  • How to Run the NEW "System Info Command" in Tiger ?????

    I am new to Applescript and was wondering if someone could help me on how to run the new "System Info Command"?
    Thanks!!!

    The "system info" command that red_menace uses above is the new system info command that's mentioned on the web page you referenced. However, red's example only displays the "long user name" and the "AppleScript version" in the dialog.
    The entire system info record actually contains all of these items, each of which you can access just like red_menace shows you in his example:
    AppleScript version
    AppleScript Studio version
    system version
    short user name
    long user name
    user ID
    user locale
    home directory
    boot volume
    computer name
    host name
    IPv4 address
    primary Ethernet address
    CPU type
    CPU speed
    physical memory
    Steve
    PS - if you switch Script Editor over so the bottom pane displays the "Event Log" you'll see the entire system info record displayed in the log when you run red_menace's script.

  • CALL 'SYSTEM' ID 'COMMAND'

    hi:
    constants:comm(90) value 'sh /usr/rvs/export/TNT2K7F/script/FRC12K7F.sh'.
      call 'SYSTEM' id 'COMMAND' field comm.
    can you tell me the  role of the sentence ,ths
    regards
    sophia

    Hi,
    'sh /usr/rvs/export/TNT2K7F/script/FRC12K7F.sh' is a unix command to run a unix script, and normally you would have to log on to the operating system to run this.
    call 'SYSTEM' id 'COMMAND' field comm calls this command from ABAP, meaning your SAP user can run a report which also runs the unix script.
    Regards,
    Nick

  • Call 'SYSTEM' id 'COMMAND' field w_runstring

    Hi All,
    This system command is throwing error , filling sy-subrc with value 1-.
    Can anyone tell why?
    Thanks,
    Shaily

    Was the file actually moved?  In certain releases Call 'SYSTEM' id 'COMMAND' .... returns -1 even though the command was issued successfully.
    If you want to apply error handling take a look at SAP note 677435 which explains the supported methods for calling o/s commands.  As Call 'system'... is not actually supported it can do unpredictable things.
    Regards,
    Nick

  • CALL 'SYSTEM' ID 'COMMAND'  cannot be used

    Hello,
    We were just told that with the latest kernal we are going to apply, we can no longer use the following command:
    CALL 'SYSTEM' ID 'COMMAND' FIELD CMD(250)
    We are thinking of using this function to replace it:
    CALL FUNCTION 'SXPG_CALL_SYSTEM'
    Does anyone have any other suggestions on other options we might have?
    Thanks!

    Bill,
    We are using function module SXPG_CALL_SYSTEM in our 4.7 system and it works fine.

  • System Specific Commands

    Hi there. I have a question about System Specific Commands.
    Basically, is there ANY way to execute a system specific command from Java? I want to try my hand at writing a program that automatically changes the background image once daily. Since I use Windows (WinME specifically... soon to be WinXP), I need to use the appropriate Windows command to do this.
    In a related question, assuming that this can be done, does anyone know the proper Windows command (and syntax) to do this? I'm just being lazy here since I'll have to research it otherwise
    Thanks
    MistWing SilverTail

    Thanks for the info
    The main reason that I'm doing this in Java is because it's free and I don't have a free C++ compiler that also has a list and description of all of the GUI APIs like Java does (let alone the other APIs needed or useful for Windows)
    Thanks
    MistWing SilverTail

  • Questionable System Events commands

    Are *key down* (key name) and *key up* (key name) legitimate "System Events" commands? I'm probably blind, but I don't find them in the System Events dictionary -- and yet they work, with dangers.
    For example:
    tell application "System Events"
    key down command
    display dialog "Computer will act as if command key is
    depressed until dialog is dismissed. (Dialog acts as
    a script delay until dismissed.)"
    key up command
    end tell
    But if anything prevents the script from reaching *key up command*, the only way I've
    found to escape the "key down" mode (and a great deal of weirdness) is a restart. (This
    may be reason enough to omit the commands from the dictionary.)
    Is there any other escape approach? Are there other dangers with these commands?
    Otherwise, I find them useful.

    More:
    The script I posted initially works as described on PPC version of 10.4.11, Intel Version of 10.4.11, 5.1.8, and 6.1.2 -- I've verified all of those.
    No freezes occur, but there are all kinds of things that don''t work if the command key is depressed. If the script fails to execute to the "key up command" command (say, due to an error), then the key remains "depressed," and all this weird behavior persists. I've tried everything I can think of to escape, but nothing has yet worked -- including force quitting anything. But restarting does undo the situation.
    (One escape approach I haven't yet tried is this: beginning after any "key down command" command and up to the "key up command" command, enclose everything in a try block and specify on error to "key up command." That might work, we'll see.)
    As to usefulness, the first thing I used it for was to make it easier for a user to make multiple selections in an open window -- no need to hold the command button down while clicking on items. I'm confident that it will be useful in a number of situations.

  • Why did we really need this "spanning-tree extend system-id" command?

    Folks,
    On the Spanning tree protocol I understood how does this spanning-tree extend system-id command work.
    But I have not understood why it is in place? or why do we really need it?
    Regards,
    Nikhil Kulkarni.

    Hi Nikhil,
    The STP and RSTP standard specifications mandate that each switch running STP/RSTP must have a unique Bridge ID (BID). Because Cisco runs STP or RSTP in each VLAN separately (called PVST and RPVST or PVRST), in each VLAN, the switch behaves like a standalone (albeit virtual) switch and thus, each STP/RSTP instance is required to have a unique BID to comply with the standard. Simply, having X VLANs means having X separate STP/RSTP instances and X unique BIDs.
    The question now is how to make sure the BIDs of STP/RSTP instances run on the same switch in different VLANs are truly unique. Older switches actually had a large reserve of MAC addresses. As new VLANs were created, these switches allocated a new MAC address for each new STP/RSTP instance in a new VLAN (recall that the BID originally consisted of the priority and the MAC address), making the BIDs unique.
    However, the consumption of MAC addresses this way was simply too large and ineffective. At the same time, having 65536 different values for priority in the BID was largely useless. So IEEE came with the idea of Extended System ID in which they reused a part of the priority field for a unique instance identifier. In Cisco's implementation, this field is populated with the VLAN number the STP/RSTP instance runs in. This easily and effectively makes the BID unique - even with the same priority for all VLANs on a single switch, and a single switch MAC address, multiple STP/RSTP instances running on this same switch with the same priority have different BIDs thanks to different VLAN numbers embedded into the BID.
    Some switch platforms actually allowed you to deactivate the Extended System ID and revert to the older style of assigning unique MAC addresses to individual STP/RSTP instance BIDs. That is why the command spanning-tree extend system-id exists in the first place. However, removing this command is only possible on those switching platforms which are equipped with 1024 MAC addresses for their disposal. Most new switching platforms have only 64 MAC addresses for their internal use, and while the spanning-tree extend system-id command is present in their configuration, you can not remove it. It is simply there to inform you that the Extended System ID is being used but you can not really deactivate it.
    Read more here:
    http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SXF/native/configuration/guide/spantree.html#wp1096536
    Best regards,
    Peter

  • System Settings - Command Lines

    Help !...
    How can I modify System settings (Prefs Panes) via Command Lines/Terminal ?...

    http://developer.apple.com/documentation/Darwin/Reference/ManPages/man8/timed.8. html#//apple_ref/doc/man/8/timed
    is this what are you looking for?

  • "Alter system set command" in a RAC database!!

    Hi, all.
    The database is (10.2.0.2.0) 2- node RAC database on 32-bit windows 2003
    EE SP1.
    I issued the following command on Node 1 database.
    --> Alter system set db_block_buffers= xxx sid='rac1';
    I was able to see "PE enqueue" in top 5 wait event section from an AWR report.
    In addition, I was able to find "PZ99","PZ98" process dump file in BDUMP.
    Soon later, I could find CKPT and DBWR hung.
    Is there anyone who experienced this issue?
    Thanks and Regards.
    Message was edited by:
    user507290

    10.2.0.2 has some bug which is fixed 10.2.0.3
    You check sequence cache. If it has less value, increase it to 10000.
    select CACHE_SIZE from dba_sequences where SEQUENCE_OWNER='SYS' and SEQUENCE_NAME='AUDSES$';
    SQL> alter sequence sys.audses$ cache 10000;
    Ashok

  • System("read") command

    Hello. I've got the following code in a program:
    printf("%s", "the text that I want to print to the console");
    system("read");
    The purpose here is to have the text from the printf( ) statement above print to the console, and then have the program pause and wait for the user to hit any key (note that scanf( ) or other input functions are not appropriate here for two reasons: first, the keys the user hits actually appear on the console, and I don't want them to, and second, the user can type many, many keys and the program will not continue until he or she hits Enter -- I want the program to simply pause until any key is hit). I knew that with C++ on Windows I used to be able to achieve this perfectly using system("Pause"), but I found that this did not work with C on the Mac. Thanks to help from RayNewb and Cohi in a previous thread, they explained that system( ) was a stdlib.h function that could easily be used in C, and that I just needed to find the Unix-equivalent of the "Pause" command (which was a DOS command, which is why it wasn't working on the Mac). Ray and Cohi came up with the following statement to replace the DOS-oriented system("Pause"):
    system( "read -n 1 -s -p "Press any key to continue..."; echo" );
    As you can see from the code at the very top of the post, I ended up shortening this statement to simply system("read") because I found that, for my purposes at least, it did the exact same thing as the longer version shown directly above. In either case, they were right about this command, and this statement did exactly what I wanted it to, except for one problem...
    Gievn the two statements at the top of the post, the expected result would be for the text from the printf( ) statement to print to the console, followed by a pause in the program waiting for a key to be hit, at which point the program would continue. This is exactly what happens, only backwards. The program starts off with a pause, waiting for any key to be hit, and when a key is hit, only then does the printf( ) statement run and the text appear on the console. This happens whether I use the short version of the "read" statement or the full version that Ray and Cohi came up with. Can anyone help explain this? Any help is greatly appreciated.

    Tron55555 wrote:
    I know the fprintf() function, but I thought it was only used to write to files
    Important plot point - everything is a file.
    What is it that allows "stdout" to be used in place of a file name in this function's argument? Since "stdout" is a pointer like you said, does that mean that any pointer could be used for the first argument in the fprintf() function, not just file pointers? How's that work?
    fprintf doesn't take a file name. It takes a "FILE *". You can create one of those with "fopen()" or you can use the pre-defined ones for standard input, output, and error. You can use any valid "FILE *" for the argument.
    Do you guys have any recommendation of which would be better (whether it would be better to use fflush(stdout) or fprintf(stderr, "") )? Is one of these solutions more appropriate than the other, or are they both the same in effect?
    Neither. Don't write command-line tools that depend on the terminal. fflush(stdout) is more tedious to use in the code, but more robust. Otherwise, you would have some of your output going to stdout and some of it going to stderr, which becomes a hassle. But it is only a hassle when you are dealing with command-line tools that are using the command line as an interface, and those things are always a hassle. It is better to stick to stdout and then you can more easily pipe the output of one program to the input of another. If you are going to break that functionality, you might as well write a real GUI. If you do your command-line tool correctly, you can easily write a GUI wrapper for it and have both GUI and good command-ilne functionality.
    I don't really know anything about this stuff, but you mentioned that it's generally a bad idea to write command-line apps that have dependencies on the Terminal. Do you know of any other way to achieve the type of pause I'm trying to achieve without using the Terminal?
    No. If you want to have a user interface, you have to interact. Unix was designed around the idea of a toolbox of simple programs that can be combined (piped) together to do clever things. You shouldn't have a requirement for terminal interaction. The basic functionality should be entirely driven by the command line so your tool could be easily used by other tools. If you really want an interface, add one, but require a "-i" flag to trigger interactive mode or maybe use "isatty()" to find out automatically (The "i" flag would be more robust though).
    Consider the shell itself. It is, by definition, an interactive program. Right? Wrong. It can be run non-interactively too. In fact, non-interactive behavior is the default.
    I've heard of them before, but don't know anything about them. If anyone has spare time, could you give me an explanation of what they do (doesn't have to be anything in detail -- just tyring to get some really basic idea of what they are, and what all the fuss over them is about). Thanks for your reply, eric.
    It is an easy to use library for (fully) interacting with the terminal. It was a bigger deal before everyone had graphical user interfaces. There are umpteen different kinds of terminals and configurations and curses knows them all. You can even do text windows. Still, it is "easier" than interacting with the terminal, but only because the terminal is so cryptic.
    Tron55555 wrote:
    P.S. -- on a separate note, can anyone tell me, when formatting a quote on these forums, how I can write who's quote is it? When the quote says, for example, "etresoft wrote..." -- how do I do that? I checked the Help section under How to Format Text, but it didn't have anything about quotes. Thanks.
    etresoft wrote:
    Just hit the "quotes" button and see how the forum does it.
    "Abraham Lincoln" wrote:
    Four score and seven years ago...

Maybe you are looking for

  • How to change the default sorting in iTunes

    Hi, Does anyone know how to change the default sorting method for all items in iTunes?  I use the third option for organizing the library as a whole (the one that has a list of icons for bands that you double click to show only that band's songs).  T

  • How do I get a tech to visit and test my lines?

    I live in Warrandyte (VIC) and it is widely known that our internet service in the suburb is sub-standard.  This is due to a combination of exchange congestion and ageing infrastructure in the street. What I need is a technician to visit and test my

  • In Mac OS X 10.5 I see a black frame around the selected desktop icon

    Today when i select a desktop icon a black frame forms around that icon. It does not go away by clicking on the desktop. if i click on another icon, the frame moves to that icon. i have never seen this before. is it a problem? Message was edited by:

  • Help with JTable needed

    Hi guys. How to update a JTable? What am I doing wrong? When I press buttons nothing happend d:( public void init() {         this.setSize(640,420);         //this.setLayout ( null );         panel = new JPanel();         //Builder.buildInsertGui();

  • ACE vs. other vendor

    Are there any comparisions of the ACE with other vendors?