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

Similar Messages

  • :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.

  • Using System variable built-ins

    Please suggest built-in to use in when-button-pressed trigger to navigate to block items
    depending on which block the form is in. I used :system.cursor_block but nothing happens
    when I click on button with it.
    For button with when-button-pressed trigger I have
    Declare
    curblk varchar2(30);
    Begin
    curblk : = :system.cursor_block;
    if curblk = 'block A'
    then go_item('blockA.itemA');
    show_view('blockA_canvas');
    elsif curblk = 'blockB'
    then go_item('blockB.itemB');
    show_view('blockB_canvas');
    elsif curblk = 'block C'
    then go_item('blockC.itemC');
    show_view('blockC_canvas');
    end if;
    End;

    What are you trying to achieve? Based on your code example, it looks like you want to navigate to a specific item (say the first navigable item) in block if the user clicks on a button.
    As to why your code doesn't work, I'm going to guess the reason nothing is happening is because you have the "Mouse Navigate" and "Keyboard Navigate" properties of your button set to YES. If this is the case, when you click on the button forms actually navigates to the button. This happens before the trigger behind the button is executed. Therefore, the cursor is always on in the block where the button is defined. If you want the button to evaluate the block/item of current item, set these properties to NO.
    Aweiden is right, SYSTEM variables are stored in Upper Case and spaces are not allowed.
    Hope this helps,
    Craig...

  • :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.

  • Error in using System Variable

    Dear all,
             I want to use System Variable 225 ( VAT percent (per VAT code) ) which is used in one of document i.e. "VAT Only Invoice".
    When I used it in my Invoice document the following error occurs:
    Printing Error : Invalid Variable number (RPT -6300)(Field:F_XXX) Variable 'XXX'
    Please help me to use this System Variable in my Invoice.
    Note: I have already read "How To Use the PLD Variables File in Release 2007 A" .pdf file.
    can any one tell the meaning of folowing which is in the sheet "vars utilisation" of PLD_Vars_march2007 xls file
    " it means that this variable can be used only under certain repetitive area exclusive numbers (109, 126, 132, 135, 139, 148, 149, 309, 316, 427, 502, 509, 686)
    Regards,
    Ghazanfar
    Edited by: Ghazanfar Ahmed on Jun 18, 2009 12:16 PM

    Hi,
    It is a special variable available for the VAT summary part, not to be used in the rows but in a separate repetitive area.
    To display the respective VAT rates in each row, create a database field instead: Tax Definition - Rate%. It will populate the VAT percentage for you.
    Regards,
    Nat

  • I am trying to use system center to manage my Azure enviorment

    I am freaking lost!!!!
    I have a Widows Azure environment that i'm trying to manage using system center ( apparently this is the bee's knees cause every post is about it)
    So I attempt to install Microsoft System Center and I got something now on a 2012 server called Virtual Machine manager... I am assuming this is not the product I need to manage my windows azure solution so now i'm back to square one. can someone please
    help me with this???
    what download do I need to install system center on a windows machine to get this working?!?!
    Please help!!

    hi,
    It seems like the issue is not related to PAAS. I suggest you could refer to those tutorials
    2012 configuration manager sp1 lab in the cloud  and
    how to monitor your windows azure application with system center 2012 and this blog(https://blogs.technet.com/b/keithmayer/archive/2013/04/01/build-your-private-cloud-in-a-month-new-article-series.aspx#.Ux1QJHnxsic
    ). You could down load System Center files form
    this page.
    By the way, I suggest you could post this issue on azure
    VM forum for more details and better support.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Calling a VI which uses "system exec.vi" with LabVIEW run-time engine as adapter

    Hi,
    My TestStand sequence calls a VI which includes a call to "system exec.vi". When I try to load it in TestStand and if LabVIEW adapter is set to run-time engine, I get an error message "Unable to load Vi...". If I switch the adapter to "Development system", then it works fine.
    Is there any way to use "system exec.vi" in a VI which is called in TestStand with LabVIEW run-time ?
    Thanks,
    Alex
    Solved!
    Go to Solution.

    Hi Alex,
    In you case, you are getting a -18002 error.
    The reason is explained in the following link:
    -18002 Errors in TestStand
    http://digital.ni.com/public.nsf/allkb/D82FEAF0B4BA293A862575710053E252?OpenDocument
    Please have a look at the 2nd reason. This is your case.
    Hope it helps,
    Regrads
    Julien De Freitas / Applications Engineer / Certified LabVIEW Developer (CLD)
    National Instruments Switzerland

  • Firefox 4 could not be made to show bookmarks on Vista 64bit. I used system restore to get back to older version. Now Firefox won't open at all even after undoing system restore

    I use Vista 64 bit. Was fine with older Version of Firefox (3.6, I believe). Upgraded to Ver. 4. Couldn't access extensive bookmarks file or bookmarks toolbar. Tried all the Firefox help recs and they didn't work. Clicking the top button would give list of toolbars but when I tried to move to bookmarks toolbar the menu changed. Tried going thru tools and options and that didn't work. So decided to use System Restore to get old Firefox version back. Icons remained but program wouldn't open. Tried many ways, including start menu. Old version is still on program control file but only option is to uninstall. So went back to System Restore to get Vers. 4 back and it's not there. What to do?? I can use Google Chrome or Internet Explorer but I want all my 100's of bookmarks back. Thank you.

    '''''<u>Users are overusing and misusing System Restore!</u>'''''
    System Restore:
    #is a way of protecting the '''''Windows environment'''''
    #'''''may help to avoid a complete reinstall of the Windows Operating System'''''.
    # should '''''never be used in place of un-installing an application and trying to replace it with an earlier version of that same application'''''
    #'''''should generally be the LAST step in diagnosing/reversing a problem with the operation of Windows, BEFORE performing a complete reinstall of the Windows Operating System'''''
    See this and related articles on the Microsoft site: http://support.microsoft.com/kb/959063

  • Schedule background job using system variant

    Dear gurus,
    We're planning to schedule background job using system variant, for example, current fiscal year and current posting period (transaction AFAB). Is it possible? So for example, for this month, "Posting Period" value will be 6, and then next month will be 7.
    Can you tell me how to do this, if I want to set up the schedule only once?
    Thanks for your help.
    Best Regards,

    done using abap

  • With 10.2 I can only use system speaker output for audio, NOT my RME FF400 I used previously. The FF400 works fine with other apps. How can I set this device in FCP 10.2? (it is set in both system preferences and midi)

    With 10.2 I can only use a system (e.g. speaker) output for audio, NOT my RME FF400 I used without any problems previously. The FF400 works fine with other apps (some like TwistedWave) setup in the program, and others (like Spotify) using system preferences & audio midi setup. How can I set the FF400 to be the sound output device in FCP 10.2? N.B. The FF400 is set as sound output device in both system preferences and audio midi setup.

    From the fcp.co forum. See if this does anything for you.
    simon_hutchings
    OFFLINE
    Junior Boarder
    Posts: 24
    Thank you received: 5
    Karma: 1
    I have the solution! Well it at least worked for me. This is the response I got from Apple, Can you please try the following steps towards fixing your audio issue, and report back with your results?
    1. Open the application Audio Midi Setup (located in Applications : Utilities)
    2. Select the Output Tab for the current output device
    3. Select the Configure Speakers option
    4. Select the Multichannel tab
    5. Change the setting to Stereo Now mine was set to stereo but the left channel wasn't showing left. re-clicking on stereo reloaded the settings and after clicking apply it worked. 

  • Win 7 x64 - Need to repair a single driver, but can't use System Restore

    Basic Info - an HP/Compaq Elite 8200 Convewrtible Minitower with 2 extra SATA drives & a Creative SoundBlaster card installed.
    Background:  My system had begun going into Blue Screen (BS hereafter) every couple of days with a message that the BIOS was not "fully ACPI compliant."  I contaced HP and was able to obtain & install the needed BIOS upgrade.  Following this, I decided to do some housekeeping & checked for out-of-date drivers.  I installed these one at a time, as I had a previous bad experience with updating too many drivers, particularly Intel chipset drivers, at a single time.  When I finished the last update, which involved two drivers labeled IntStrA and IntStrB, if I recall correctly (I'm posting this from my PC at work, so I may have the names off by a character or so) my system began going BS after ~10 minutes or so.  Nearly every BS referenced the MicroSoft system driver wdf01000.sys.
    It is my belief that either wdf01000.sys became corrupted, or the last 2 updates were having a negative impact on the M S driver.  Unfortunately, if I try to use System Restore to roll back the suspect updates, the system will BS ~1-2 minutes after the m essage "Restore is initializing" appears.
    The only solution I can get from the HP Tech is to back up my data and then use the "Erase, Reformat & Reinstall" function from the Recovery Disks.  Unfortunately, with a system that goes B S every 10 minutes, it is impossible to perform a reliable back-up for all 3 disks, while the Recovery Disk is only willing to back up my drive F:\, not my primary OS Drive, C:\ or my other drive, G:\ (the HP Recovery partition is drive D:\).
    My questions are:
    1.  If the problem is a corrupted WDF01000.sys is it possible to obtain a reliable copy of & replace it?  (The HP tech warned about the danger of obtaining a copy of a MicroSoft sysem file from the internet - a danger of which I was fully aware - but, isn't there at least one system in HP's possession running Windows 7 x64 professional?  I should think a file supplied from HP would be sufficiently safe.  However, when I raise the possibility with the tech, there is no response.)
    2.  If the problem stems from the last 2 Intel driver updates, is there a way to get a functional OS loaded from DVD that would peremit System Restore to run?  My last system had Win 7 installed from MS media and, as I recall, once loaded, the use of System Restore was one of the repair options.  The HP Recolvery disks only offer 2 choices - back-up (which would only cover drive F:\, with <10% of my 4+ years worth of data) or "Erase, Reformat & Reinstall."  Following this course would put at risk ~90% of my data, not to mention the grief of reinstalling a great deal of software.
    3.  The HP tech tells me that, since Recovery is only willing to back up drive F:\, this is where the Recovered OS would be installed.  This would give me the independently loaded OS I sought in question 2.   However, I greatly fear that drive where recovery operated would be my primary OS drive, C:\.  If this were the case, the result would be disastrous!  I do have back-up via Carbonite, but I don't think this has been operating properly since the ACPI-related BSs began.
    So -- any suggestions?  Anything that gets me out of this problem without loss of data will be most sincerely appreciated!
    Tom Filipi

    Hello TomF,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that after running some updates your system is getting BSOD errors associated with the Windows file wdf01000.sys. Now I cannot claim to be able to get you a copy of that file. I am not sure just replacing it would resolve your issue anyways. I can do this for you I can tell you that first the HP Compaq 8200 Elite Convertible Minitower PC is a commercial product. You can do this at you may get more assistance by posting this on the commercial forums at  Business PCs - Compaq, Elite, Pro.
    Additionally, I would suggest you start your computer in Safe Mode and using an elevated command prompt run the command "SFC /SCANNOW". You can do this by right-clicking on the Command Prompt link and choosing Run as adminstator. Also, you can use chkdsk to run another repair on your files to see if they can be repaired.
    The SFC /SCANNOW command will run the System File Checker to see if it can repair any corrupted system files where the chkdsk will do the same, but for ALL the files on your computer.
    I am also providing you with resources on both below:
    Use the System File Checker tool to repair missing or corrupted system files
    Run Check Disk from a Command Line to Check for and fix Disk Errors
    I hope this helps. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Windows - Use system proxy settings not working as expected

    Hi everyone,
    I have a bit of an issue that I could use some help with. We currently have remote users that utilize an SSTP VPN connection to access our internal network. Once connected, those users are required to use an internal proxy server to connect to the Internet. The proxy server is Microsoft's TMG and utilized domain authentication.
    On our remote Windows clients we have their Internet Options configured to utilize a proxy as follows:
    Internet Options -> Connections -> LAN Settings -> No proxy configured at all
    Internet Options -> Connections -> Highlight SSTP Connection -> Settings
    Use a proxy server for this connection -> IP/Port of Proxy Server
    Firefox and Chrome are both configured to use system proxy settings.
    Here is my process to demonstrate the issues:
    Remote client workstation is rebooted.
    With the above configuration just after a reboot, a remote user that is not connected to the VPN can browse the Internet with Internet Explorer, Chrome, and Firefox. None of the browsers prompt for credentials.
    A remote VPN connection is then established.
    FF is opened and HTTP connections utilize the proxy server. However, HTTPS connections do not use the proxy server, but instead attempt to use the default gateway. FF does not prompt for credentials. FF is closed.
    Chrome is opened and can access both HTTP and HTTPS sites without issue. No credential prompt. Chrome is closed.
    IE is opened and can access both HTTP and HTTPS sites without issue. No credential prompt. IE is closed.
    Here's where it gets weirder...
    FF is then reopened. The VPN connection is still up. FF will prompt for credentials. Domain credentials are supplied and FF can now utilize the proxy for both HTTP and HTTPS connections. FF is closed.
    VPN is disconnected.
    FF is opened and cannot access the Internet as it is still trying to use the proxy server. FF is closed.
    IE is opened and can access the Internet. IE is closed.
    Chrome is opened and can access the Internet. Chrome is closed.
    FF is reopened and can now access the Internet. FF is closed.
    In summary, in the above scenario FF acts in an unexpected manner with regards to proxy usage when "use system proxy settings" is applied. However, Firefox begins acting as expected after IE is opened and closed. For example, connect to VPN, open IE, close IE, open FF, and everything works accordingly. Disconnect the VPN, open IE, close IE, open FF and everything works as expected.
    Any insight you can provide would be appreciated as it is affecting our FF users and the sooner we can achieve resolution the better. As a note, we've also worked through this issue with WPAD and proxy auto-detect. I've intentionally removed these from the equation to simplify troubleshooting.
    Thanks

    Quick update. Added to a previously filed bug. Looks like it's assigned now so maybe we'll see a fix for this soon.
    https://bugzilla.mozilla.org/show_bug.cgi?id=563169

  • HT1151 I keep getting an error message when installing new software that says "System extension cannot be used /system/library/extension/IoFireWireWDHID.kext was installed improperly" I have no idea what this means and all of my software seems to install

    I keep getting an error message when installing new software that says "System extension cannot be used /system/library/extension/IoFireWireWDHID.kext was installed improperly" I have no idea what this means and all of my software seems to install okay

    Hello Valerie Anderson,
    I'm Harry from Norton Support team. Please check the information provided in a similar thread here:
    https://discussions.apple.com/message/21854775#21854775
    Let me know if this helps.
    Thanks!
    Harry

  • How to get the size of physical memory by using system call ?

    how to get the size of physical memory by using system call ?What system call can be used for me to get the size of physical memor? thanks.

    %vmstat 3
    procs memory page disk faults cpu
    r b w swap free re mf pi po fr de sr s0 -- -- -- in sy cs us sy id
    0 0 0 3025816 994456 4 19 6 0 0 0 0 8 0 0 0 459 253 139 1 1 99
    0 0 0 2864688 777408 0 2 0 0 0 0 0 3 0 0 0 428 134 175 0 1 99
    0 0 0 2864688 777408 0 0 0 0 0 0 0 7 0 0 0 448 112 166 0 0 100
    one interesting observation about vmstat I found out is (mostly on Solaris)
    the first line of information always off chart, so I usually do a few interval to get constant result.
    if you use linux
    just
    cat /proc/meminfo

  • Using System::StartTime in variable for external file name comes out incorrect sometimes

    Hi All,
    I have an interesting dilemma.  I'm using SQL Server 2005 with Visual Studios 2005 (9.00.4035.00).
    I'm writing records from my database table out to an external flat file, nothing fancy other than in the naming of the file being dynamic and using system time.  So I have a couple of variables set:
    CR_Dir = \\host\directory\
    CR_Outfile = "AP_" +  (DT_WSTR, 4)  YEAR( @[System::StartTime] ) + RIGHT("0" + (DT_WSTR, 2) MONTH(@[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DAY( @[System::StartTime] ),2) + RIGHT("0"
    + (DT_WSTR,2) DATEPART("Hh", @[System::StartTime] ), 2) + RIGHT("0" + (DT_WSTR,2) DATEPART("mi", @[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DATEPART("ss", @[System::StartTime] ),2)
    + "_chref"
    And then in my Connection Manager properties I have an expression that brings them all together with a file extension:
    @[User::CR_Dir] +  @[User::CR_Outfile] + ".ctl"
    So what I should get for example is something like AP_20140309214502_chref.ctl  (if the job was run on 03/09/2014 @ 9:45pm) When executed properly.  I do this for two flat files one with an extension of .txt and the other with .ctl. 
    These steps are working fine the majority of the time.
    However, my problem is that occasionally, the portion of the filename that contains the datetime stamp is completely incorrect for one of the two files that are created during the same time frame.  And I'm not talking about a few seconds or even a minute
    or two, the date is off by weeks.  Here's an example:
    AP_20140309214502_chref.txt
    AP_20140213152253_chref.ctl
    This has happened twice since starting to run this job over the past four months, once on 12/15/2013 and again 03/09/2014.  This job is run every night at 9:45pm, and all the other days that this job runs the two filenames come out perfectly. 
    So I'm leaning towards something in the system that may be corrupting my variable every once in a while?  But because it happens intermittently how can I verify this?  Or is there a better way to perform what I'm trying to do that would be more accurate
    and consistent?
    Any help would be appreciated.
    Thanks
    Sawyer

    Hi All,
    I haven't found a solution to this issue.  I'm not actually able to reproduce it at will, so it's hard to troubleshoot.  What I've decided to do is rewrite my variable expression and make one system call for date and time and place it into
    a variable and then use the variable to build the file name.  Also I changed from using the System::Startime to using the GFETDATE() function (Don't know if this helps but it was easier to use in my substring when I parsed out the different time elements:
    v_DATETIME   STRING   SUBSTRING((DT_STR,30, 1252)GETDATE(), 1, 19)
    CR_Outfile      STRING   "AP_" + SUBSTRING(@[User::v_DateTime],1 ,4 ) + SUBSTRING(@[User::v_DateTime],6 ,2) + SUBSTRING(@[User::v_DateTime],9 ,2) + SUBSTRING(@[User::v_DateTime],12, 2) + (@[User::v_DateTime],15 ,2) + SUBSTRING(@[User::v_DateTime],18,2)
    + "_chref"
    I don't want to leave this thread as unanswered for too long so I'll give it another day or two and then close it.  I'll report back in a few months to let you all know if this problem has reoccurred or not.
    Thanks for the assistance.
    Sawyer

Maybe you are looking for