Display Linked Button DocNum, using DocEntry in the background

Hi,
How do I connect DocEntry to DocNum?
I want to display DocNum in my Matrix, but the document is connected to the PK DocEntry, code below.
Thank you,
Rune
// Add a column for BP Card Name
oColumn = oColumns.Add("clDocNum", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON);
oColumn.TitleObject.Caption = "Document No";
oColumn.Width = 100;
oColumn.Editable = true;
// Link the column to the system form
oLinkedButton = ( ( SAPbouiCOM.LinkedButton ) ( oColumn.ExtendedObject ) );
oLinkedButton.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_GoodsReceipt;
( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("Matrix1").Specific ) ).Columns.Item("clDocNum").DataBind.Bind("OPDN", "DocNum");

hi rune - its funny that you are asking this.
exatly this i had some minutes ago.
i have two workarounds.
first you should kill the link from the docnum column - so that nothing happens and you
catch the matrix_link_pressed event by yourself.
than the two options
1. you create a hidden second problem which contains the docentry and you click it when your docnum link was pressed.
    this solution makes sometimes problem when the colum is hidden
2. you create a link item and a edit text item. when someone clicks the docnum link you make a select to catch the docentry
place it in the edittext and click the link. you can place both items outside the window .top 1000 and noone will see it
this always works fine
this was much text - i hope it helps
regards
David

