Get the web name using web id in sharepoint
Hi,
I have a web id.I want to get the web name.
can someone provide the code for it?
you loop through the webs in you site collection and get the title of web once it matches with GUID.
using (SPSite site = new SPSite("http://sp13devserver/"))
SPWebCollection webcoll = site.AllWebs;
foreach (SPWeb web in webcoll)
if (web.ID.ToString() == "70c2c799-9154-4c46-b9a0-943fbbf67639")
Console.Write(web.Title.ToString());
Console.Read();
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
Similar Messages
-
How to get the computer name using C#?
Hi all,
Does anyone know how to get the computer name using c#?
ThanksTry this, string computer_name = System.Environment.GetEnvironmentVariable("COMPUTERNAME");
Naren. -
Getting the file name using ehdr:getRequestHeader function in style sheet
Hi, I am facing an issue while using ehdr:getRequestHeader function to get the name of the file, which was placed in FTPS server and read by FTP Adapter. In style sheet I am trying to get the file name as below.
<xsl:variable name="fileName"
select="ehdr:getRequestHeader('/fhdr:InboundFTPHeaderType/fhdr:fileName','fhdr=http://xmlns.oracle.com/pcbpel/adapter/ftp/;')"/>
and based on the file name I am trying to fetch the values from Property file, map it to a schema and make a SOAP service call.
When i use the above functionality in style sheet exception occurs and in ESB instance I am not able to view the exception.
It is saying as 'Details of the message are not available, The message details would have been purged'. In logs it is showing the following error trace.
<MSG_TEXT>Failed to process deferred message</MSG_TEXT>
<SUPPL_DETAIL>oracle.tip.esb.server.common.exceptions.BusinessEventRejectionException: Error occured while handling monitor message dequeued from monitor topic. Message text is "<activityMessages><activityMessage order='10' type='6'><flowId>cRfy7g6a-8HDUKqyf4GsKw==</flowId><subFlowId>1245307693657</subFlowId><timestamp>1245307703862</timestamp><operationGUID>2F1C13905B3F11DE8F0BD923A1148BB1</operationGUID><operationQName>ESBTest.InvokeESB</operationQName><errorMessage><![CDATA[An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: exception on JaxRpc invoke: serialization error: java.lang.IllegalArgumentException: getSerializer requires a Java type and/or an XML type
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1714)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1460)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeInputOnlyOperation(WSIFOperation_JaxRpc.java:1141)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:894)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:810)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:832)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(OutboundAdapterService.java:227)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(OutboundAdapterService.java:136)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:407)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:165)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1988)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1467)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:205)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:136)
at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(EsbRouterSubscription.java:310)
at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(EventDispatcher.java:138)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(InitialEventDispatcher.java:547)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(InitialEventDispatcher.java:529)
at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(EventDispatcher.java:94)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:161)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1988)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1467)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:119)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:65)
at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.processMessage(ESBListenerImpl.java:722)
at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.onMessage(ESBListenerImpl.java:407)
at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:281)
at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:1173)
at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:882)
at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWork.java:342)
at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:224)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:825)
at java.lang.Thread.run(Thread.java:595)
]]></errorMessage><exception><![CDATA[oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: exception on JaxRpc invoke: serialization error: java.lang.IllegalArgumentException: getSerializer requires a Java type and/or an XML type
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1714)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1460)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeInputOnlyOperation(WSIFOperation_JaxRpc.java:1141)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:894)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:810)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:832)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(OutboundAdapterService.java:227)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(OutboundAdapterService.java:136)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:407)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:165)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1988)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1467)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:205)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:136)
at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(EsbRouterSubscription.java:310)
at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(EventDispatcher.java:138)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(InitialEventDispatcher.java:547)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(InitialEventDispatcher.java:529)
at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(EventDispatcher.java:94)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:161)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1988)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1467)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:119)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:65)
at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.processMessage(ESBListenerImpl.java:722)
at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.onMessage(ESBListenerImpl.java:407)
at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:281)
at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:1173)
at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:882)
at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWork.java:342)
at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:224)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:825)
at java.lang.Thread.run(Thread.java:595)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:1020)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:810)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:832)
at oracle.tip.esb.server.service.impl.outadapte]]></exception><retryable>false</retryable></activityMessage></activityMessages>"
at oracle.tip.esb.monitor.manager.ActivityMessageReceiver.handleMessage(ActivityMessageReceiver.java:96)
at oracle.tip.esb.server.dispatch.agent.ESBWork.process(ESBWork.java:178)
at oracle.tip.esb.server.dispatch.agent.ESBWork.run(ESBWork.java:132)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:825)
at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.tip.esb.monitor.MonitorException: Due to the error "", the activity message could not be stored.
at oracle.tip.esb.monitor.manager.database.AbstractFaultPersister.persist(AbstractFaultPersister.java:107)
at oracle.tip.esb.monitor.manager.database.DBActivityMessageStore.persistMessage(DBActivityMessageStore.java:340)
at oracle.tip.esb.monitor.manager.database.DBActivityMessageStore.store(DBActivityMessageStore.java:131)
at oracle.tip.esb.monitor.manager.ActivityMessageReceiver.handleMessage(ActivityMessageReceiver.java:83)
... 7 more
Caused by: java.lang.NullPointerException
at oracle.tip.esb.monitor.manager.database.oracle.OracleFaultPersister.persist(OracleFaultPersister.java:102)
at oracle.tip.esb.monitor.manager.database.AbstractFaultPersister.persist(AbstractFaultPersister.java:105)
... 10 more
</SUPPL_DETAIL>
When I use the same function getRequestHeader for FileAdapter, it is working fine. Do anyone know why this issue occurs? Is this an issue with environment?As far as I can see the problem is the invoke of the SOAP service. This could be because of an empty filename but maybe there are other issues. First, make sure that the filename is read correctly by looking it up in the BPEL runtime process. Maybe the content is different than you expected it so that the read action for the properties give wrong result. Are you sure that ehdr is the correct prefix for the ftpheader?
-
Get the file name using XSLT mapping
Hi
How to get the file Name at receiver side using XSLT mapping.
Could any one please help me
Regards
sowmyaSowmya
If you will use Grpahical Mesage Mapping then this can be achieved using Adapter-Specific Attribute u201CFileNameu201D
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
Code Snippet -->
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
u201Chttp://sap.com/xi/XI/System/Fileu201D,
u201CFileNameu201D);
But in case you have to ONLY use XSLT mapping then I would suggest to use the same jave code & call it from your XSLT mapping. I never tried such thing you might use couple of jar files too.
- lalit - -
Get the Caller Name using JTAPI
For the incoming call, I am able to read the Caller ID using connection[0].getAddress(), but it gives me the phone number of the incoming call. Is there a way to get the Caller Name of the incoming call as well?
You get the caller name as shown on the phone's display by calling CiscoCall.getCurrentCallingPartyDisplayName
-
How to get the font name used in document?
Hi some one help me to get the font name which should check each text in the Illustrator CS3.
Please someone guide me..
sAIFont->FontKeyFromFont(AIFontRef FntRef,&fontKey);
Here what to set for fontref..Oviya... wrote:
Hi some one help me to get the font name which should check each text in the Illustrator CS3.
Please someone guide me..
sAIFont->FontKeyFromFont(AIFontRef FntRef,&fontKey);
Here what to set for fontref..
Are you talking about the location of the font? -
How to get the directory name using vnode address
All,
I am writing a C program and need info on the following:
1. I have got the vnode address of the current directory. my question is "How to get the inode information (in particular, directory name) from the vnode address ?". What calls i need to use in order to get the info ?
2. Any helpful web sites containing the above information ?
Thanks in advancepackage x.y;
import java.io.File;
public class Test {
public static void main(String[] args) {
System.out.println(new File(Test.class.getResource("").getFile()).getAbsolutePath());
} -
Get the service name using form 6i
Dear Oracle Gurus
Can anyone please tell me how can I get the connection service name using forms 6i.
FawadLet me explain in a bit detail.
Lets suppose, using TNSNAMES.ORA, I created a service by the name DBServer
similarly I have some other services in TNSNAMES.ORA and I may swith between these services
Now I connect my forms using scott/tiger@dbserver
I wish to get this service name i.e. 'dbserver' using the form 6i -
How to get the forma name using the Spool number
Hi all,
Please tell me how to find the Script name or Smartform name using the SPOOL NUMBER
Regards
AjayHi Ajay,
you could use the FM 'SSF_FUNCTION_MODULE_NAME' inorder to get the Smart Form Function Module name by giving the name of the form.
Reward points if this helps,
Kiran -
How to get the service name of a webservice using UDDI API
Hi,
Iam working on setting up a dynamic partner link in a BPEL, by passing the endpoint of a web service queried from the UDDI (Oracle Service Registry 10.3 ) using the API. Iam able to do it successfully.
Now, for example I have two operations in my wsdl, one to createCustomer and the other to bookTicket. I need to get the operation name using UDDI API so that i can pass it along with the endpoint to the partner link. ie. When i need to createCustomer, my UDDI API code will need to get the service name createCustomer and the endpoint and I would pass them to the partnerlink and the createCustomer operation of my webservice would be called.
Can any one help me to get the service names of the wsdl using UDDI APIs.
Thanks,
AnanthHi sia,
1. Table is APQI
2. field name for session name is GROUPID
regards,
amit m. -
How to get the file name from directory
Hi,
I have a directory called test inside i have only one .txt file. i dont know that file name.
Is it possible get the file name using PL/SQl code. ???
Using that .txt file i have to create a dynamic table.
If i have use *.txt also not working
Anyone suggest me its possible to do or not????
Cheers,
ShanHi Saubhik ,
Wheni execute the function i am getting the following error
Warning: compiled but with compilation errors
Errors for FUNCTION LISTDIR
LINE/COL
ERROR
7/3
PLS-00201: identifier 'DBMS_BACKUP_RESTORE.SEARCHFILES' must be declared
7/3
PL/SQL: Statement ignored
8/54
PL/SQL: ORA-00942: table or view does not exist
8/20
PL/SQL: SQL Statement ignored
10/11
PLS-00364: loop index variable 'EACH_FILE' use is invalid
10/2
PL/SQL: Statement ignored Cheers,
Shan -
How to Get the Debugger Screen in WEB Front end of SRM
Hi Gurus,
I have couple of questions for SRM.
1. How to Get the Debugger Screen in WEB Front end of SRM so i can debug the application which is running in EBP system??
2. How to set the flag for external debugging (HTTP)??
3. Using SICF how to set the ITS services ( Like BBPSC01 )for internal ITS so as soon as i place the order it should stop at the break point which i have set in the application.
Thanks.
Regards,
Manoj TiwariSetting up Debugging for Integrated ITS
Tcode SICF.
Select service (e.g. default_hostàbcàguiàsapàitsàbbpsc01).
Change service settings and insert parameter ~GENERATEDYNDPRO=1.
Find program to debug. E.g. SE93. Enter bbpsc01 à Display and get Program field (SAPLBBP_SC_UI_ITS)
Execute SE38 and enter program name.
Turn HTTP Debugging ON. UtilitiesàSettingsàDebugging. Click Actv and username.
Add HTTP Breakpoint. Display source code and select Utilitiesàbreakpointsàset.
On External Debugging select HTTP Breakpoint.
Remember to remove breakpoints, deactivate debugging and remove parameter GENERATEDYNPRO.
Can run program RSBREAKPOINTS to find which programs you have breakpoints set in.
Have fun with EBP
If you have any more questions i would be happy to help you. Send me mail on [email protected] -
How to get the original version of Web report in BW ?
Hello Friends ,
I have transported one Web report from BW development to BW Production System.
But unfortunately , the desired result not me met .
So I have been asked to keep the original version of the Web report.
As the new version of Web report has replaced the previous one ,
So could anybody tell me how to get the original version of Web report in BW ?
Many thanks in advance !!!!!!!!Hi,
You can use the Transaction STMS choose the option "Import Overview" . In the GOTO tab select "History" and choose "Import History".
Here you can find the history of requests imported to the prod system.
Regards,
K.Manikandan. -
Get the pc name with domain name and add it to my properties file using commands
i want to get the pc name with domain name and add it to my properties file using powershell .
sidfunction Get-Environment{
[environment]|Get-Member -Static -MemberType Properties |
ForEach-Object{
if($_.Name -ne 'StackTrace'){
$v=[scriptblock]::Create("[environment]::$($_.Name)").Invoke()
New-Object PsCustomObject -Property ([ordered]@{Name=$_.Name;Value=$v[0]})
Get-Environment
Get-Environment | Out-String | Out-File environment.txt
¯\_(ツ)_/¯ -
How to get the Country Name details always in Eng while using the SForms
Hi Group,
I have a requirement as under:
the Smartform has to display the COUNTRY NAME - always and it should be printed in ENGLISH only.
The Smartform is having a Alternative option(for printing the Address) and for YES part(for certain countries) - the fm "ADDRESS_INTO_PRINTFORM" is being used and for the NO(for the rest of the countries) part an ADDRESS TEMPLATE is being used....
The issues are:
- the fm 'ADDRESS.......FORM" is printing the COUNTRY Name for certain cases and for the rest it is not...
- the Address template has no option to do any manipulation on the COUNTRY Name to come
how can have the COUNTRY NAME to appear in both the cases(YES part and NO part) printed in ENGLISH always?
I tried for a USEREXIT "EXIT_SAPLSADR_900" but still not able to tweak it and get the COUNTRY NAME always in ENGLISH.
Kindly provide your valuable inputs.
Regards,
Vishnu.Hi Laura Taylor ,
Thanks for your Reply and Thanks for ur Guidelines.
Thanks & Regards
Subu.
"Laura Taylor" <[email protected]> wrote:
>
>Unfortunately, there is no way to determine the country unless the client
>indicates
>that to you directly(i.e. via a form input value). However, there are
>two request
>headers that can help you determine the language preference(s) of the
>client:
>
>Accept-Language -- Specifies the language preference(s) the client prefers
>to
>receive.
>Accept-Charset -- Identifies the charset(s) the client understands.
>
>Laura
>Developer Relations Engineer
>BEA Support
>
>
>"Subu" <[email protected]> wrote:
>>
>>Hi ,
>> i have a requiremtn in which i want to display the country name
>from
>>where
>>the user browse our webpages . for example if he is browsing from us
>>, then i
>>should display US and if he is browsing from UK , then i should dispaly
>>"uk" etc...
>>can anyone guide me how to proceed .
>>
>>thanks in advance
>>
>>Regards
>>Subu
>
Maybe you are looking for
-
Hi, I have had my ipad3 for only 2months and have now had this problem 3 times. The battery is fully charged to 100% and when I try to switch it on the slider screen appears as normal, it only stays on for a short time then a small circle appears and
-
I have a simple table where users are supposed to log the number of hours they work each day on different projects. ID USERNAME WORKDATE CHARGECODE CHARGEHOURS I want to have a region which shows the totals for each day for that user. as they enter t
-
I recently just purchased a cd and I'm having trouble putting it on to my iPad / iPod probably due to the fact that I haven't used it in awhile, but the disk has been ripped to iTunes successfully but I'm lost at that step, whould any one be so kind
-
Safari Right Click Menu Options
Ever since I updated to Safari 5.0.3 at home, I no longer have all of the numerous drop-down options for saving images when I right click with my Wacom Stylus or my mouse. I only get 3 options. I also have Safari 5.0.3 on my Mac at work, but I still
-
Why is Lightroom 5 hanging when trying to export images?
Why is Lightroom 5 hanging when trying to export images?