Getting the current row as the DataGrid is created.

I want to trap the first row of my DataGrid how can I do
this?

Amit, shame you didn't include a code example. The first blog does work...though probably not the most effecient mechanism. The 2nd Blog seems to be missing something as referencing e.site isn't enough. I've included a code sample of what it should be. Please include the routine DeleteNil as you can't assign a value to a null node. If theres a more effecient way..by all means post a blog. Cheers
public void Items_UnitGross_Changed(object sender, XmlEventArgs e)
// Check if value has changed and not a table insertion
if (e.Operation == XmlOperation.ValueChange)
// Get Current Row
XPathNavigator xNavigator = e.Site;
bool bParent = xNavigator.MoveToParent();
// Get Reference to the Gross Value
XPathNavigator xField = xNavigator.SelectSingleNode("boc:UnitGross", this.NamespaceManager);
DeleteNil(xField);
double dGross = Convert.ToDouble(xField.Value);
// Get Reference and set the Net Value
xField = xNavigator.SelectSingleNode("boc:UnitNet", this.NamespaceManager);
DeleteNil(xField);
xField.SetValue(getNet(dGross).ToString());
public void DeleteNil(XPathNavigator node)
if (node.MoveToAttribute("nil", "http://www.w3.org/2001/XMLSchema-instance"))
node.DeleteSelf();
private double getNet(double Gross)
// Calculates the Net Value (without Tax) from the Gross value
double dNet = Gross / C_VATRATE_DIV;
return dNet;