Similar Messages

  • IPhone 4S using 3G in the background,causing huge battery loss. From last three days I'm finding my phone switched off in the morning when I wake up. Please Help

    iPhone 4S using 3G in the background,causing huge battery loss. From last three days I'm finding my phone switched off in the morning when I wake up. Please Help

    Maybe you hit the power button for 5 sec while you were asleap?
    And what do you want to say us with:
    Abhijeet Gupta wrote:
    iPhone 4S using 3G in the background,causing huge battery loss.

  • Leaving data roaming ON while abroad: what apps use data in the background?

    As a quick preface, I've had an iPhone since Week 1 in the summer of 2007. I've been working outside the U.S. for well over a year now, so I've been roaming with my iPhone for almost the entire time I've owned it. I had kept data roaming turned OFF since the fall of '07, when a software update brought it as an option, but visual voicemail continued to work as always even when data roaming was OFF (under software versions 1.x).
    After hearing about the early bugs with iPhone software v2.0, I stuck with the last version of 1.x until about a month ago. While I like almost everything about 2.2, I was dismayed to notice that visual voicemail no longer worked if data roaming was turned OFF. (Apparently, the visual voicemail "loophole," for lack of a better phrase, was closed with 2.0 or a subsequent version of the software.)
    This has left me facing a conundrum: Turning data roaming ON might leave me susceptible to a big data roaming bill, while leaving it OFF leaves me in the dark as far as the existence and Caller ID of new voicemail(s).
    QUESTION: Does anyone know of the DEFINITIVE list of which iPhone apps use data roaming in the background? That is, if I leave data roaming ON but NEVER use the email app or Safari or YouTube or any other app that accesses the internet and would incur data charges (or, at least, never use any of those apps unless connected to a WiFi network), which apps will use data in the background anyway, WITHOUT me actually launching the app?
    Back in the 1.x versions, I'm not aware of any apps that used data unless the user actually launched an app, but I've noticed that, under 2.2, Apple's App Store app routinely connects to the internet on its own to check for updates if I have data roaming enabled. (I'd like to turn this OFF, but doing so doesn't appear to be an option.)
    I'm hoping App Store is the only app that has this (bad) behavior, and that I'd be safe leaving data roaming ON while consciously avoiding using data over the EDGE network, but I have no idea if apps like Stocks, YouTube, Weather, etc., have been updated, in 2.x or even 2.2, to check for updates in the background, and thus run up data roaming charges.
    If anyone can shed any light on this, it would be much appreciated. Thanks very much.

    The iPhone is officially unlocked and can be used with whatever provider/SIM card.
    But imagine, we are a team of around 20 people, travelling to all kind of different countries all over the world (changing, not the same person is always travelling to the same countries), and of course (I didn't mention this in my first post), we also have to stay in contact by phone. In addition, also whatsapp is based on the phone number as far as I know, which is our main "quick" communication tool. It would never work out that all of us inform the others all the time about the changing phone numbers, depending on which country each individual is at the moment.
    Your answer unfortunately just confirmed what my researches so far resulted in... there really seems to be no apple-like easy solution to manage data roaming for apps individually. In the beginning I was sure to quickly find something in the appstore, since I assume my situation is not such an exception. I guess I have to start learning how to program apps! :-)
    Anyway, thanks for your answer! As I mentioned before, every idea is appreciated.

  • Hide Link Button Image used in Crystal Report 2008 while printing

    Hello Experts,
    I am using Link Button of SAP B1 in Crystal Report 2008 which works perfectly. But when i am trying to export it, i am also getting the image of Link Button.
    Is there a way to hide the image while printing?
    Thanks
    Shiv

    hi Piyush,
    there are some changes in the cr viewer between 3.1 to 4.x. can you please upgrade the reports that are not working to webelements 2.47 which was built for 4.0.
    let us know how this works.
    -jamie

  • When clicking CTRL+Link my new tab opens in the background window, instead of the foreground window I'm using. Is there a way to make this work the way it used to, where the new tab always opens in whatever window I was currently using?

    I use a web based software for work. I go to a web page listing all employees as links (Window A). When I click an employee link a new window opens (Window B). Window B contains links, i.e. Add Client, Change Address, Change Phone Number, Change Name, Upload Photo, etc... When I hold CTRL and left click the links in Window B, the new tab opens in Window A. I don't understand why this has changed, as I've been using this method to open new tabs in my current window in both of the previous versions of Firefox.

    That didn't work, but thank you very much for the offer of help. I had already tried that option.
    To give you an example of what I'm speaking, I found this page that recreates the scenario.
    1. Goto [http://www.kirupa.com/developer/mx/centered_popup.htm http://www.kirupa.com/developer/mx/centered_popup.htm]
    2. Click the GO in the center of the box on their page (This creates a pop-up window with links to other programming pages)
    3. CTRL+left click any of those links. The page opens in the background/original window, not the pop up window where you are currently working. And, with your solution takes me back to that window and the new tab.

  • I play scrabble on Lexulus, when using firefox my current game board is not displayed, however, when I use internet explorer , the board is displayed. Any idea why?

    I play scrabble with a friend on Lexulus, when she has made a play
    I get an e-mail on AOL with a link to Lexulus. That link takes me to the site and the game but the board doesn't show. On internet explorer it does.

    I should have explained further. The game opens in a new window over to the upper left of my screen, leaving the original page underneath. I tried minimizing it so that I could get to my toolbar and did the View > Zoom > Reset. This has no effect. The lower portion of the game is still not showing. Using other browsers the window or frame of the game is much larger, therefore everything shows.

  • Error while linked server is used to verify the existence of a table

    Hi All,
    Pls help me solve an issue related to linked Server..
    Following is my query:
    IF EXISTS (select 1 from [LinkedServerName].Sales.sys.tables where name = 'SalesTable') 
    BEGIN
     DECLARE @LastSales varchar(25) 
     SET @LastSales = (select CONVERT(VARCHAR(25),max(LastSalesTime)) from [LinkedServerName].SalesDB.dbo.SalesTable)
    END
    What should happen is, it should check the existence of SalesTable on Linked Server (select 1 from [LinkedServer].Sales.sys.tables where name = 'SalesTable'), and only after the it returns 1, the variable @LastSales should be alloted a value.
    But in my case, as soon as I run the code, it gives the error:
    The OLE DB provider "SQLNCLI10" for linked server "LinkedServerName" does not contain the table ""Sales"."dbo"."SalesTable"". 
    The table either does not exist or the current user does not have permissions on that table.
    My question is that if the condition fails at the very outset returning null (as the table does not exist), then why it is entering BEGIN and throwing the error.
    All your valuable inputs are appreciated !!

    Inconsistency is the hailmark of SQL Server.
    If you say:
    IF EXISTS (select 1 from Sales.sys.tables where name = 'SalesTable') 
    BEGIN
     DECLARE @LastSales varchar(25) 
     SET @LastSales = (select CONVERT(VARCHAR(25),max(LastSalesTime)) from        SalesDB.dbo.SalesTable)
    END
    This will work as you expect. That is, if the table does not exist, the batch will parse and produce no result. This is because SQL Server has deferred name resolution for tables. If a table is missing at compile time, SQL Server suppresses the error in
    hope that the table will be there at run-time.
    But there is an exception to this. For table sources on remote data sources, there is no deferred name resolution, but the table has to be there at compile time. This is quite ironic. Personally, I think deferred name resolution (which was introduced in
    SQL 7) is a big misfeature, but I could buy if there was deferred name resolution for objects on linked server, since the server may be down, and you have coded for this like you have above. Well, if the server is down, the IF EXISTS will fail to compile to.
    You will need to introduce a new scope somewhere to avoid the problem. For instance:
    IF EXISTS (select 1 from [LinkedServerName].Sales.sys.tables where name = 'SalesTable') 
    BEGIN
       DECLARE @LastSales varchar(25) 
       EXEC [Linkedservername].SalesDB.sys.sp_executesql
            N'SET @LastSales = (select CONVERT(VARCHAR(25),max(LastSalesTime)) from SalesTable)',
            N'@LastSales varchar(25) OUTPUT', @LastSales
    END
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Item Level Targetting - does it use WMI in the background?

    Hi everyone,
    How does Item Level Targetting work in the background?
    Is it just basically a WMI API? For instance, when using ILT, what is the query language for finding if a file is a specific version? "Select version from CIM_Datafile where ...." or is it a Powershell command, etc?
    Which would be quicker - having a GPO with one WMI filter, or a GPO with a few ILT GPP settings.
    I ask because my organization is of the opinion that WMI filters on GPOs should try and be avoided in place of GPP ILTs.
    Regards,
    Michael

    > This is a quote from Martin Binder MVP - It should answer your query
    > (just about) Im sure Martin will add to this!
    Yes, he will :-))
    http://evilgpo.blogspot.de/2014/11/showdown-wmi-filter-vs-item-level.html
    > It uses "appropriate" APIs - ILT is much faster than WMI in most cases,
    > unless you use ILT with a WMI query, of course :) And no, I don't know
    > which APIs they use for this or that ILT item.
    The above statement is still true - my post deals with a very fast WMI
    class...
    One example - You need a filter for a service that is installed and set
    to automatic startup. You have two choices to filter for this service:
    a) Select Name From Win32_Service Where Name="yourservice" And
    StartMode="Auto"
    This is the kind of filter almost everyone on the planet will use. And
    it is DAMN SLOW.
    b) Registry ILT:
    HKLM\System\CurrentControlSet\Services\yourservice:Start (REG_DWORD)
    exists and has a value of 2
    Guess which one will outperform the other one?
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Displaying linked pages in an area of the screen, using CSS?

    Imagine that I have a column on the left of the page that has a list of links to other pages.  When you click on any of those links, then to the right the linked page is shown.
    I know how to do this with frames, but I'm trying to figure this one out using CSS.
    Can anyone point me in the right direction?
    Below is a code sample that if your save and then view in a browser will show you (hopefully) what I am trying to achieve.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!--
    This html code creates a document with a:
        header that resizes to fit the width of the browser;
            sidebar on the left (of fixed width);
            'text' area, to the right of the sidebar, which resizes to fit the browser window width
            foot, which resizes to fit the browser window width.
    -->
    <title>Test site</title>
    <style type="text/css">
    <!--
    body {
    text-align: justify;
    min-width:700px;
    color:#000; <!-- text color for the whole document -->
    div.header {
    height:4em;
    width:auto;
    border:0;
    padding:0;
    text-align:center;
    background-color:#6CF;
    div.sidebar {
    width: 15em;
    float:left;
    text-align: left;
    border-bottom:0px;
    padding-top: 1em;
    padding-right: 1em;
    padding-bottom: 1em;
    padding-left: 0em;
        background-color:#390
    div.footer {
    width:auto;
    border:0;
    padding:0;
    text-align:center;
    background-color:#6CF
    -->
    </style>
    </head>
    <body>
    <div class="header">
       header goes here
    </div>
    <div class="sidebar">
    <!--   Siderbar goes here, and will have links to other pages.
       change width (in div.sidebar, to change width). -->
       Link to page 1<br />
       Link to page 2<br />
       Link to page 3<br />
       etc...<br />
    </div>
    <!-- <br clear="left" /> stops the footer overlapping the sidebar. -->
    This is the area  where the pages linked to should be displayed.<br />
    So, if you click on the "Link to page 1" link, to the left, the contents of page 1 will be shown here.<br />
    If you click on the link to the left that says "Link to page 2" then the contents of page 2 will be shown here, etc.<br clear="left" />
    <div class="footer">
    footer goes here
    </div>
    </body>
    </html>

    Thank you Nancy!  Your solution is (I believe) 99% of the way to being exactly what I want.
    The code fragment below:
    <div class="sidebar">
    <!--   Siderbar goes here, and will have links to other pages.
       change width (in div.sidebar, to change width). -->
       <a href="../Test/About.html" target="Frame1"> About</a><p>
       <a href="../Test/FAQ.html" target="Frame1"> FAQ</a><p>
       <a href="../Test/Contact.html" target="Frame1"> Contact us</a><p>
    </div>
    <iframe name="Frame1" id="Frame1" src="../Test/About.html" height="auto" width="auto" allowtransparency="true"  border="0" margin="0" scrolling="auto"  > </iframe>
    but I want the window that contains the 'imported' code to expand to be the same height as the sidebar and wide enough to stretch to the rightmost side of the visible screen.
    I was guessing that
    height="auto" width="auto"
    would have done the trick, but it would seem not. Any ideas?

  • Sending email using CL_BCS in the background with subject line 255 chars

    Hello Gurus,
           Following is the sample code,. When I run in the foreground, I am getting the mail, with proper subject line. However my output medium type is '5-'External Send#. When I am trying to run this in my output program, it is resulting in dump.
           When I keep 'COMMIT WORK',  I am getting a dump saying tText * Invalid COMMIT WORK in an update function module.*
           When I remove this 'COMMIT WORK', I am still getting the error, saying Screen output without connection to user. (The current ABAP program "SAPLSTXC" statements could not be executed.)
          Hoping for a quick solution.
    Regards,
    Shaheen
    REPORT  Z_CL_BCS_TEST.
    * Trying classes
    DATA: send_request        TYPE REF TO cl_bcs.
    DATA: li_main_text        TYPE bcsy_text,
          lw_main_text        LIKE LINE OF li_main_text.
    DATA: document            TYPE REF TO cl_document_bcs.
    DATA: recipient           TYPE REF TO if_recipient_bcs.
    DATA: sender              TYPE REF TO if_sender_bcs.
    DATA: l_mtitle            LIKE sodocchgi1-obj_descr.
    DATA: sent_to_all         TYPE os_boolean.
    DATA: bcs_exception       TYPE REF TO cx_bcs.
    DATA: lv_sub TYPE string.
    TRY.
    *     -------- create persistent send request ------------------------
        send_request = cl_bcs=>create_persistent( ).
    *     -------- create and set document---------------
    *     Email title
        l_mtitle = 'attachment'.
        lv_sub = 'Email Title : I want to try for a subject which is more than 50 chars. will this work?'.
        CALL METHOD send_request->set_message_subject
          EXPORTING
            ip_subject = lv_sub.
    *     Fill the body of the mail
        REFRESH li_main_text.
        lw_main_text = 'This is test email'.
        APPEND lw_main_text TO li_main_text.
        CLEAR: lw_main_text.
        lw_main_text = 'Regards'.
        APPEND lw_main_text TO li_main_text.
        CLEAR: lw_main_text.
    *     Create Email Object
        document = cl_document_bcs=>create_document(
          i_type    = 'RAW'
          i_text    = li_main_text
          i_subject = l_mtitle ).
    *     Add document object to send request
        send_request->set_document( document ).
    *     add recipient (e-mail address)
        recipient =
            cl_cam_address_bcs=>create_internet_address(
                  'Shaheen.Taori at solvay.com' ).           " changed the email id purposefully
    *     Add recipient object to send request
        CALL METHOD send_request->add_recipient
          EXPORTING
            i_recipient = recipient
            i_express   = 'X'.
    *     ---------- send document ---------------------------------------
    *    sent_to_all = send_request->SEND_WITHOUT_DIALOG( I_WITH_ERROR_SCREEN = ' ').
        CALL METHOD send_request->SEND_WITHOUT_DIALOG.
    *      EXPORTING
    *        e_sent_to_all = 'X'.
    *    IF sent_to_all IS INITIAL.
    *      MESSAGE 'Erorr while sending email ' TYPE 'E'.
    *      EXIT.
    *    ENDIF.
          COMMIT WORK.
    *   exception handling
      CATCH cx_bcs INTO bcs_exception.
        MESSAGE i865(so) WITH bcs_exception->error_type.
    ENDTRY.

    Try using method SEND instead of SEND_WITHOUT_DIALOG.
    Also try calling method SET_SEND_IMMEDIATELY before calling method SEND.
    Use below code lines,
    send_request->set_send_immediately( i_send_immediately = 'X' ).
    sent_to_all = send_request->send( i_with_error_screen = 'X' ).   " Instead of CALL METHOD send_request->SEND_WITHOUT_DIALOG.

  • Using shapes for the background?!

    Hello everyone! This is my first website with muse. I do love this program just ran into a few issue, first problem is im using a white shape to put my content on and while this works it now has allowed you to scroll right to see the whole shape. The left side stays hidden and is only veiwable when stretching out the website, I would love to have the right side to the same. Any ideas?? Also that damn footer how do i get rid of it?
    http://samp03.businesscatalyst.com/index.html
    Thanks for your time!!

    Hello,
    Make sure you Snap these rectangles to the browser boundaries so that it gets stretched to the whole Browser Window.
    Please have a look at the video below which shows how to Snap it :
    http://trainingwebcom.worldsecuresystems.com/SachinFTP/2013-02-21_0107.swf
    Hope this helps.
    Regards,
    Sachin

  • Link button does not link to the right record.

    Hi,
    I have created a matrix, and I have made one of the column type as link button. The matrix is loaded with Sales Quotation record, and the DocNo column is a link button. For example, when i pressed the link button of record with DocNo = 10, but the Sales Quotation form pop out is record with DocNo = 8, anyone encountered this problem??? anyone have any solutions on this???
    I have tried this with other marketing document object, such as Sales Order and Invoice, the same problem occured... huh, one more thing, if i did not set the document numbering series, the code is working fine, once i set the document numbering series, then this problem will happen ... hope to hear from you guys ...thanks in advanced!!!

    Hi,
    I suppose the reason of this behavior is that the link button relates using the DocEntry value, and not the DocNum fields value.
    What we usually do is to have 2 columns, on the first the DocEntry, and in the second one the DocNum. Then we set the DocEntry Column´s width to 20, and then only the orange arrow is shown.
    This way, you get the behavior and appearance you need.
    Hope that helps.
    Ibai Peñ

  • What does the chain/link button in Logic instruments do?

    I'm a new user of Apple MacBook Pro and MainStage v2.2.2 for music ministry work.  Found the Logic Software Instruments and some useful documentation about the interface and programming for each, but no mention thus far of the two lines of controls that MainStage adds to the top of each.
    First line is blue chain/link button - no rollover help, no F1 help, no right click context menu/help, no nothing.  The pulldown items on that line and the stuff on line 2 is fairly obvious.  What does that little chain link button do?  Every one of the software instruments seems to have the button present.
    NotLiable

    Okay.  I tried your experiment.  Double click on ES P button in channel strip and up pops the ES P software instrument.    Click on link button  -- on is blue, I see -- and double click on EXS24 button in another channel strip.  EXS24 window pops up, with the link button still blue/on, replacing the ES P window.  Turn off link button and open another software instrument and it joins the EXS24 on the screen.
    I now know what the button does, and that was my entire reason for posting, but your first sentence now has me curious.  You wrote, "The Link function is not obvious in MS, but essential in Logic."  It wasn't obvious because it's not documented, that I can find, in MS help, MS User Guide or Logic Pro 9 Instrument documentation.  No rollover tip.  Zip, squat, nada.  When you contrast "obvious" with "essential," do you mean the feature is not relevant in MS?  I'm not looking for a Logic tutorial, but I did find the feature mentioned in that product's manual.  I just want to know what, if anything, I need to do with this in MS.
    Art

  • Link Button disappears while running the application

    Hi All,
      In one of my User Defined Forms i've added a link button and i've given the properties like Linkto,Link Object and all.In Preview mode it is available.But while i run the application,it is not available .Any body please help me to resolve this issue
    Regards
    Gibi

    Hi Gibi,
    Form Freeze mode stops you from seeing any updates on the screen (to prevent the flickering effect) until you unfreeze it.
    The linked button will only display once the field has been filled and the form is "un frozen".
    hth
    Regards
    Tinus

  • Click on a link button by the SDK

    Is this possible to CLICK on a LINK BUTTON so it automaticly open the form
    For instence, I would like to click on the link button of an Opportunity to open the Business Parner Form
    Can it be made from the SDK ?
    From what I saw, there's no Click or Execute or anything from a LinkButton object

    Hi,
    U can catch the item press event and write code
    if(pVal.ItemUID=="id of link button")
          oSboApplication.ActivateMenuItem("2561");
    Hope u will get help...
    Thanks and Regards,
    Lalit Narayan

Maybe you are looking for

  • Using Oracle driver in JDBC for Unix and Linux based servers

    Please, let me know how to mention the Oracle driver within the forName.class(" "); statement in the Jdbc-Servlet for Unix and Linux based servers. I'm using Windows-OS for Java programming. Should I have to use the same environment(Unix/Linux with O

  • Error during xml parsing

    hi, i need to parse an xml file. when i used an xml file of encoding type encoding="UTF-8", i could parse the file with the following syntax.. DocumentBuilder docBuilder = new DocumentBUilder(); Document doc = docBuilder.parse( path of the file name

  • Playbook freezes up when viewing email, FB messages...

    I'm having an issue with freezing while viewing messages. The screen will either totally freeze or will scroll madly up or down.

  • Purchased iTunes songs don't sort correctly with imported CD...

    Specifically, the last three songs of Bonnie Raitt's Nick of Time album had skips after I imported them into my iTunes library. So, I deleted them and downloaded the same songs from iTunes, and the 9th song, "I Will Not Be Denied", will not sort corr

  • [Oracle 8i] How to convert a string (time stamp) into a date?

    I'm having difficulty figuring out how to convert a time stamp string into a date (or possibly a number). The time stamp is 20 positions, character (NOT NULL, CHAR(20)) in the format: YYYYMMDDHHMMSSUUUUUU where Y = Year, M = Month, D = Day, M = Minut