Setting displayname as header in GetDataTable

HI,
I am fetching records from a custom list and binding to a datatable.
The datatable works, but the header shows the Internal names of the columns. How to set the display name of the column as header when converting to datatable.
My current code is as below:
SPQuery listQuery = new SPQuery();
listQuery.Query = "<Where><Eq><FieldRef Name='" + testName+ "' /><Value Type='Text'>" + "abc" + "</Value></Eq></Where><OrderBy><FieldRef Name='Created' Ascending='FALSE' /></OrderBy>";
SPListItemCollection spListItemCol = list.GetItems(listQuery);
Datatable dtGeneratedList = spListItemCol.GetDataTable();
How to show the display name as header?
Thanks

R u binding dtGeneratedList  to any control like gridveiw?
DataTable dt = new
DataTable();
// code here to get your datatable
dt.Columns.Add("rowheader");
foreach (DataRow r
in dt.Rows)
    r["rowheader"]
= "internal name of col";
below logic is for getting internal names of field
  private string GetFieldInternalNameForCaml(SPList list, string displayName)
            string internalName = string.Empty;
            for (int i = 0; i < list.Fields.Count; i++)
                if (list.Fields[i].Title.Trim() == displayName.Trim())
                    internalName = list.Fields[i].InternalName;
                    break;
            return internalName;