Similar Messages

  • In OBIEE 11G, how to get the special parameter created by JAVA?

    Hi Experts,
    In OBIEE 11G, how to get the special parameter created by JAVA?
    For example:
    In JAVA , it has set one parameter named 'test'.
    So how to get the parameter in filter area in OBIEE?

    Hi Kobe,
    No P2 holds the parameter name like PresentationTable.ColumnName, in your form you may go for complete name or just column name and before submitting the form you can define the Action url.
    I would suggest to read section 6.3.2.1.
    ex:
    <SCRIPT LANGUAGE="JavaScript">
    changeAction(url) {
    var TestVar = form.inputbox.value;
    document.this_form.action="saw.dll?Go&Path=/Shared/Test/SB2&Action=Navigate&P0=1&P1=like&P2=Customers.Region&P3="+TestVar;
    </SCRIPT>
    </HEAD>
    <BODY>
    <FORM NAME="myform" ACTION="" METHOD="GET">Enter something in the box: <BR>
    <INPUT TYPE="text" NAME="inputbox" VALUE=""><P>
    <INPUT TYPE="button" NAME="button" Value="Click" onClick="changeAction(this.value)">
    </FORM>
    If helps pls mark.
    Edited by: veeravalli on Oct 24, 2012 10:25 AM

  • How to get the number of created document?

    Hi all,
    My first program in ABAP works very well. Thanks to all who helped me
    I would like only one function to it.
    The program read data from excel file and generates document using BDC. 
    I use this statement:
    call transaction 'F-65' using bdcdatafile
    I count the number of documents which have been generated or refeused because of error using the sy-subrc function.
    if sy-subrc <> 0.
        counter for errors
    else.
        counter for generated documents
    endif.
    Finally program displays these number on the last screen and the user knows if there everything is ok. For example this is a sample screen:
    1. OK.
    2. OK.
    3. Error.
    Number of imported documents (2)
    Errors (1)
    However, I would like to add one information to these screen. If the document is saved it gets its own number.
    Is any possibility to get this number for displaying?
    Maybe there is a function which returns this number.
    I want to get the scren like this:
    1. OK. Document No. 10000001
    2. OK. Document No. 10000002
    3. Error
    Best regards
    Arek

    The document number should be being passed back via a message.  You need to specifiy to return any messages in the messtab when calling the transaction.
    DATA: MESSTAB type table of BDCMSGCOLL WITH HEADER LINE.
    call transaction 'F-65' using bdcdatafile
                            messages into messtab.
    Messtab will have the messages after the call, you can then read this internal table and check for the success message, usually the document number is in the first variable field, MSGV1.
    Regards,
    Rich Heilman

  • Em uninstalled "start up faster" addon im on firefox version 4 and yet when i try to install again i get the error message create service failed , can anyone tell me how to resolve this , i would like to make sure i get this addon back

    im on firefox 4 ,recently ,i tried new addon for firefox 4 called start up faster, i removed it, just as comparison to see boot up times , and then when i tried to install again i get the message create service failed, the icon stays on my desktop, want to check this addon is still performing its role, or could i fix something to make sure its properly on my addon list, thank you,

    Is it still showing up in your ad-on manager?

  • BAPI commit without using Wait? need to get the data for created order

    I am using BAPI to create or change sales order and by using 'BAPI_TRANSACTION_COMMIT' updating the database.
    Immediately after that there is some requirement to fetch VBAP with the created order number, but there is no data found.
    If i use call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                   wait          =  'X'.
    then i am able to fetch data from VBAP, but its impacting the performance. Is there any alternative way to get data without fetching or without using wait.
    Can i use ABAP memory or SAP memory to get the details?
    Please help...........

    Hi Tapas379,
    Yes technically you can:
    set data before commit
    DATA memory_id(20) TYPE c.
      CONCATENATE 'VBAP_01_' sy-uname INTO memory_id.
      DELETE FROM DATABASE indx(as) ID memory_id.
      EXPORT vbap_tab = vbap_tab "<-input
        TO DATABASE indx(as)
        CLIENT sy-mandt
        ID memory_id.
    Get data from anywhere after setting it.
      data memory_id(20) type c.
      concatenate 'VBAP_01_' sy-uname into memory_id.
      import vbap_tab = vbap_tab " ->output
        from database indx(as)
        client sy-mandt
        id memory_id.
      delete from database indx(as) id memory_id.
    Thanks,
    Duy

  • Getting the Error when creating the WSD(Web Service Defination)

    Hello,
    When I tried to create the WSD(Web Service Defination) through the Wizard or function module I am getting the error "Error during activation" and again it is giving the error "internal error ACTIVATE in WEBSERVICE Wizard;".
    What will be the probable cause of this error.
    Is I have to change some configuration
    Please Suggest.
    Thanks
    Vineet

    I have the same problem - error returned is
    Error during activation
    Message no. WS_TOOL085
    but no further information is provided
    But the Virtual Interface in the package does activate with no problem - so this is WSD specific!
    Some help would be appreciated...

  • Userexits/BADI in ME31K for getting the contract number created.

    Dear Experts,
    Is there any userexits/BADI available in ME31K , for getting the contract number once it is created.
    Thanks&Regards,
    Anversha

    Hi
    find the BADI:
    1. Goto SE24
    2. Open the class "CL_EXITHANDLER"
    3. Open the Metnod "GET_INSTANCE"
    4. Put a Break point in the "  CASE sy-subrc."
    CALL METHOD cl_exithandler=>get_class_name_by_interface
        EXPORTING
          instance                      = instance
        IMPORTING
          class_name                    = class_name
        CHANGING
          exit_name                     = exit_name
        EXCEPTIONS
          no_reference                  = 1
          no_interface_reference        = 2
          no_exit_interface             = 3
          data_incons_in_exit_managem   = 4
          class_not_implement_interface = 5
          OTHERS                        = 6.
      CASE sy-subrc.
        WHEN 1.
          RAISE no_reference.
        WHEN 2.
          RAISE no_interface_reference.
        WHEN 3.
          RAISE no_exit_interface.
        WHEN 4.
          RAISE data_incons_in_exit_managem.
        WHEN 5.
          RAISE class_not_implement_interface.
      ENDCASE.
    5. Come Back and Execute the Transaction Code
    6. In the Debugging screen "exit_name" having the BADI Name for that Tcode.

  • HT2534 I do not get the option to create itunes id with paypal or with NONE option

    I am trying o create an id for my iphone on itunes but i am unable to create it without a credit card. I am not getting the option none or paypal as it should be.
    thank you                   

    this problem has been solved

  • Unable to get the dataSources while creating the persistent stores.

    Hi, While I am trying to create a persistent store (JDBC Store) I am unable to see the already created DataSources in the dropdown menu. I also tried creating new DataSource from Persistent Store creating screen but still could not see.
    Following steps followed while creating DataSource.
    Fill in the values for
    Name, E.g.: JD-JDBC-Store.
    JNDI Name – jdbc/JobDispatcherDS.
    DatabaseType – Oracle
    Database Driver - Retain the default selection
    Click on ‘Next’
    Click on ‘Next’
    Fill in values for:
    Database Name – SID of the Database
    Host Name – The hostname/IP on which the Database is running
    Port – DB Port
    Database User Name - JOBUSER.
    Password – JOBUSER
    Click on ‘Next’
    Click on ‘Test Configuration’ to ensure the correctness of the values. Got a success message on the screen.
    Click on ‘Next’
    Select your target server. E.g.: AdminServer
    Click on ‘Finish’
    Following steps while creating the Persistent Store
    Clicked on New button. Select ‘Create New JDBC Store’ Option
    Fill in the values.
    name – E.g.: JD-JDBC-Store
    Target server - admin Server.
    data source - not able to get any to select from the DropDown.
    Thank You,
    Naresh.

    Dear Rajesh ,
    I am assuming your server is on Windows  :
    For Eg.
    My SID is PRD and system number 02 and hostname prdserver then command should be execute like : 
    E:\usr\sap\PRD\DVEBMGS02\exe>jcmon pf=E:\usr\sap\PRD\SYS\profile\PRD_DVEBMGS02_prdserver
    Rest all are same :
    In JControl Monitor Program - Main Menu :
    Select : 20 : Local Administration Menu
    And check the status of server0 process it shoud be up and running .
    Regards ,
    Santosh

  • I can't get the ringtone to create!

    for days i've been trying to create ringtones on songs where that is possible. I get through the whole process, even log into my account and there are no darned ringtones. it's maddening. i haven't seen any posts of people that finished the process only to find that nothing really happened.

    GarageBand '11 - Create an iPhone ringtone - Apple Support

  • How can I get the soundcard to create event markers on voltage acquisition

    Hello,
    I'm new to Labview and I'm required to create a program that can acquire a voltage..  sounds simple.. the difficult part is that it needs to be able to create event markers on the data to indicate that a sound has occurred.  
    If I could somehow route the audio input to the trigger channel of my NI DAQcard6024E and set the threshold level it would work, but I can't find a way to do this.
    To put it in a real-life scenario... what is happening is that I'm acquiring EEG (brainwave) voltages whilst presenting a series of auditory 'clicks'.  We want to examine the changes in EEG that occur in response to these clicks.  So I need to have some way of establishing exactly when the sounds were presented on the EEG data.
    Hope somebody can help  At the moment my VI can acquire voltage data continuously and write the files to excel, but I can't work out how to create event markers for when the stimulus occurred.
    Thanks
    Shane 

    I still think it should be possible to make a breakout cable. But I guess the person responsible for the Lab is not a technical person. Or he/she is more concerned about the equipment than the student projects. That is quite common among such personal.
    I am also reading you are using a sound card for acquiring EEG. That is a very big NO-NO. This because sound cards are AC coupled. And this will limit the lower bandwidth to about 10Hz. So signals below about 10Hz is filtered out. EEG require a bandwidth from about 0.5Hz to 100Hz.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • I am getting the error while creating the JCO connection -Urgent

    Hi iam gettng the following error. Can any body identify what will be the error.
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=buzzard GROUP=SPACE R3NAME=MT4 MSSERV=sapmsMT4 PCS=1 ERROR       service 'sapmsMT4' unknown TIME        Mon Oct 22 20:01:09 2007 RELEASE     700 COMPONENT   NI (network interface) VERSION     38 RC          -3 MODULE      ninti.c LINE        530 DETAIL      NiPGetServByName2: service 'sapmsMT4' not found SYSTEM CALL getservbyname_r COUNTER     3
    Vijay

    Hi,
       One small correction and addition. Check for group 'SPACE'. Check for appropriate entry in services and also hosts file from C:\WINDOWS\system32\drivers\etc. If possible, restart both the servers and check.
    Regards,
    Harini S

  • When trying to download videos from any site i get the message cannot create target file

    I have tried uninstalling firefox and video download helper then reinstalling them and changing the destination folder and resetting the commands .

    Do you see a "3G", "E", or "o" next to the carrier name and signal indicator on the phone? If not, then you are not connected to a cellular data network at all. It's not impossible that you're not in range of their data network. Who is your carrier and where are you located?
    If you do see one of those, you may want to call them again and ask explicitly to have them check the provisioning on your account.  Just because it looks right in the billing system does NOT mean they have it set up correctly.

  • How can I get the printed message of stored procedure in JPA

    Hi, I'm using JPA to invoke stored procedure in database, a segment of the sproc is like below:
    if @create_type != 'a1' and @create_type != 'a'
         begin
         print 'create type must be either ''a1'' if you pass in A1 ID, or ''a'' if you pass in User ID'
         select 0 as "Result"
         endI can get the 0 as the result, it means business operation failed currently, but how could I get the message of 'create type must be either ''a1'' if you pass in A1 ID, or ''a'' if you pass in User ID'?
    That information is important as it indicates why the operation failed.
    Thanks

    how can i get rows count returned by stored procedure in oracle sql developer?
    Procedures do NOT return a value - functions return a value.
    A procedure executes whatever code it contains. That code could contain many queries that produce many row counts.
    Does your procedure take one or more IN, OUT or IN OUT parameters?
    See example 8-1 for an example of executing a procedure that has an OUT parameter.
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/subprograms.htm#CHDBIEEE

  • HT1918 How do you solve an issue with the card? I don't get the option of 'none' :(

    How do you solve an issue with the card? I don't get the option of 'none'

    I had this exact same problem with the new iPhone I bought on 1/4/13. The walk through they provide on how to do this is useless because it fails to explain that if you are already having the problem of not getting the "None" payment option with an Apple ID then you will need to create a completely new Apple ID.
    I had to do this 7 times since I bought my iPhone on Friday until this morning to figure out how to finally be able to use the Home Sharing option in iTunes to put my music collection on my brand new $500.00 iPhone. Pretty pathetic if you ask me but since it made me so angry I want to make sure other know how to do this so you don't get as upset as I did.
    #1 If your current or soon to be "old" Apple ID is not providing the option for "None" as a payment option then you need to make a brand new one. But you have to make it specifically how I tell you.
    #2 You will need to use an email address that has not already been used for anything related to a previous Apple ID. You might need to make a brand new email address.
    #3 Open iTunes, then open iTunes Store (upper right corner of iTunes).
    #4 Click on App Store (upper center of screen).
    #5 Scroll down the screen page until you see Top Free Apps on the right side.
    #6 Choose any one of the FREE apps.
    #7 You should either get the option to create a new Apple ID box, either that, or it will pop up with some kind of disclaimer and then it does the create new Apple ID.
    Either way just create a new Apple ID when it gives you the option to and then when you get to the page that looks like the payment page the "None" payment option will finally be available.
    Note: You will still have to fill out the information on the payment page. As long as you choose the "None" option it will not request any credit card information.
    #8 You will be sent a confirmation email to the new email account. Just follow through with what ever it tells you and viola now you can use your Apple Device.
    What a pain in the keester, eh?

Maybe you are looking for

  • Yoga 2 11 Windows closes all my programs when I close the lid

    Lenovo Yoga 2 11 Model 20332 Windows 8.1 64-bit When I close the lid of the tablet/laptop, I expect that Windows will go to sleep and that when I open the computer and login, all of my windows and programs should be open as I had them when I closed t

  • HT4847 i am unable to sign into icloud on my windows 7 computer using the icloud control panel . keep on saying server error

    unable to sign into icloud account from my windows 7 pc. keep on getting the message serwr not available

  • What models have Trusted Platform Module (TPM)?

    I'm in the processs of enabeling Bitlocker on my new Thinkpad Edge E531 running Windows 7 Ultimate 64-bit. Windows seems to think the machine does not have a Trusted Platform Module (TPM) chip installed, which nowadays one would think would be pretty

  • New in sql developer

    Hi, I am evaluating sql developer. i tried to download the installer from http://www.oracle.com/technology/software/products/sql/index.html ( Oracle SQL Developer for Windows - 55.8MB). I followed the installation guide and explored it. I am also abl

  • 3KEH and FAGL3KEH

    Hi, We are implementing ECC 6.0 without activating new GL and with Classic PCA. For the PCA default for Balance sheet accounts when i configure through 3KEH i couldnot get the PC in FI positngs When i do this config in FAGL3KEH PC is getting updated