Changing the field name at runtime in rpt file

Hi everybody
I'm using C# and Crystal Report XI (Deverlop license) to develop windows application in VS.net 2003.
Please help me to change the field name of the bounded column of Crystal report file at the runtime.
(In some case client's database had changed the structure as fieldname, fieldtype. Then they request a utility to change the field names in the .rpt file programmatically )
Thanks
GiangSon
My email address: [email protected]

user11200661 wrote:
That's fine but still i want to prefix the schema name within the .sql file. My .sql should contain the name of that parameter only as i want to get that parameter replaced by the schema name at runtime. Some other users are using the same .sql file and they have access to that specific schema only. i want to make the .sql file more general so that it can be used by everyone without altering it every time.Sorry, your requirement no longer makes sense.
If people have to access a specific schema because they need the script for general use, then you will have to hard code the schema name into it.
If the script is to prompt for the schema name and connect to that schema and then use that schema name inside the called sql script, then people would not be able to use it generically, as it would be reliant upon the schema name being passed in.
It sounds as if you're trying to write one generic thing that needs to do two different tasks.
Just have two scripts and make life simple.

Similar Messages

  • Script : how to change the Field name in standard program(ZM_MEDRUCK)

    Hi Experts,
    I am working with SAP SCRIPT. i need to change the Field Name that is PO NO to Document No & PO DATE to Document Date.
    These are assigned in data declaration as gv_name and gv_date.
    Can anyone help me to change this Fields.
    Regards,
    Vijayan.R

    Hi,
    You can archive this by making change in SAP script only. You don't need to touch the standard prgm.
    Debug the script and find it out which fields (In script editor) are printing these text on layout... then just replace them by creating your own text...
    You can create a text in TTDTG table,, like ZZPO_NAME = ( Document Name),, and use this filed in the script editor.
    &ZZPO_NAME&

  • How to change the field name in SUS

    HI,
    In the section view all PO's, I want to change the field name  <b>document number</b> to <b>invoice number</b>.Please do let me know how to go about it.
    Thanks in advance ,
    Manu

    Hi,
    The text ID should be first identified in the BSP (BBP_SUS_UI/DOC_NUMBER?)
    Next execute SOTR_EDIT and use the FInd button. Enter the package of the BSP object (BBP_SUS_U?) and select the language as English. Execute the program and you will a complete list of text used in SUS screen. Locate the text ID as above and double click to change based on what you need.
    Regards.

  • Changing the field names in a CFQUERY object

    Hello, I wonder whether you know the answer to this?
    I want to change the names of the fields in a CFQUERY result
    set after I have retrieved the results from the database (ie. I
    can't use "AS" in the original SQL statement). I can think of 2
    ways to do this - use the query-a-query (CFSQL) feature or just
    build and populate a new query object, as set out below:
    <cfquery name="CustList" datasource="name">
    SELECT CustId,CustName,CustAddress FROM Customers
    WHERE OrderStatus='P'
    </cfquery>
    OPTION#1:
    <cfqueryname="GenericList" type="query">
    SELECT CustId AS Id,CustName AS Name,CustAddress AS Address
    FROM CustList
    </cfquery>
    OPTION#2:
    <cfset GenericList = QueryNew("Id,Name,Address")>
    <cfloop query="CustList">
    <cfset unused = QueryAddRow(GenericList)>
    <cfset unused =
    QuerySetCell(GenericList,"Id",CustList.CustId)>
    <cfset unused =
    QuerySetCell(GenericList,"Name",CustList.CustName)>
    <cfset unused =
    QuerySetCell(GenericList,"Address",CustList.CustAddress)>
    </cfloop>
    Do you know which of these would be more efficient? And is
    there a better way, whereby I can maniplulate the names of the
    columns in the original query (ie. so that I can rename the
    "CustName" field to "Name" and then use "CustList.Name" directly)?
    Thanks!

    Thanks guys!
    If there is a close to zero overhead to the simple
    query-a-query then that seems like the way to go, with no need to
    look for a means of manipulating or modifying the original query.
    The reason I want to change the field names is so that the
    rest of my code can contain references to "CustList.Name" whereas
    otherwise I would have to do something like
    "Evaluate('CustList.#NameField#')" which is horribly messy. And the
    way the original query is generated means I can't use "AS" in it,
    but I still want to use the same code to work with that query
    result and other query results that share similar/related data with
    different field names.

  • How to change the field name

    I want to change the field name in Oracle schema
    Can I do ir?
    If yes, please tell me how to type the SQL
    Thanks

    Use ALTTAB command of my freeware SQLPlusPlus to ALTER a table anyway you like including inserting columns within the middle of the table.
    regards,
    M. Armaghan Saqib
    SQL PlusPlus - Add power to command line of SQL Plus
    SQL Link for XL - Integrate Oracle with XL
    Download free: http://www.geocities.com/armaghan/
    null

  • E-recruiting: Requisition management - Possible to change the field names??

    Hi to all e-recruiting experts,
    Need some assistance pertaining to the requisition management portion in e-recruiting.
    We have showed the standard SAP E-recruiting requisition bsp pages to our client and they have requested changes to the field names as they feel that the standard names are not intuitive enough.
    For instance,
    The field - "Hierarchy Level" - They have requested to change to "Job Grade"
    and the field "Functional Area"  to "Type of Work".
    Is there any way that i can change the name of the field through configurations?
    I understand that in a infotype, we can change the field name through translation. But can we change it in BSP? I was told to explore on how to configure via OTR.
    Can anyone share on the steps involved?
    Many thanks in advance.

    Well quite easy,
    create a context for an otr text (E-Recruiting are in package PAOC_RCF_UI). You will find that in SOTR_EDIT.
    Activate this context with implementing BADI BTFR_CONTEXT.
    After doing this, adjust context in SOTR_EDIT with Go To -> Context -> Adjust.
    Eventually refresh otr buffer with Transaction /$otr
    For one text there can be more than one OTR Text in backend, so you might change more than one.
    Regards

  • Changing the Field Names

    Hi,
    I am dynamically adding rows to a table using the following code
    SheetIndexForm.Page1.tblSheets.trSheet.instanceManager.addInstance(true);
    The rows cells are all text fields for user data input. Rows are getting added perfectly fine along with the text fields. The only issue I am facing is that all the new rows have the same name as the first row. Is there anyway I can change the name of the new row to something else. I tried
    newRow.name = "trSheet" + newRowIndex.toString();
    but it does not work. The XFA field names will still be the same.

    The field name will be the same but the row that they are from will be unique. So If the Row subform is called Row  and the field is called field you will have Row[0].Field, Row{1].Field, Row[2].Field...etc
    Now how do you reference that in an expression seeing as the [ ] are used for arrays in Javascript. You would need teh xfa.resolveNode("string .....") sytax. So if you want to add all three values you woudl use ths sytax:
    Total.rawValue = xfa.resolveNode(Row[0].Field).rawValue + xfa.resolveNode(Row[1].Field).rawValue  + xfa.resolveNode(Row[2].Field).rawValue
    Or if you want to more sophisticated:
    for (i=0;i<Row.instanceManager.count;i++){
         Total.rawValue += xfa.resolveNode("Row[" + i + "].Field).rawValue
    Note that the count is 1 based but th einstances are 0 based!
    Hope that helps
    Paul

  • Powershell: How to change the header name in a imported CSV file

    HI All,
    I have a csv file in which I want to change the headers names in powershell.
    oldnames are name,id
    newnames I want to give are: company and transit respectively.
    Following is what I wrote in script:
               $a = import-csv .\finalexam\employees.csv -header name,id'
                       foreach ($a in $as[1-$as.count-1])  // I used 1 here because I want it to ignore the  exiting headers.
                      { $_.name -eq company, $_.id -eq transit}
    I think this not entirely correct way to do this. Can someone show me how to fix this.
    Regards
    SQL 75

    If you're not an experienced PowerShell programmer, I recommend editing the file in a text editor and changing the name that way.
    -- Bill Stewart [Bill_Stewart]

  • Can you change the field names in the address book?

    Can you change the Pager field name to read 2nd cell?

    No.
    This add-on https://freeshell.de//~kaosmos/morecols-en.html allows you to modify the labels of the 4 custom fields of the contact card

  • After changing the field name in BM layer, drilldown field is not in order

    We have an organization hierarchy region->branch used in our HBD dashboard report. When we drilldown to branch level report by clicking the region field, the result is OK but branch field is not in order. The branch level order was working fine before we changed this BRANCH field name in BM layer from Team/Branch to Branch.

    I have confirmed that I know the user who originally posted this to Metalink. This issue is no longer a problem. Rebooting resulted in the order displaying properly.

  • Change of field Name

    I am having 20 fields in a table and in this table i am having about sis lakhs record. Now i realised that one of the field name is spelt wrongly.I am using oracle 8i now without doing anything to the table i must have to change the field name,
    Foe example the wrong field is martialstatus and it should be corrected to maritalstatus.
    If any body having any answers can reply to this mailid [email protected]

    Suresh,
    You have 6 hundred thousand records in a table, You are lucky with 8i this is no problem,
    You can solve this in two ways,
    1. Create a new table with correct field name and then insert all record into the new table.
    2. Create the new field with correct name in
    the same table and then copy the data from the old field into new field and then use the DROP COLUM command and drop the old field.
    Good Luck
    Nisar Tareen.
    Canada.
    null

  • How to get the field name of an internal table during runtime?

    How to get the field name of an internal table during runtime?

    Hi  Sudhir,
    Declare and Use Get Cursor Field in Your Prm to get the field Name of the Intenal Table
    Example Code:
        <b>  DATA: v_field(60).                        " Insert this code.
         GET CURSOR FIELD v_field.        " Insert this code.</b>
         <b>CHECK v_field = 'ITAB-KUNNR'.    " Insert this code. (or)
    Write: v_field.</b>
    Regards,
    Ramganesan K.

  • Click on the field name of a multiple form in change value

    In previous versions of Acrobat, you could click on a field and push the + or minus key to change the field number.

    This is a forum related to System Center Service Manager. Your question seems to be related to Sharepoint 2010. Maybe it's better to ask in the Sharepoint 2010 forum, for instance: General
    Discussions and Questions
    Andreas Baumgarten | H&D International Group

  • Change the host name of communication channel at runtime

    Hi,
    I am connecting to an SQL server using a JDBC receiver communication channel.
    The vendor who is managing this SQL server says that he has a primary server with the ip <IP1> and a secondary server with ip <IP2>.
    He wants me to switch to IP2 when IP1 is down.
    Is there any possibility of  to achieve this ?
    regards,
    Piyush

    I dont think there is any options available in JDBC adapter to change the host name dynamically...
    what u can do is - u create a dummy scenario which will just check whether the database is up or not and store the flag values in PI ABAP stack..
    Now before u send data to JDBC u do look up and check which server is up...and based on that u divert ur message to required system.
    thats what I can think of now...
    chirag

  • Change the field description in the query report

    Dear All,
    I have created a querry using SQVI,It is working fine Now i want to change the field description in the querry report,Please suggest on this.

    Hi,
    follow below steps
    SQVI -> Enter Report name -> Change -> click on layout mode - > Expand tables - > double click on filed names - >
    coming right side you are able see list of output fields .
    Just double click on the field then going to the editable mode Description.
    Thanks
    Balakrishna

Maybe you are looking for

  • Edit MP3 Information by tabbing to next field

    Hi everyone.  I recentely updated my iTunes to the latest version (10.4) on Snow Leopard.  After the update I have lost the ability to tab through the various fields while editing a MP3 in list view.  For example, when I click to edit the song Name,

  • Update Business Partner Master Data for Incident Management

    Hi fellow SAP-ians, I have two questions that I need to ask in relation to Incident Management SOLMAN 7.1: 1) Can Business Partner (BP) master data be mass updated via a catt script? (recording of transaction BP) 2) What BP roles can I use if i need

  • Interactive activity with multiple business rule transitions

    I use BPM standalone and studio 10g. I create two business rules. Business rule 1: amount greater than 100. Business rule 2: amount greater than 300. An interactive activity has two business rule transitions and an unconditional transition. This acti

  • To post items in EBS

    Hi All, There was a new external transaction sent by bank (020) which had not been configured in the system. We have an external transaction ZZZ which will be taken by the system if it is not able to recognise any external transaction. ZZZ is assigne

  • Release PO after any change in PO

    Dear Experts,                      I have change the standard PO workflow WS20000075 to 3 levels and only using the RELEASESTEPCREATED. when user reject the PO in any level, "OTHER THAN 1st LEVEL" it reset the release strategy using BAPI_PO_RESET_REL