Similar Messages

  • Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down).

    # Question
    Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down). I tried to understand but different javascript file gets different Expires date value when it is being cached. Please help me as I tried lot and could not get proper answer for this. Thanks in Advance.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • How do I set the Track Header in such a way that both the solo and mute are turned off?

    How do I set the Track Header in such a way that both the solo and mute are turned off?

    Another possible solution is to use a battery grip on your 70D and see if the dial on the grip will change the shutter speed.
    There are some discussions about this problem on some earlier models Canon DSLR. Check it out.
    http://www.dpreview.com/forums/thread/2638326

  • Set row as header using applescript

    I am new to AppleScript and I am writing my first script to crunch some data in numbers. I am trying to figure out how to set row one as the header row in sheet 1 using the script. Can anyone help?

    Here is a script a bit more powerful that what you asked for but it's of more general use.
    --{code}
    --[SCRIPT set_count_of_Xers]
    Enregistrer le script en tant que Script : set_count_of_Xers.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Aller au menu Scripts , choisir Numbers puis choisir “set_count_of_Xers”
    En fonction des paramètres passés, le script fixera le nombre de Rangs d’en-tête, Colonnes d’en-tête ou Rangs de bas de tableau dans le tableau table_name de la feuille sheet_name du document doc_name.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: set_count_of_Xers.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Go to the Scripts Menu, choose Numbers, then choose “set_count_of_Xers”
    According to the defined parameters, the script will set the count of HEADer ROWs, HEADer COLUMNs or FOOTer ROWS in the table table_name of the sheet sheet_name in the document doc_name.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/09/21
    --=====
    property forTests : false
    true may be useful for tests. It triggers the handler select_SubMenu which list the UI elements.
    false is the setting to apply when the script is finished because it runs faster.
    --=====
    on run
              my activateGUIscripting()
    This script is a general one allowing to treat the defined table
              set doc_name to 1
              set sheet_name to "Feuille 2"
              set table_name to "Tableau 1"
              set which_item to 10
              set nb_Xers to 1
              my setNbXers(doc_name, sheet_name, table_name, which_item, nb_Xers) (* to set 1 HEADer ROW *)
    end run
    --=====
    which = 10 --> set count of HEADer ROWs
              my setNbXers(1, "Feuille 2", "Tableau 1", 10, 1) (* to set 1 HEADer ROW *)
    which = 11 --> set count of HEADer COLUMNs
              my setNbXers("my doc.numbers", "Sheet 5", "Table aux", 11, 4) (* to set 4 HEADer COLUMNs *)
    which = 14 --> set count of FOOTer ROWs
              my setNbXers("ASCII.numbers", "Sheet of paper", "TableTop", 14, 3) (* to set 3 FOOTer ROWs *)
    on setNbXers(docName, sheetName, tableName, whichItem, nbXers)
              my selectTable(docName, sheetName, tableName)
              if forTests then
                        my select_SubMenu("Numbers", 6, whichItem, nbXers + 1)
              else
                        my selectSubMenu("Numbers", 6, whichItem, nbXers + 1)
              end if
    end setNbXers
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    on get_SelParams()
              local d_name, s_name, t_name, row_num1, col_num1, row_num2, col_num2
              tell application "Numbers" to tell document 1
                        set d_name to its name
                        set s_name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if
                        end if
                        tell sheet s_name to tell (first table where selection range is not missing value)
                                  tell selection range
                                            set {top_left, bottom_right} to {name of first cell, name of last cell}
                                  end tell
                                  set t_name to its name
                                  tell cell top_left to set {row_num1, col_num1} to {address of its row, address of its column}
                                  if top_left is bottom_right then
                                            set {row_num2, col_num2} to {row_num1, col_num1}
                                  else
                                            tell cell bottom_right to set {row_num2, col_num2} to {address of its row, address of its column}
                                  end if
                        end tell -- sheet…
                        return {d_name, s_name, t_name, row_num1, col_num1, row_num2, col_num2}
              end tell -- Numbers
    end get_SelParams
    --=====
    on parleAnglais()
              local z
              try
                        tell application "Numbers" to set z to localized string "Cancel"
              on error
                        set z to "Cancel"
              end try
              return (z is not "Annuler")
    end parleAnglais
    --=====
    on decoupe(t, d)
              local oTIDs, l
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d
              set l to text items of t
              set AppleScript's text item delimiters to oTIDs
              return l
    end decoupe
    --=====
    on activateGUIscripting()
      (* to be sure than GUI scripting will be active *)
              tell application "System Events"
                        if not (UI elements enabled) then set (UI elements enabled) to true
              end tell
    end activateGUIscripting
    --=====
    ==== Uses GUIscripting ====
    on selectTable(theDoc, theSheet, theTable)
              local maybe, targetSheetRow, rowIndex, r
              try
                        tell application "Numbers"
      activate
                                  set theDoc to name of document theDoc (* useful if the passed value is a number. Checks also that we passed the name of an open doc *)
                        end tell -- Numbers
              on error
                        if my parleAnglais() then
                                  error "The spreadsheet “" & theDoc & "” is not open !"
                        else
                                  error "Le tableur « " & theDoc & " » n’est pas ouvert ! "
                        end if -- my parleAnglais
              end try
              try
                        tell application "Numbers" to tell document theDoc
                                  set theSheet to name of sheet theSheet (* useful if the passed value is a number and check the availability of theSheet if it’s a string *)
                        end tell -- Numbers
              on error
                        if my parleAnglais() then
                                  error "The sheet “" & theSheet & "” is unavailable in the spreadsheet “" & theDoc & "” !"
                        else
                                  error "La feuille « " & theSheet & " » n’existe pas dans le tableur « " & theDoc & " » ! "
                        end if -- my parleAnglais
              end try
              try
                        tell application "Numbers" to tell document theDoc to tell sheet theSheet
                                  set theTable to name of table theTable (* useful if the passed value is a number and check the availability of theSheet if it’s a string *)
                        end tell -- Numbers
              on error
                        if my parleAnglais() then
                                  error "The table “" & theTable & "” is unavailable in the sheet “" & theSheet & "”  of the spreadsheet “" & d & "” !"
                        else
                                  error "La table « " & theTable & " » n’existe pas dans la feuille « " & theSheet & " »  du tableur « " & d & " » ! "
                        end if -- my parleAnglais
              end try
              set maybe to 5 > (system attribute "sys2")
              tell application "System Events" to tell application process "Numbers"
                        tell outline 1 of scroll area 1 of splitter group 1 of splitter group 1 of window theDoc
                                  if maybe then (* macOS X 10.4.x
    '(value of attributes contains 0)': '(value of attribute "AXDisclosureLevel" is 0)' sometimes works in Tiger, sometimes not.
    The only possible instances of 0 amongst the attributes are the disclosure level of a sheet row and the index of the first row, which represents a sheet anyway.
    Another possibility is '(value of attribute -1 is 0)', which makes me uneasy. *)
                                            set targetSheetRow to first row where ((value of attributes contains 0) and (value of first static text is theSheet))
                                  else (* macOS X 10.5.x or higher *)
                                            set targetSheetRow to first row where ((value of attribute "AXDisclosureLevel" is 0) and ((groups is {}) and (value of first static text is theSheet)) or (value of first group's first static text is theSheet))
                                  end if -- maybe
                                  tell targetSheetRow to set {value of attribute "AXSelected", value of attribute "AXDisclosing"} to {true, true}
      -- Get the sheet row's 0-based index + 2 for the following row's 1-based index.
                                  set r to (value of attribute "AXIndex" of targetSheetRow) + 2
                                  repeat until (value of first static text of row r is theTable)
                                            set r to r + 1
                                  end repeat
                                  set value of attribute "AXSelected" of row r to true
                        end tell -- outline 1 …
              end tell -- System Events
    end selectTable
    --=====
    my selectSubMenu("Pages",6, 4, 26)
    ==== Uses GUIscripting ====
    on selectSubMenu(theApp, mt, mi, ms)
              tell application theApp
      activate
                        tell application "System Events" to tell process theApp to tell menu bar 1 to ¬
                                  tell menu bar item mt to tell menu 1 to tell menu item mi to tell menu 1 to click menu item ms
              end tell -- application theApp
    end selectSubMenu
    --=====
    useful to get the indexs of the triggered item
    my select_SubMenu("Numbers", 6, 10, 1+1) (* Table > Header rows > 1 *)
    on select_SubMenu(theApp, mt, mi, ms)
              tell application theApp
      activate
                        tell application "System Events" to tell process theApp to tell menu bar 1
                                  get name of menu bar items
    01 - "Apple",
    02 - "Numbers",
    03 - "Fichier",
    04 - "Édition",
    05 - "Insertion",
    06 - "Tableau",
    07 - "Format",
    08 - "Disposition",
    09 - "Présentation",
    10 - "Fenêtre",
    11 - "Partage",
    12 - "Aide"}
                                  get name of menu bar item mt
      -- {"Tableau"}
                                  tell menu bar item mt to tell menu 1
                                            get name of menu items
    01 - "Insérer un rang d’en-tête au-dessus"
    02 - "Insérer un rang d’en-tête en dessous"
    03 - missing value
    04 - "Insérer une colonne d’en-tête avant"
    05 - "Insérer une colonne d’en-tête après"
    06 - missing value
    07 - "Supprimer le rang"
    08 - "Supprimer la colonne"
    09 - missing value
    10 - "Rangs d’en-tête"
    11 - "Colonnes d’en-tête"
    12 - "Bloquer les rangs d’en-tête"
    13 - "Bloquer les colonnes d’en-tête"
    14 - "Rangs de bas de tableau"
    15 - missing value
    16 - "Ajuster les rangs au contenu"
    17 - "Ajuster les colonnes au contenu"
    18 - missing value
    19 - "Afficher tous les rangs"
    20 - "Afficher toutes les colonnes"
    21 - "Activer toutes les catégories"
    22 - missing value
    23 - "Fusionner les cellules"
    24 - "Diviser en rangs"
    25 - "Diviser en colonnes"
    26 - missing value
    27 - "Répartir les rangs uniformément"
    28 - "Répartir les colonnes uniformément"
    29 - missing value

  • Setting a response header in a CQ5 publishing instance

    I want to disable caching in a CQ component and I have the following line in my jsp (documentation):
    response.setHeader("Dispatcher", "no-cache");
    If I insert the component in a page and load the page in an authoring instance everything works as expected and I get an HTTP header named Dispatcher with the content no-cache.
    Now if I do the same on a publishing instance (same configuration with CQ_RUNMODE='publish' and same content) the component works but for setting the HTTP header.
    Any idea on why the two instances could behave differently?

    I checked that the code is published and I tried to generate a minimal example.
    While removing unnecessary stuff from the page I noticed that after a given threshhold the header is generated.
    This buy just removing HTML (no code). I reach a point where if I remove a simple
    <div></div>
    the page is correctly delivered with the header, if I insert it back the header is no more there.
    Could this be related to HTTP chunking? If yes how can I disable it to debug?

  • OSB - Setting http Authorization header with Proxy Service

    Hi,
    I have the following scenario:
    PS1 -> PS2 -> BS (with a SA configured to pass through)
    I need to set the Authorization http header based on some information in payload, so:
    PS1 receives the payload and route to PS2, where username/password are extracted and using a java call out the base64 hash is generated.
    In the PS2 route i'm trying to set the Authorization header using the set Transport Headers option.
    When i do a request to test this operation, osb show me a beautiful CredentialNotFound exception.
    I have tryied to set the Authorization header in the route on the PS1, without success.
    Someone can help me ?

    I can't set the Proxy Service to do the authentication. I will try to explain better:
    I have a Business Service which have a Service Account associated to pass through the Authorization header to the service provider do the validation.
    I front of this business service i have a Proxy Service which route the requests to the BS.
    All partners send this Authorization header, but now, i have one that will not send no matter what.
    The username and passwrod will come into the payload (and will be variable).
    In some point before the proccess i need to extract the information from payload and set the Authorization header.
    Ty for you time.
    Edited by: GSanches on 09/07/2010 09:59

  • How to set advance table header with a value?

    I have a advance table in which there are columns monday,tuesday.....sunday and i need to set the column header with the current week date for monday, tuesday.....sunday
    i can find the date from the VO query for each day
    but
    how can i set the Advancetable column header with the current date for monday,tuesday.....sunday ?

    Hi,
    Try the way suggested by Meher, if you are not able to find the OASortableHeaderBean then try the below one
    // Get a handle to the column's header
    OAColumnBean columnBean =
      (OAColumnBean)tableBean.findIndexedChildRecursive("<columnBeanId>");
    OASortableHeaderBean colHeaderBean =
      (OASortableHeaderBean)columnBean.getColumnHeader();
    colHeaderBean.setText(sysdate);Regards,
    Gyan
    Edited by: Gyan on Feb 2, 2011 10:24 PM

  • Setting Scroll Area Header Title Dynamically

    Hi guys
    I am having a problem, I want to set the Scroll Area Header Title in a sub-page Dynamically.
    is there any way to achieve that?
    Thanks for the answer

    It is not possible to set scroll area header dynamically using Peoplecode.
    May be you can have multiple scroll areas and display/hide each one accordingly.

  • Setting the JMS Header from Payload

    Hi Experts,
    My requirement is to send the payment data coming from ECC to non sap system.Sender adapter is proxy and receiver is JMS.ECC will be sending the filename in one field and payload content as a string in another field.PI has to set the filename coming from ECC in JMS header property.What configuration changes should i need to make in JMS adapter to achieve it?
    Converting the XML to string is possible in PI.But my question is converting the string XML data into XML fields is possible in SAP PI?If so how to do that?
    Please provide your suggestion.
    Regards,
    Karthiga

    Hi Karthiga,
    The UDF is there in blog
    DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");
                DynamicConfigurationKey dynamicconfigurationkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS", "DCJMSMessageProperty0");
                String s = dynamicconfiguration.get(dynamicconfigurationkey);
                CorrID.append(s);
    Please let me know if you have any issue.
    regards,
    Harish

  • How to set a page header and footer of an excel file i'm creating

    Hello !
    SORRY MY ENGLISH is very BAD.
    I tried to set page header and footer in Excel sheet with ABAP  ole
    DATA : BEGIN OF enter,
    x(1) TYPE x VALUE '0D',
    END OF enter.
    DATA : format(255) TYPE c.
    FORM set_page_sheet.
    CALL METHOD OF excel 'ActiveSheet' = sheet.
    CALL METHOD OF sheet 'PageSetup' = pagesetup.
    SET PROPERTY OF pagesetup 'Orientation' = xllandscape.
    SET PROPERTY OF pagesetup 'PrintTitleRows' = '$9:$12'.
    CLEAR format.
    ERROR
    CONCATENATE 'PAGESHEET' enter-x 'PAGE &P/&N' INTO format.
    ERROR
    SET PROPERTY OF pagesetup 'RightHeader' = format.
    CLEAR format.
    CONCATENATE ' Text 1 ' enter-x 'Text 2'
    enter-x 'Text 3 ' INTO format.
    SET PROPERTY OF pagesetup 'RightFooter' = format.
    FREE OBJECT pagesetup.
    ENDFORM. " set_page_sheet
    Activate report -
    ERROR - The enter-x must by data type c or another then data type x
    Thanks for answer.

    Try to define ENTER this way & try
    class cl_abap_char_utilities definition load.
    DATA : BEGIN OF enter,
    x type c value cl_abap_char_utilities=>cr_lf,
    END OF enter.
    PS : I am not 100% sure about this.

  • Error in setting up HTTP Header Variable Authentication

    Hi,
    I am trying to set-up SSO for SAP Biller Direct aplication (deployed on SAP J2EE 7.0) using HTTP Header variable authentication.
    As per SAP documentation I have created a new login module "HeaderVariableLoginModule" pointing to class "com.sap.security.core.server.jaas.HeaderVariableLoginModule".
    Then I have added this new login module to Statck "Ticket" and the new config looks as below. HTTP header when UID is passed is USI_LOP.
    Name                                                                                Flag                                            Options
    com.sap.security.core.server.jaas.HeaderVariableLoginModule    Sufficient                                    ume.configuration.active= tue,
                                                                                    Header=USI_LOP
    BasicPasswordLoginModule                                                           Optional
    CreateTicketLoginModule                                                                 Optional                                         ume.configuration.active= tue
    EvaluateTicketLoginModule                                                              Sufficient                                      ume.configuration.active= tue
    The problem I am now having is that the authentication through HTTP_HEADEr does not work. Even though I ahve increased the trace level for JAAS module to debug, there is not any type of information generated in the log.
    Each time I call the Biller Direct URL from the extrenal web server which also passes the HEADER variable for Authntication, the authrisation just fails and I am being shown a Logon Screen to pust UID/PASSWORD.
    Can someone please guide me, how I can debug this? There is very no information whether anyone tried to login with HEADER varibale and that has failed...
    Also, I am not pretty sure whether I am using the right Authentication Stack, which is is Ticket in my case..
    But when I enter the application without any URL redirects and enter UID and password directly for Biller Direct, I get the following in log file, which makes me believe that I am using the right stack.
    LOGIN.OK
    User: CONDLG
    Authentication Stack: ticket
    Login Module                                                               Flag        Initialize  Login      Commit     Abort      Details
    1. com.sap.security.core.server.jaas.HeaderVariableLoginModule             SUFFICIENT  ok          false      false                
    2. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   OPTIONAL    ok          true       true                 
    3. com.sap.security.core.server.jaas.CreateTicketLoginModule               OPTIONAL    ok          true       true                 
    4. com.sap.security.core.server.jaas.EvaluateTicketLoginModule             SUFFICIENT  ok          false      false                
    Central Checks                                                                                true                 
    Any help will be very much apprecated..
    Thanks,
    Vikrant Sud

    Vikrant,
    The reason why it is not working is because your login modules in ticket stack are in wrong order and with wrong flags. The first one should be EvaluateTicketLoginModule with flag=SUFFICIENT, then the Header Variable login module, with flag=OPTIONAL, then CreateTicketLoginModule with flag=SUFFICIENT, then BasicPasswordLoginModule with flag=REQUISITE, and lastly CreateTicektLoginModule with flag=OPTIONAL
    Thanks,
    Tim

  • Setting up Request Header

    Hi,
    I need to send a request from firstservlet to secondservlet with header information such as Authorization, content-type etc. I don't get this information from Client (HTML) so I need to set this up in firstservlet. I am using the following code but still getting problems. Follwoing is the error:
    401 Unauthorized
    Missing 'Authorization' HTTP header 0.
    Any good ideas fo doing this?
    String contType = new String("application/octet-stream");
    String userAgent = new String("ABBRequestSubmitter");
    String auth = new String("Basic:abb");
    Integer len = new Integer(132);
    request.setAttribute("Content-Type",contType);
    request.setAttribute("User-Agent",userAgent);
    request.setAttribute("Authorization",auth);
    request.setAttribute("Content-Length",len);
    thanks,
    Raj

    String auth = new String("Basic:abb");whenever you set a basic auth make sure that you set in this order.
    String authinfo = "username:password";
    and then runit throught base64 encoder.
    String encodedauth = encode(authinfo);
    and then try to set the headers
    >
    >
    request.setAttribute("Content-Type",contType);
    request.setAttribute("User-Agent",userAgent);
    request.setAttribute("Authorization",auth);request.setAttribute("Authorization","Basic:"+encodedauth );

  • ESB requires "SOAPAction" to be set in HTTP header?

    I'm trying to insert an ESB flow between an existing web service and client. The service and client were previously built with Apache Axis.
    By generating an appropriate WSDL (doc/wrapped rather than Axis' default RPC style) for the existing service, I'm able to connect the ESB to the service.
    The problem is that the existing client (built using Axis) sets the SOAPAction in the HTTP header to empty (SOAPAction: ""), and the ESB appears to require this to be set to the desired operation. If this is a hard requirement, then I can't directly connect the existing client to the ESB flow.
    So, the question is whether it's possible to have the ESB relax the requirement for the SOAPAction header. And if so, how?
    If I can't get the ESB to accept SOAP requests with an empty SOAPAction, then I'll have to create a custom adapter or insert an additional proxy layer (yuk). Anyone else have any suggestions?

    This is all done automatically by FB.
    Just to try something out I just now made a simple app with a label only and tried to upload to Google... FAILED!!!!
    "Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml"
    LOL, FB can't even create this. :-/
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/3.1">
    <!-- Adobe AIR Application Descriptor File Template.
              Specifies parameters for identifying, installing, and launching AIR applications.
              xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.1
                                  The last segment of the namespace specifies the version
                                  of the AIR runtime required for this application to run.
              minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                                  the application. Optional.
    -->
    Message was edited by: KesherMedia.Com

  • How to set custom HTTP header for single sign on

    Currently we just begin to use an application called "etran". This application requires user name and password to login. Now, my assignment is to integrate etran application in our internal application. This means that somewhere in our internal application, there is a link leads to the etran application.
    It is going to be single sign on, that means that once user logs into our internal application, when he/she clicks on the etran link, no sign on to etran is needed.
    I consult with the technical people in etran. they said that our internal application needs to send a "login request" to etran via SSL with the user's information encoded in base 64 format. etran captures the HTTP header containing user authentication and authorization information, and parses the required information from the HTTP header.
    My question is that how I set user information in HTTP header? From my understanding, once I am able to set the user information in HTTP header, it is in base 64 format?
    Thanks in advance for your help.

    sharon38_74 wrote:
    they said that our internal application needs to send a "login request" to etran via SSL with the user's information encoded in base 64 format. etran captures the HTTP header containing user authentication and authorization information, and parses the required information from the HTTP header.
    My question is that how I set user information in HTTP header? From my understanding, once I am able to set the user information in HTTP header, it is in base 64 format?Your application need to act like a proxy. You can invoke a HTTP request programmatically using java.net.URLConnection. You can set request headers using URLConnection#setRequestProperty(). Also see the API docs: [http://java.sun.com/javase/6/docs/api/java/net/URLConnection.html]. You only need to know the header field name where to set the Base64-encoded value in. You need to Base64-encode the value yourself.

  • How to set the SOAP Header while publishing to Queue in the mediator

    Hi,
    I am trying to publish the message to a JMS AQ, from the Mediator service in the 11g Soa Suite. I want to add some properties as SOAP Header to the message and send it to the JMS AQ. I have seen the mediator process calling BPEL process, passing the SOAP Header values. In the BPEL process, we have the section <soap:binding> inside that I can give the <soap:header>and set the values.
    Could any one tell me how to do this in Mediator service which is calling the JMS AQ using adapter?
    Thanks,

    The solution in this thread is for VS .NET as this is the forum for CR in .NET.
    With Foxpro, I suspect you want to create a new thread in the SAP Crystal Reports - Legacy SDKs forum.
    Make sure you specify the exact version of CR used.
    - Ludek

Maybe you are looking for