Get content type info
Hello Friends,
I have 4 list based content types which have a similar column "appendix" as single line of text. I have added them to my list. My requirement is, when I click on the new item and select the content type, I should get the content type info in the appendix
column.
Can someone help me on getting that info? I cannot use the InfoPath forms to get the information.
Please suggest
Hi ChandraShekhar
You need to first go through the below links in-order to resolve you problem
Content Types
Indul Hassan
Microsoft Community Contributor
http://www.indulhassan.com
You Snooze.. You Lose !!
Similar Messages
-
REST Query to Get Content Type Name
I'm just getting started learning to use the SharePoint REST interface. One of the first things I'd like to do is return the content type name for a list item in a document library (the document library is configured with several content types). From
what I've read, it looks like I need to use the $expand query option. So, my REST query looks like this:
http://localhost/_api/web/lists/Documents/Items()?&$select=ContentType/Name&$expand=ContentType/Name
But it's not working. I can't "dig" out the content type name property. In other words the $expand query option is not working. I just receive the following which includes a link to the content type:
<entry m:etag=""2"">
<id>4078e129-ac4b-44b8-b469-bcc083f2268d</id>
<category term="SP.Data.DocumentsItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<link rel="edit" href="Web/Lists(guid'cd710fd1-057e-4ee7-b0bd-1f014218ea3e')/Items(36)" />
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ContentType" type="application/atom+xml;type=entry" title="ContentType" href="Web/Lists(guid'cd710fd1-057e-4ee7-b0bd-1f014218ea3e')/Items(36)/ContentType"
/>
<title />
<updated>2013-04-12T00:16:26Z</updated>
<author>
<name />
</author>
<content type="application/xml" />
</entry>
I've tried difference variations and if I just use "$expand=ContentType" then I get all the list items with the content type fully expanded within each item.
What am I missing?It's been awhile since this question got asked, but I figured i'd post for anyone who happens to stumble
on it.
Try this:
http://localhost/_api/web/lists/Documents/Items(<item
id>)/ContentType?$select=Name -
Abstract way to get Content Type of a File?
Using a java.io.File or java.io.FileInputStream is there any was the get the mime type of that file? I am working with a JEditorPane which loads files from a JTree, however I would like to take advantage of the tree's setContentType method for formatting...
I think the
JAVABEANS ACTIVATION FRAMEWORK (JAF)
is what you're looking for.
http://java.sun.com/products/javabeans/glasgow/jaf.html
But I actually never used it... (or not yet :-) )
Greets
Puce -
Images are not downloaded at all and page looks broken.
The same page works fine over HTTP but shows the problem over HTTPS. Works fine in firefox and chrome.
Checked and found the problem in IE 9, 10, 11
Is it some bug in IE, I have searched the forums and searched internet. Got following but are not relevant to this case.
Resetting src of the img (Ruled out, not doing any reset)
Do not save encrypted pages to disk is checked in advanced security options (Ruled out, unchecked)
Using TLS 1.2 with SSL 2.0 (Ruled out, SSL 2.0 unchecked)
Cache-preventing headers: Cache-Control header with the tokens no-cache, no-store (Ruled out, no such headers)
Restarts due to parser reset owing XML Namespace declaration, Meta tags etc. (Ruled out, image tags are afterwards)
Thanks in advance for help!I probably encountered the same problem.
What happens when you disable the 'Use TLS 1.0' checkbox in Internet Options, Advanced, Security, 'Use TLS 1.0'?
The only enabled option I have in IE is 'Use SSL 3.0'.
Source:
http://social.msdn.microsoft.com/Forums/ie/en-US/88a58e78-ebb4-469d-a361-0d3762a4cf80/ie10-reports-aborted-js-and-css-downloads-randomly?forum=iewebdevelopment -
Unable to create a page content type
Add-PSSnapin -Name Microsoft.Sharepoint.Powershell
#$SiteURL = get-SPSite "http://srvr1:123/sites/ENGG/"
$w = get-spweb "http://sRVR1:123/sites/ENGG/"
$web = get-spweb "http://sRVR1:123/sites/ENGG/"
try
$cts = $w.ContentTypes
Write-Host "inside content types try block"
$spId = new-object Microsoft.SharePoint.SPContentTypeId("0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900DCED8380ADA44ABB8411D56976A5F491")
$spId
$ct = new-object Microsoft.SharePoint.SPContentType($spId,$cts,"BIFPageCT")
catch
Write-Host "error occured in creation"
Write-Host "going2 update web"
$w.Update();
#get all the ctypes from site collec
ForEach($ctype in $w.ContentTypes)
{ #write-host $ctype.Name": "$ctype.ID
if($ctype.Name -eq "BIFPageCT")
{ write-host $ctype.Name": "$ctype.ID }else { Write-Host "ctype not found" }}
I tried to create a new content type in my new site collec in my portal. but it failed to create.i have taken the content type id from my another site collc. where this content type is successfully created!
please help why i am getting content type not found error.Hi,
We can use the following PowerShell script to create a page content type.
$spWeb = Get-SPWeb http://sRVR1:123/sites/ENGG/
$spWeb.AvailableContentTypes | Select Name
$parent = $spWeb.AvailableContentTypes["Page"]
$contentType = New-Object Microsoft.SharePoint.SPContentType -ArgumentList @($parent, $spWeb.ContentTypes, "BIFPageCT")
$contentType.Group = "My Content Type"
$contentType.Description = "BIF Page Content Type"
$spWeb.ContentTypes.Add($contentType)
$spWeb.Update()
$spWeb.Dispose()
Here is a blog for your reference:
http://www.microsofttechnology.net/2012/03/how-to-create-content-type-site-column.html
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Powershell to add/delete content type to particular library alone in a site collection
Hi,
I am trying to add and delete content type from a particular picture library (site collection) using powershell.
I have tried the below, but it is not working.
Below scenarios are not working:
1) If the content type to be added is there in library, then the loop is still moving to "No content type exists".
2) Content type is not getting deleted from library
3) Set the newly added content type as default content type.
Below is the powershell, which I am trying:
function ChangeContentType($url)
$site = Get-SPSite($url);
$web =$site.RootWeb
$lookForList = "PicLibrary"
$lookForCT = "Img1ContentType"
$lookForRemoveCT = "Image2CT"
write-host "Checking site:"$web.Title
#Make sure content types are allowed on the list specified
$docLibrary = $web.Lists[$lookForList]
if ($docLibrary -ne $null)
$docLibrary.ContentTypesEnabled = $true
$docLibrary.Update()
if (($web.ContentTypes | where { $web.Name -eq $lookForCT }) -eq $null)
write-host "No content type exists with the name" $lookForCT "on list" $docLibrary.Title
#Add site content types to the list
write-host "Adding content type " $lookForCT "on list" $docLibrary.Title
$ctToAdd = $web.ContentTypes[$lookForCT]
$ct = $docLibrary.ContentTypes.Add($ctToAdd)
write-host "Content type" $ct.Name "added to list" $docLibrary.Title
$docLibrary.Update();
else
write-host "content type exists with the name" $lookForCT "on list" $docLibrary.Title
#Remove Content type
if (($web.ContentTypes | where { $web.Name -eq $lookForRemoveCT }) -eq $null)
write-host "No content type exists with the name" $lookForRemoveCT "on list" $docLibrary.Title
else
$ctToRemove = $web.ContentTypes[$lookForRemoveCT]
write-host "Removing content type" $ctToRemove.Name "from list" $docLibrary.Title
$docLibrary.ContentTypes.Delete($ctToRemove.Id)
$docLibrary.Update()
else
write-host "The list" $lookForList "does not exist in site" $web.Title
#Dispose object
$site.Dispose()
$web.Dispose()
How to fix this?
ThanksHi,
Thanks for the reply.
I checked it. If the script is run multiple times, the add and delete content type will throw error.
How to delete content type? I have tried the below:
$docLibrary = $web.Lists[$lookForList]
if ($docLibrary -ne $null)
$docLibrary.ContentTypesEnabled = $true
$docLibrary.Update()
#get the content Type
Write-host "Getting content type $lookForCT in site $web"
#Confirm that the content type exists.
$contentType = $web.ContentTypes | where {$web.ContentTypes.Name -eq $lookForCT}
##Abort if not found.
if ($contentType -eq $null)
Write-host "$lookForCT not found in site collection."
else
if ($web.ContentTypes.Name -eq $lookForCT)
Write-host $docLibrary.ContentTypes.Name
if($docLibrary.ContentTypes.Name -eq $lookForCT)
write-host "Content type $lookForCT is already added to list" $docLibrary.Title
else
write-host "No content type exists with the name" $lookForCT "on list" $docLibrary.Title
write-host "Adding Content Type"
$ctToAdd = $web.ContentTypes[$lookForCT]
$ct = $docLibrary.ContentTypes.Add($ctToAdd)
$docLibrary.Update()
write-host "Content type" $ct.Name "added to list" $docLibrary.Title
#get the content Type
Write-host "Getting content type $lookForRemoveCT in site $web"
#Confirm that the content type exists.
$contentType = $web.ContentTypes | where {$web.ContentTypes.Name -eq $lookForRemoveCT}
##Abort if not found.
if ($contentType -eq $null)
Write-host "$lookForRemoveCT not found in site collection."
else
if ($web.ContentTypes.Name -eq $lookForRemoveCT)
Write-host $docLibrary.ContentTypes.Name
if($docLibrary.ContentTypes.Name -eq $lookForRemoveCT)
write-host "Content type $lookForRemoveCT is added to list" $docLibrary.Title.
write-host "Removing Content type $lookForRemoveCT"
$ctToRemove = $web.ContentTypes[$lookForRemoveCT]
$docLibrary.ContentTypes.Delete($ctToRemove.Id)
$docLibrary.Update()
else
write-host "No content type exists with the name" $lookForRemoveCT "on list" $docLibrary.Title
I am getting error in delete now. Error is "Exception calling "Delete" with "1" argument(s): "Specified argument was out of the range of valid values.
Parameter name: id"
Thanks -
How to set Content-Type of attachment?
Does anyone know how I can set the Content-Type of an attachment of an outgoing mail?
I use Apple Mail, and with one correspondent I have this annoying problem that he never receives any excel or word attachments that I send (and possibly other ones, too).
Our support now says that I should try to set the Content-Type
of the excel attachments to "Content-Type: application/vnd.ms-excel".
Apple Mail seems to set it to
"Content-Type: application/octet-stream"
and they think that attachments with this content-type might get blocked by the mail server of my correspondent.
Any suggestions, ideas, etc., will be appreciated.
Best regards,
Gabriel.Thanks a lot for your test.
Unfortunately, I get
Content-Type: application/octet-stream;
when I try to send an excel attachment to myself.
Below is the beginning of the email (in "source" format).
Any ideas why you get the correct mime-type, but I don't?
Regards,
Gabriel.
---------- beginning of email
Return-Path: <[email protected]>
Received: from [80.128.100.143] (account xxxxxxx HELO [192.168.2.100])
by tu-clausthal.de (CommuniGate Pro SMTP 5.2.4)
with ESMTPSA id 35503032 for [email protected]; Mon, 30 Jun 2008 21:59:05 +0200
Message-Id: <[email protected]>
From: Gabriel Zachmann <[email protected]>
To: Gabriel Zachmann <[email protected]>
Content-Type: multipart/signed; boundary=Apple-Mail-13-325543015; micalg=sha1; protocol="application/pkcs7-signature"
Mime-Version: 1.0 (Apple Message framework v924)
Subject: test
Date: Mon, 30 Jun 2008 21:59:04 +0200
X-Mailer: Apple Mail (2.924)
--Apple-Mail-13-325543015
Content-Type: multipart/mixed;
boundary=Apple-Mail-12-325542957
--Apple-Mail-12-325542957
Content-Disposition: attachment;
filename="Kostenabfrage AVILUS Gesamtinklusive_TPxyz 080606.xls"
Content-Type: application/octet-stream;
x-mac-creator=5843454C;
x-unix-mode=0644;
x-mac-type=584C5338;
name="Gesamt.xls"
Content-Transfer-Encoding: base64 -
How to get content check in info
Hi,
I have created a custom check in form and it contains few fields and on is redirected to confirmation page. In the confirmation page, I want to display
the content id, title, author date,keywords all from the previous screen where user entered the values.
I am using the following method to get the info but its not working.
***************************Check In page**************************************************************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!--$include ss_layout_head_info-->
<title>(untitled)</title>
<script id="ssInfo" type="text/xml" warning="DO NOT MODIFY!">
<ssinfo>
</ssinfo>
</script>
<script type="text/javascript">
var checkinService = "CHECKIN_NEW";
function postCheckIn(form)
alert("insde js")
form.IdcService.value = checkinService;
form.dSecurityGroup.value = form.SecurityGroup.value;
alert(form.SecurityGroup.value);
form.dDocType.value = form.DocTypes.value;
alert(form.DocTypes.value);
form.dAuthor.value = form.Authors.value;
alert(form.Authors.value);
form.submit();
</script>
</head>
<body>
<form name= "Checkin" enctype="multipart/form-data" method= "post" action = "/idc/idcplg">
<input type = hidden name = "IdcService"/>
<input type = hidden name ="primaryFile"/>
<input type = "hidden" name ="dSecurityGroup">
<input type = "hidden" name = "dAuthor">
<input type = "hidden" name = "dDocType">
<input type =hidden name= "RedirectUrl" value= "http://localhost:7771/marketingkitportal/index.htm"/>
Title<input type="text" name = "dDocTitle"> <br>
<!--Generating security group from content server -->
security group <select id="SecurityGroup" name="SecurityGroup">
<option selected value="0">
- please choose one -
</option>
<!--$rsMakeFromList("estSecurityGroup","securityGroups","estSecurityGroupName")-->
<!--$ loop estSecurityGroup -->
<option value="<!--$estSecurityGroupName-->"><!--$estSecurityGroupName-->
</option>
<!--$ endloop -->
</select>
<br>
<!-- Generating doc authors from content server -->
Author <select id="Authors" name="Authors">
<option selected value="0">
- please choose one -
</option>
<!--$rsMakeFromList("estAuthors","docAuthors","docAuthorName")-->
<!--$ loop estAuthors -->
<option value="<!--$docAuthorName-->"><!--$docAuthorName-->
</option>
<!--$ endloop -->
</select><br>
<!-- Generating document types dynamically that are available in contnet server -->
Type <select id="DocTypes" name="DocTypes">
<option selected value="0">
- please choose one -
</option>
<!--$rsMakeFromList("doc_types","docTypes","docTypeName")-->
<!--$ loop doc_types -->
<option value="<!--$docTypeName-->"><!--$docTypeName-->
</option>
<!--$ endloop -->
</select>
<br>
PrimaryFile1<input type = File name = "primaryFile"> <br>
Confidentiality: <select name="xConfidentiality" id="xConfidentiality" style="WIDTH: 250px">
<option value="0" selected>
Please select one
</option>
<!--$rsMakeFromList("estConfidentiality","xConfidentiality.options","confidentialityName")-->
<!--$loop estConfidentiality -->
<option value="<!--$confidentialityName-->"><!--$confidentialityName--></option>
<!--$endloop-->
</select>
<input type=button name=javaSubmit value="Check In" onClick="postCheckIn(this.form)"> <br>
</body>
</html>
***************************Confirmation page************************************************************
<h2>Check In Confirmation for '<!--$dDocTitle-->'</h2>
<!--$executeService("DOC_INFO")-->
dID : <!--$getValue("DOC_INFO","dID")-->
Content ID : <!--$getValue("DOC_INFO","dDocName")-->
Title : <!--$getValue("DOC_INFO","dDocTitle")-->
Checked in by : <!--$getValue("DOC_INFO","dDocAuthor")-->
Edited by: AbhijijitPr on Jun 2, 2010 6:00 PMHi Thanks for the help.
Can you also let me know if this is correct what I am doing.
1. I created a custom confirmation template named "CHK_IN_CONFORM"(this is content ID) file name is "marketingportalcheckinconfirmation.hcst"
2. I have put for RedirectUrl value as :
document.getElementById('RedirectUrl').value="http://localhost:7771/idc/idcplg? IdcService=GET_DOC_PAGE&Action=GetTemplatePage&Page=chk_in_conform&dID=<$dID$>&dDocTitle=<$url(dDocTitle)$>";"
3. But when I submit, it says me "Referenced source HTML page not found. Unable to find the template page of form type 'chk_in_conform'."
4. But when I change the IP and try to redirect I am able to see the dID and docTitle.
5. Only Issue is to redirect to template page.
If you can help me it will be great.
Thanks,
Abhijit -
Getting the type in content assist extension
Hello,
In a plugin which extends the JDT, I need to add proposals to the content assist.
To do that, I would like to know the type of the prefix expression.
For example, when the user enters the code below, Eclipse gives in the content assist the methods of the Random class :
Random random = new Random();
random.
So the proposal computer finds the type of the "random" variable.
How does it work ?
Regards,
Romain.Hello Joy,
Actually you don't need to do this, you can use the method GET_RELATIVE_NAME( ) to do the job for you!
DATA: gr_struct TYPE REF TO cl_abap_structdescr,
gt_components TYPE cl_abap_structdescr=>component_table,
gs_component TYPE cl_abap_structdescr=>component,
gv_actual_name TYPE string.
* Get the interface structure fields
gr_struct ?= cl_abap_typedescr=>describe_by_name( 'ZIF_TEST=>STR01' ).
gt_components = gr_struct->get_components( ).
LOOP AT gt_components INTO gs_component.
* Get actual name
gv_actual_name = gs_component-type->get_relative_name( ).
WRITE: / gv_actual_name.
ENDLOOP.
If you want more DDIC details for the fields, you can try this way:
DATA: gr_element TYPE REF TO cl_abap_elemdescr.
LOOP AT gt_components INTO gs_component.
gr_element ?= gs_component-type. "Narrow Casting
gs_fieldinfo = gr_element->get_ddic_field( ). "Get the DDIC info
WRITE: / gs_fieldinfo-rollname.
ENDLOOP.
BR,
Suhas
Edited by: Suhas Saha on Jan 31, 2012 2:57 PM -
Cannot get rid of default field in a custom content type
hi guys,
I have custom content type based on Document Set in a List based on Document Library. I created both using XML declaration in SP solution.
I have all fields in my content type which I declared, except to defult fields: 'Name' and 'Description'. I need to hide both of them. After I set Inherits="FALSE" in ContentType section in Elements.xml in ContentType description the field
'Description' goes away. But the field 'Name' marked as required and stays.
I've also tried to add RemoveFieldRef parameter to the same Elements file, but the field persists. I assume it comes from list definition, not content type. But I cannot figure out how to get this field out from list definition.
Do I miss something?I am assuming that content type's elements.xml file is looking like this
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Parent ContentType: Document Set (0x0120D520) -->
<ContentType ID="0x0120D520008d2ff418027e4c31b54d155b98596748"
Overwrite="True"
Name="Custom Dossier"
Group="Custom group"
Description="Custom dossier"
Inherits="True"
Version="0">
<FieldRefs>
<FieldRef
ID="{8D6C094C-3E1F-41f4-BEE3-25B27EE09702}"
Name="Dossier_Nummer"
DisplayName="Dossiernummer"
Required="True"
/>
</FieldRefs>
<XmlDocuments>
<XmlDocument NamespaceURI="http://schemas.microsoft.com/office/documentsets/allowedcontenttypes">
<act:AllowedContentTypes
xmlns:act="http://schemas.microsoft.com/office/documentsets/allowedcontenttypes"
LastModified="05/31/2012 08:46:56">
<AllowedContentType
id="0x0101"
/>
<AllowedContentType
id="0x0101000490d50c50624b6ca21c637ef39cd89b"
/>
</act:AllowedContentTypes>
</XmlDocument>
</XmlDocuments>
</ContentType>
</Elements>
In the FieldRef section ,we have <FieldRef
ID="{8D6C094C-3E1F-41f4-BEE3-25B27EE09702}"
Name="Dossier_Nummer"
DisplayName="Dossiernummer"
Required="True"
/> this field is there.
Try to add ShowInNewForm="TRUE" ShowInEditForm="FALSE" those attributes.
or Hidden="FALSE"
Sorry for the bad English. Could you paste your code.So that we can assist u. -
In HTTP to SOAP scenario. Error i get is "Invalid content type for SOAP"
Hi,
In HTTP to SOAP(synch) scenario. Error i get is <b>"Invalid content type for SOAP"</b>
When pass my data in the HTTP client, I get the following Error.
What may be the cause,How to reslove it.
Response am getting is below............................
Result:
<SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/PLAIN</SAP:AdditionalText></SAP:Error>hi ,
Just refer following 2 links
Re: Invalid content type for SOAP
Re: invalid content type for SOAP: TEXT/HTML
Regards,
AshwinM
Reward If helpful -
Get original URL for Link to a Document content type
Hello,
I'm having a SharePoint doc library with ItemAdded event receiver attached to it and "Link to a Document" content type enabled. My general question is:
How to get URL that the link points to?
I'll show you how I'm trying to achieve that:
SPWeb parentWeb = properties.Web;
if (properties.ListItem.ContentType.Name == LinkContentTypeName)
object urlFieldValue = properties.AfterProperties["URL"];
if (urlFieldValue != null && urlFieldValue.ToString() != String.Empty)
// continue
But I always get null so I can't even get inside IF statement. I've tried to install ItemAdded event receiver as synchronous, but it didn't make a difference. I'd appreciate any ideas.
Regards
TomaszThis is not very convenient solution, because ItemUpdated can be executed more than once. However this certainly will work, so I'll accept this as a workaround. Actually I've found another one. I'm parsing link aspx file and I'm getting the URL
from mso:URL tag:
<%@ Assembly Name='Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' %><%@ Register TagPrefix='SharePoint' Namespace='Microsoft.SharePoint.WebControls' Assembly='Microsoft.SharePoint' %><%@ Import Namespace='System.IO' %><%@ Import Namespace='Microsoft.SharePoint' %><%@ Import Namespace='Microsoft.SharePoint.Utilities' %><%@ Import Namespace='Microsoft.SharePoint.WebControls' %><html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><Head> <META Name='progid' Content='SharePoint.Link'><!--[if gte mso 9]><SharePoint:CTFieldRefs runat=server Prefix="mso:" FieldList="FileLeafRef,URL,_x0043_C1,KitId,ItemKey,Suffix_x0020_Code"><xml><mso:CustomDocumentProperties><mso:URL msdt:dt="string">http://serverUrl/sites/arrangement1/Shared Drawings/test, test</mso:URL><mso:ContentType msdt:dt="string">Link to a Document</mso:ContentType><mso:File_x0020_Title msdt:dt="string">Winding A Assembled</mso:File_x0020_Title>
<mso:Revision_x0020_Number msdt:dt="string">-</mso:Revision_x0020_Number>
<mso:Page_x0020_Size msdt:dt="string">A2</mso:Page_x0020_Size>
<mso:ContentTypeId msdt:dt="string">0x01010A0082704B66E8B222478AF2E379D8A2FFB9</mso:ContentTypeId>
<mso:ItemKey msdt:dt="string">1</mso:ItemKey>
</mso:CustomDocumentProperties></xml></SharePoint:CTFieldRefs><![endif]--></head><body><form id='Form1' runat='server'><SharePoint:UrlRedirector id='Redirector1' runat='server' /></form></body></html>
Regards
Tomasz -
I have a Macbook Air. I have MS office installed and work in Excel often with no issues. But When I download an excel spread sheet from a Ford web site I seem to be getting code and not the work sheet.
Example-
MIME-Version: 1.0
X-Document-Type: Workbook
Content-Type: multipart/related; boundary="====Boundary===="
--====Boundary====
Content-Location: file:///C:/HOLD.XHT
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="utf-8"
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<HEAD>
<meta name="Excel Workbook Frameset">
<xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>BTB</x:Name>
<x:WorksheetSource HRef="./IBIT0001.xht"/>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>GSM</x:Name>
<x:WorksheetSource HRef="./IBIT0002.xht"/>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>RODetail</x:Name>
<x:WorksheetSource HRef="./IBIT0003.xht"/>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
</x:ExcelWorkbook>
</xml>
</HEAD>
</HTML>
--====Boundary====
Content-Location: file:///C:/IBIT0001.xht
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="utf-8"
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{margin:1.0in .75in 1.0in .75in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-page-orientation:landscape;}
tr
{mso-height-source:auto;}
col
{mso-width-source:auto;}
br
{mso-data-placement:same-cell;}
.style21
{color:blue;
font-size:10.0pt;
font-weight:400;
font-style:normal;
text-decoration:underline;
text-underline-style:single;
font-family:Arial;Try search/ask in the forum devoted entirely to Excel issues:
http://answers.microsoft.com/en-us/mac/forum/macexcel -
Hi
I have several applications and I am working on making some kind of APEX "SSO".
An user is authentified in one application. Then he may go to another application. The cookie has the same name from one application to another. The session ID is preserved from one application to another : i use this kind of URL : "f?p=109:1:&SESSION.:"
I have seen that I need to authentify automatically the user when he swap to another application. For that i have a process in the welcome page that authentify the user, using the :app_user and the password, a PL/SQL after header:
wwv_flow_custom_auth_std.login(
P_UNAME => :APP_USER,
P_PASSWORD => :P1_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':1'
);So far so good. User is authenticated. The problem I face is that this message appears :
Content-type: text/html; charset=UTF-8 Set-Cookie: TELEGESTION_AUTH=-1; path=/; Location: /pls/apex/f?p=109:1How to get rid of this message ?
Thank you for your kind help !
Christian
PS: My question has not been answered... I hope somebody could help me on this topic.
Edited by: Christian from France on Mar 4, 2010 2:02 AMHi
Have you tried using "f?p=109:1:&APP_SESSION.:" instead of "f?p=109:1:&SESSION.:".
I don't see why you need to reauthenticate if they're in the same workspace?
Cheers
Ben -
Getting invalid content type for SOAP: TEXT/HTML exception for Soap Adapter
I am trying to invoke Webservice using SOAP Receiver Adapter
but I am getting error
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText>
Pls let me know
RegardsHI,
see
Q: What character encoding is supported by the SOAP sender adapter?
A: The SOAP sender adapter can accept any character encoding supported by the local JDK. When you are using a particular character encoding with content type text/xml, you must make sure that the encoding name given in the content type and in the XML declaration must be consistent. What makes this more complex is that the default values. The default encoding for "text/xml" is US-ASCII, whereas the default encoding for the XML declaration is UTF-8 or UTF-16. The following examples show several valid combinations of content-type and XML declartion:
text/xml
<?xml version='1.0' encoding='us-ascii'?>
text/xml; charset='utf-8'
<?xml version='1.0' encoding='utf-8'?>
text/xml; charset='utf-8'
no declaration
text/xml; charset='iso-8859-1'
<?xml version='1.0' encoding='iso-8859-1'?>
application/xml
<?xml version='1.0' encoding='iso-8859-1'?>
The response message from the SOAP sender is normally encoded in UTF-8. If you want to change this encoding, for instance to iso-8859-1, you can supply the encoding information with the xmlenc variable in the request URL as in:
http://host:port /XISOAPAdapter/MessageServlet?channel=p:s:c&xmlenc=iso-8859-1
Related Questions "What character encoding is supported by the SOAP receiver adapter?"
Regards
Chilla
Maybe you are looking for
-
What's the best program to transfer music to a computer?
So the computer I used to update my iPhone 4 recently crashed! A similar thing happened to me about five years ago when I had a nano but I have no idea what program I used to get the music over to another computer. Most of the programs I've found are
-
Hi, reports come from 2 multiprovider which are base on ODS. Names: CCA ODS $40,000 Pay roll ODS $85,0000 There is an Variance of + $45,000 on cost center 634137 and CE 700090. How fix that problem i need to fix that problem ASAP. Thanks. Rob
-
Set select list using description
Hi, I have been able to provide a value for a select list from another page when providing a code in the P6_NAME field e.g. P5_NAME_ID = &P6_NAME. I now need to choose an option from a select list using it's description rather than the underlying cod
-
Can't Wrap Text Around an image
Hi I'm trying to wrap text around an image in adobe flex 3 i always want the image to be in the upper left hand corner of a Vbox or canvas or whatever with the text neatly wrapping around it. im using an xml list to generate the image and the surroun
-
hi, We are upgrading from BI 3.1 to BI 7. As part of the upgrade, we are also planning to use the Bex Web functionality. We have maintained the necessary settings in SICF and SM59 for BexWeb. But when I try to open the query through BexWeb by using