Special characters in title of KM resources
Hi,
I am trying to set title of resources programmatically. I have some documents in french, spanish uploaded in KM. I am reading title from an excel file as a string and then setting it as title property of a resource. When their title contains special characters, it displays "?" or squares .
Is there any solution for this problem?
Hi Julian,
When I set title containing special characters manually, they are displayed correctly in KM folder. But when I use following code for setting title, squares or "?" is displayed. In the code below, title is a string variable.
propName = new PropertyName(CREATED_BY_PROP_PREFIX1,"displayname");
p = new Property(propName, title);
res.setProperty(p);
Similar Messages
-
How can I enter special characters in a text title?
Hello to all!
Have been trying to get in a special character [the tick mark] onto a text title on my current project. Had gone to the special character option under EDIT menu, and added the desired special character to the 'favourite' list, but after that I do not know how to move ahead. Would like help.
Thanks to all.
Dr. SomannaThank you for your reply.
However I am afraid that neither double click nor drag/drop is adding the character to the text.
Is there any other method to get special characters into FCPX? -
Restricted Special characters in KM Resource name
Hi,
While creating resources in KM, it is not allowing some special characters (ex: '?' , ':') in name.
How do we know what are all the restricted special characters in KM?
Please let me know.
ThanksI think the file name restrictions which apply to naming of files on the PC apply to KM Resources as well since the file will have to be created on some file system itself.
Do refer to [this|http://kb.wisc.edu/page.php?id=2533] link to peek at the list of restricted characters.
Thanks,
GLM -
Resource bundle UTF-8 encoding and Turkish special characters problem
Hi dear developers,
I'm developing a WebCenter Portal App in JDev 11.1.1.6.0 version. My project uses resource bundle for being multilingual. I have two bundles :
1) <bundleName>_tr.properties (this the default one)
2) <bundleName>_en.properties (this is the supported locale.)
Now I have problem about the turkish characters in turkish bundle. When i run my project, it has a view just like this --> http://postimage.org/image/wr8nrm345/ (browser view) and http://postimage.org/image/3mf3fp2kl/ (bundleView)
(Watch the "?" chars ! )
You can see the bundle doesn't support Turkish special characters. How can i overcome with this problem?
Thanks in advance.Regards
erdo
Edited by: erdo on 09.Oca.2013 17:24
Edited by: erdo on 09.Oca.2013 17:25If you want to edit Unicode text resource you need a Unicode-aware text editor.
You can search the Internet, but I had a good experience with Notepad++
You may also ask in the JDeveloper forum ( JDeveloper and ADF ) if there is a way to resolve it. I found this: http://blog.newtrics.com/?p=242 , so I believe it may be possible somehow. -
Fields in Flat File are separated by special characters
hello every one,
fIf fields in Flat File are separated by special characters
and If Flat File is given in Excel sheet , how to handle this kind of issues.
to Upload data into R/3 system, in BDC.
If u have sample program ,please send it ot me and explain ?
others give me hints...Hi,
you can use the function module ALSM_EXCEL_TO_INTERNAL_TABLE .
Check this sample code.
hi,
use the FM ALSM_EXCEL_TO_INTERNAL_TABLE.
PARAMETERS:
P_INFL like RLGRAP-FILENAME.
DATA:
BEGIN OF T_DATA1 OCCURS 0,
RESOURCE(25) TYPE C,
DATE(10) TYPE C,
DURATION TYPE P DECIMALS 2,
ACTIVITY(25) TYPE C,
B_NBILL(1) TYPE C,
END OF T_DATA1,
T_DATA TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE,
BEGIN OF T_FINAL OCCURS 0,
RESOURCE(25) TYPE C,
DATE(10) TYPE C,
DURATION(15) TYPE C,
ACTIVITY(25) TYPE C,
B_NBILL(10) TYPE C,
END OF T_FINAL.
DATA : HEADER TYPE XSTRING.
Work Variables Declaration.
CONSTANTS:
W_Y TYPE C VALUE 'Y',
W_N TYPE C VALUE 'N'.
Work area.
DATA:
WA_DATA LIKE T_FINAL.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_INFL.
PERFORM GET_FILENAME CHANGING P_INFL.
START-OF-SELECTION.
PERFORM UPLOAD_DATA_FROMEXCEL.
FORM UPLOAD_DATA_FROMEXCEL.
Downloading the data from presentation server
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = p_infl
I_BEGIN_COL = 1
I_BEGIN_ROW = 2
I_END_COL = 8
I_END_ROW = 1000
TABLES
INTERN = T_DATA
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " upload_data_fromexcel
*& Form process_data
text
FORM PROCESS_DATA .
T_FINAL-RESOURCE = 'Resource'.
T_FINAL-DATE = 'Date'.
T_FINAL-DURATION = 'Duration'.
T_FINAL-ACTIVITY = 'Activity'.
T_FINAL-B_NBILL = 'Billable'.
APPEND T_FINAL.
SORT T_DATA BY ROW COL.
LOOP AT T_DATA.
CASE T_DATA-COL.
WHEN 3.
T_DATA1-RESOURCE = T_DATA-VALUE.
WHEN 4.
T_DATA1-DATE = T_DATA-VALUE.
WHEN 5.
T_DATA1-DURATION = T_DATA-VALUE.
WHEN 6.
t_data1-activity = t_data-value.
WHEN 7.
T_DATA1-B_NBILL = T_DATA-VALUE.
ENDCASE.
AT END OF ROW.
COLLECT T_DATA1.
ENDAT.
ENDLOOP.
LOOP AT T_DATA1.
T_FINAL-RESOURCE = T_DATA1-RESOURCE.
T_FINAL-DATE = T_DATA1-DATE.
T_FINAL-DURATION = T_DATA1-DURATION.
T_FINAL-ACTIVITY = T_DATA1-ACTIVITY.
T_FINAL-B_NBILL = T_DATA1-B_NBILL.
APPEND T_FINAL.
ENDLOOP.
ENDFORM. " process_data
*& Form get_filename
FORM GET_FILENAME CHANGING P_FILENAME.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = SPACE
DEF_PATH = P_FILENAME
MASK = ',. ,..'
MODE = 'O' " O = Open, S = Save
TITLE = BOX_TITLE
IMPORTING
FILENAME = P_FILENAME
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
CASE SY-SUBRC.
WHEN 1.
MESSAGE I999 WITH
'File selector not available on this windows system'(046).
WHEN 2.
MESSAGE E999 WITH
'Frontend function cannot be executed in background'(047).
WHEN 3.
MESSAGE I999 WITH 'Selection was cancelled'(048).
WHEN 4.
MESSAGE E999 WITH 'Communication error'(049).
WHEN 5.
MESSAGE E999 WITH 'Other error'(050).
ENDCASE.
ENDFORM. " get_filename
<b>Kindly Reward points if you found the reply helpful.</b>
Cheers,
CHAITANYA. -
Special characters (norwegian wovels) not showing correctly in Page Layouts
We have a publishing site which surfaces content from several catalogs in an authoring site in a cross site collection publishing environment.
We have a problem with labels for Catalog-Item Reuse Snippets containing norwegian vowels/special characters not showing properly. An example of a snippet is shown below. This contains the character ø (oslash).
<div class="rightColPaddingUnder"><h2>Leverandørkontakt</h2>
<!--CS: [NavnhovedkontaktleOWSTEXT] Start Catalog-Item Reuse Snippet-->
<!--SPM:<cc1:CatalogItemReuseWebPart runat="server" UseServerSideRenderFormat="True" ResultType="" NumberOfItems="1" UseSharedDataProvider="True" OverwriteResultPath="False" ResultsPerPage="1" SelectedPropertiesJson="["NavnhovedkontaktleOWSTEXT"]" Title="$Resources:Microsoft.Office.Server.Search,CBSItem_Title;" Description="$Resources:Microsoft.Office.Server.Search,CBSItem_Description;" MissingAssembly="Cannot import this Web Part." ID="g_1d79f6d5_037f_43b3_ac4b_4e7bc10ff1c3" __WebPartId="{1d79f6d5-037f-43b3-ac4b-4e7bc10ff1c3}">-->
<!--SPM:<RenderFormat>-->
<!--DC:Viser verdi fra søk uten ekstra formatering.-->
<!--SPM:</RenderFormat>-->
<!--SPM:</cc1:CatalogItemReuseWebPart>-->
<!--CE:End Catalog-Item Reuse Snippet-->
</div>
The frontend messes the character up and displays this as strange A
We have tried several things in order to fix this but are running out of leads:
tried to change encoding in the page layout html file from utf-8 to iso-8859-1
tried to replace ø with the hex value (ø) and the old school & + oslash + ; way of encoding characters
Regional settings on the server is verified to be norwegian
The strange part is that actual content in the content type columns that we display around the page actually shows the norwegian characters correctlyExcellent, thanks!. I checked the top level globalization setting i IIS and this was set to Windows-1252.
However, our work around solution was to add the
<meta charset="utf-8">
declaration inside the first MS-statement inside the body tag of the page layout HTML file like this:
<?xml version="1.0" encoding="utf-8"?><!--SPG:
-->
<!DOCTYPE html[]>
<html class="no-js" lang="en" xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>Some title
</title>
</head>
<body>
<!--MS:<asp:ContentPlaceHolder ID="PlaceHolderTopNavBar" runat="server">-->
<meta charset="utf-8">
<!--MS:<SharePoint:AspMenu ID="TopNavigationMenu" runat="server" EnableViewState="false" DataSourceID="topSiteMap" AccessKey="<%$Resources:wss,navigation_accesskey%>" UseSimpleRendering="true" UseSeparateCss="false" Orientation="Horizontal" StaticDisplayLevels="1" AdjustForShowStartingNode="false" MaximumDynamicDisplayLevels="3" SkipLinkText="">-->
Strange, but it worked.
Actually we tried to set the globalization settings in the web.config files of the different IIS sites running in the webapp yesterday like this:
<add name="SPWindowsClaimsAuthentication" type="Microsoft.SharePoint.IdentityModel.SPWindowsClaimsAuthenticationHttpModule, Microsoft.SharePoint.IdentityModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</httpModules>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="nb-NO" fileEncoding="utf-8"/>
<!--<globalization fileEncoding="utf-8" />-->
<compilation batch="false" debug="false">
As far as I can understand this should have the same effect as setting this in IIS.
It seems that the IIS setting actually overrides whatever you put in web.config for globalization options.
We have updated the IIS setting now to UTF-8 and done a IIS Reset. At the moment we get corrupted characters still, but now the existing aspx-files probably is corrupted and needs to be replaced with fresh ones. I will do a catalog dis-/reconnect.
I'll update with whatever we end up with as the final solution. Anyway, very grateful for the invaluable help from a fellow Scandinavian :-) -
XML Publisher report not printing excel output due to special characters
Hello,
I am trying to create a xml publisher report which should display the output in excel. But the program completes with a warning status and the output is displayed as XML instead of excel, with some errors "An invalid character was found in text content. Error processing resource " and i think these errors are due to the special characters(eg: city/province - A Coruña, Cáceres). If i give rownum < 10 in my query, where there are no such characters it works fine and i am getting an excel output.
Tried changing the XML encoding and it doesn't help (both mentioned below)
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
Do anyone have a solution for this
Thanks in advance
Edited by: user10317098 on Jan 16, 2012 10:58 AMHi,
Check this links that might help you..
https://forums.oracle.com/thread/1018488
http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
Here the Exact solution from Oracle
In the XML PUBLISHER ADMINISTRATOR Resp..
Click the administration..
then Click HTML Output
Then in the Base Image URI Give the url of your application for example
http://Test.Test.com:8000/OA_MEDIA/
And then
Image File Directory give this as per your application setup
/u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
Thanks & Regards
Srikkanth.M -
When viewing most text on most websites, it displays properly. However, there are two instances where text will either tend to, or consistently, become jumbled into a mess of seemingly random characters. Oddly enough, these seemingly random characters are not, in fact, random. The same weird character will be used to replace the same regular English text character consistently across the entire area that has been jumbled.
The two instances where this tends to occur most often, or consistently in some cases, are, first, when a paragraph or particular section of formatted text contains special characters, such as Chinese or Japanese characters, or accented letters. When this happens, usually the paragraph that contains the special characters is completely jumbled, while the rest of the text on the page will have intermittent jumbling on a word or two. Most often, the word "the" is jumbled in this case.
The second instance where this happens is when a website uses specially formatted text in some form or another. I, not being an expert at web development, am not sure what kind of formatting causes it, but I can provide consistent examples in lieu of my experience:
- Example 1:
[http://img408.imageshack.us/img408/9564/firefoxcharencodingissu.jpg]
Example 1 shows a portion of a screen-shot of the website "Joystiq.com". Every single article title on the front page of this blog is consistently jumbled, while the text of the article itself remains untouched. Please note that when this jumbled text is highlighted, it is visible un-jumbled in the right-click menu as well as in the source code of the page. Other consistent instances can be found within many search fields on various websites. For instance, the search bar located at the top right of "Kotaku.com" consistently displays jumbled characters both on its default text of "Search" and on any text that is typed into the search box itself.
- Example 2:
[http://img822.imageshack.us/img822/9564/firefoxcharencodingissu.jpg]
Example 2 shows both the jumbling of the paragraph containing the character "☆" as well as the subsequent peppering of the rest of the article's text with small jumbled words. Below this is the DOM Source of the selected text which shows how the text itself is being rendered properly within the site's source. Additionally, for convenience, I have edited on to the bottom of the image a small snippet of what the search bar on the same page looks like. Notice how the grayed-out text that normally would read "Search" is instead jumbled.
This issue has been plaguing my browser for the past year or so, and I had hoped that it would go away with subsequent Firefox updates. It has not gone away.
Thank you for reading! Please help!This issue can be caused by an old bitmap version of the Helvetica or Geneva font or (bitmap) fonts that Firefox can't display in that size.
Firefox can't display some old bitmap fonts in a larger size and displays gibberish instead.
You can test that by zooming out (View > Zoom > Zoom Out, Ctrl -) to make the text smaller.
Uninstall (remove) all variants of that not working font to make Firefox use another font or see if you can find a True type version that doesn't show the problem.
There have also been fonts with a Chinese name reported that identify themselves as Helvetica, so check that as well.
Use this test to see if the Helvetica font is causing it (Copy & Paste the code in the location bar and press Enter):
<pre><nowiki>data:text/html,
Helvetica<br><font face="Helvetica" size="25">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font><br>
Helvetica Neue<br><font face="Helvetica Neue" size="25">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font>
</nowiki></pre>
You should reset the network.http prefs that show user set on the about:config page.<br />
Not all websites support http pipelining and if they do not then you can have issues with images or other problems.
See also http://kb.mozillazine.org/Images_or_animations_do_not_load#First_steps -
How can I distinguish special characters or signs in Doc through VBA?
How can I distinguish special characters or signs in Doc through VBA?
I have a few large documents written in word 2003 format and now I work on them under word 2007.
Such large documents containing lots of special characters. I want to change them into Microsoft 3.0 equation form(It is required by the team). I find no way but using function AddOLEObject and Sendkeys through VBA. Common characters can be added
to equation by function Sendkeys, but the return value of Asc() or AscW() for "double arrow", "in" , " not greater than " such special characters or signs, to name but a few are the same ,i.e., 40 And I cannot distinguish them.
I found the link http://msdn.itags.org/word/44333/ may be of use to me, and the title is:
How to read symbols from a DOC documents! (Microsoft Word)
the original question is
Using function "InsertSymbol", I can insert a symbol into a document. But
how can I read a symbol from a document?
Using "Characters(i).range.text", I can read a char. But when meeting a
symbol, the value of "Characters(i).range.text" is always '('.How can I get the CharacterNumber of the symbol.
And the final answer is :
Hi chenfeng,
Word protects symbols from symbol fonts if you insert them from the "Insert
> Symbol" dialog.
This is done so they aren't changed when you change the font or style. But
it also results in Word reporting AscW( ) = 40 on all of them.
I've posted a macro to "unprotect" them (or to protect them again if you
want) ... just today again in
Newsgroups: microsoft.public.word.vba.customization
Subject: Symbol Characters
Date: Mon, 3 May 2004 11:00:46 -0700
Message-ID: <09f401c43138$8f92f900$[email protected]>
It isn't archived on Google yet, but tomorrow you should be able to simply
copy the message ID into http://www.google.com/advanced_group_search.
Regards,
Klaus
But the link for the macro in the final answer is missing.
Can anyone with kindness help me? Thaks a lot.Following Cindy Meister's Advice ,I use MathType SDK.
The sample in MathType SDK in the following may be meaningful,but I do not know how the MTEF for cos^^2Theta, MTEF for sin^^2Theta and MTEF for 1 are generated .
It looks much complicated,and I searched the docs in MathType SDK to get a explanation.Is there any function to generate them? I want to use this method to change commaon text mathematical signs( in special character table) and Greek letters and characters
with subscripts and superscripts to Microsoft 3.0 equation form.
Can anyone with kindness help me?
Sub MTEFTextSubstitution()
Dim MTEFStr1$, MTEFStr2$, MTEFStr3$
Dim stat
'MTEF for cos^^2Theta
MTEFStr1$ = "% MathType!MTEF!2!1!+-" + _
" % feaaeaart1ev0aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn" + _
" % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr" + _
" % 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9" + _
" % vqaqpepm0xbba9pwe9Q8fs0-yqaqpepae9pg0FirpepeKkFr0xfr-x" + _
" % fr-xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaci4yaiaac+" + _
" % gacaGGZbWaaWbaaSqabeaacaaIYaaaaOGaeqiUdehaaa!3B65!"
'MTEF for sin^^2Theta
MTEFStr2$ = "% MathType!MTEF!2!1!+-" + _
" % feaaeaart1ev0aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn" + _
" % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr" + _
" % 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9" + _
" % vqaqpepm0xbba9pwe9Q8fs0-yqaqpepae9pg0FirpepeKkFr0xfr-x" + _
" % fr-xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaci4CaiaacM" + _
" % gacaGGUbWaaWbaaSqabeaacaaIYaaaaOGaeqiUdehaaa!3B6A!"
'MTEF for 1
MTEFStr3$ = "% MathType!MTEF!2!1!+-" + _
" % feaaeaart1ev0aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn" + _
" % hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr" + _
" % 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq-Jc9" + _
" % vqaqpepm0xbba9pwe9Q8fs0-yqaqpepae9pg0FirpepeKkFr0xfr-x" + _
" % fr-xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaaGymaaaa!36A4!"
Selection.Copy
'Init API, reset transform
' If MTUtil.CheckMTDLLVersion = 0 Then Exit Sub
If Not IsDLLVersionOK() Then Exit Sub
MTXFormReset
'first substitution
stat = MTXFormAddVarSub( _
mtxfmSUBST_ONE, _
mtxfmVAR_SUB_PLAIN_TEXT, "<v1>", 0, _
mtxfmVAR_SUB_MTEF_TEXT, MTEFStr1$, Len(MTEFStr1$), 0)
If stat <> 0 Then
MsgBox "1st MTXFormAddVarSub returned: " + Str(stat)
Exit Sub
End If
'second substitution
stat = MTXFormAddVarSub( _
mtxfmSUBST_ONE, _
mtxfmVAR_SUB_PLAIN_TEXT, "<v2>", 0, _
mtxfmVAR_SUB_MTEF_TEXT, MTEFStr2$, Len(MTEFStr2$), 0)
If stat <> 0 Then
MsgBox "2nd MTXFormAddVarSub returned: " + Str(stat)
Exit Sub
End If
'third substitution
stat = MTXFormAddVarSub( _
mtxfmSUBST_ONE, _
mtxfmVAR_SUB_PLAIN_TEXT, "<v3>", 0, _
mtxfmVAR_SUB_MTEF_TEXT, MTEFStr3$, Len(MTEFStr3$), 0)
If stat <> 0 Then
MsgBox "3rd MTXFormAddVarSub returned: " + Str(stat)
Exit Sub
End If
'do the substitution
stat = TransformGraphicEquation
If stat <> 0 Then
MsgBox "TransformGraphicEquation returned: " + Str(stat)
Exit Sub
End If
MTTermAPI
'Paste new equation
Selection.Collapse Direction:=wdCollapseEnd
Selection.PasteSpecial Placement:=wdInLine
End Sub -
Oracle BPM Studio 10g R3 cataloging Web Services strips special characters
Hi folks,
I have a Web Service that I'd like to invoke from an activity in my process.
When I catalog the WSDL, BPM Studio creates the associated External Resource just fine except for one small problem, namely all Simple Types that have 'special characters' in their enumerated String values are stripped clean.
Example 1:
ADSL1
ADSL2
ADSL2+
--> The plus is stripped from ADSL2+, causing BPM Studio to flag two problems caused by duplicate 'ADSL' values
Example 2:
adsl1#foo/123
--> Everything to the left of 123 is stripped leaving only '123' as a value
In fact in the BPM Studio's Editor, the only special character that is allowed is the underscore. Everything else e.g. \ # etc etc cannot be keyed in.
Has anyone come across this before? Thanks for reading :-)
cheers
jm -
Special character in title property of file in KM
Hi Friends,
In KM, I have uploaded some german,spanish files. When I set title with special character It shows square characters. If I write unicode, I displays unicode as it is..
So Can anybody help me in this case?Hi
Refer this link
http://social.technet.microsoft.com/Forums/office/en-US/6e7a7eae-26fc-467f-bfdc-7c5d5ff49a95/discussion-forum-storing-special-character-in-title-differently?forum=sharepointdevelopmentlegacy
It seems that SharePoint will allow the Title of the discussion board to remain with the special characters, but the actual URL will not be allowed and will strip them from the final URL. SharePoint Manager easily shows this, btw.
So, there are probably many different ways to get what you are looking for, but one way could be to have a Linq query look for all Discussion Boards on a given site and then return the Title and the DefaultViewUrl, which the latter could then be prefixed by
the SPWeb.Url to give you something like "Testing? , /" for the title and http://mysite/Lists/Testing/AllItems.aspx (assuming
that is the actual default view) which you could then use as the final URL for your hyperlink in your web part.
In the code snippet below you can see the Linq query (which I assumed from your post that you need to query to find the Discussion Boards) and a simple DataTable that you could then use to populate a repeater or you just omit the DataTable and
enumerate the results from the query yourself:
var linqResults
= from list in oSPWeb.Lists.Cast<SPList>() where list.BaseTemplate
== SPListTemplateType.DiscussionBoardselect list;
DataTable oDataTable
= new DataTable();
DataColumn oDataColumn_Title
= new DataColumn("Title", typeof(string));
oDataTable.Columns.Add(oDataColumn_Title);
DataColumn oDataColumn_URL
= new DataColumn("URL", typeof(string));
oDataTable.Columns.Add(oDataColumn_URL);
foreach (SPList oSPList in linqResults)
DataRow oDataRow
= oDataTable.NewRow();
oDataRow[
"Title"]
= oSPList.Title.ToString();
oDataRow[
"URL"]
= oSPWeb.Url + oSPList.DefaultViewUrl.ToString();
oDataTable.Rows.Add(oDataRow);
oDataTable.AcceptChanges();
Please remember to click 'Mark as Answer' on the answer if it helps you -
RegExp for excluding special characters in a string.
Hi All,
Im using Flex RegExpValidator. Can anyone suggest me the correct expression to validate this condition?....
I have tried this expression :----- /^[^///\/</>/?/*&]+$/...But in this it is also negating the alphabets.Also I have tried with opposite condition that in the String we should have alphabets and the expression is:-- ([a-z]|[A-Z]|[0-9]|[ ]|[-]|[_])*..... Please can anyone help me on this.
Thanks in advanced to all.
Munirasorry but you are posting things back that do not make any sense
what do you mean with the below comment?
munira06 wrote:
Yes you are correct ,but I have tried this with single special character
say
Re: RegExp for excluding special characters in a string.
here is a sample app taken from the live docs
using ^[a-zA-Z0-9 \-_]*$ as the regex accepts all characters from a-z, A-Z, 0-9 - [space] and_
run the example tell me what regex you are using and what test strings fail when they should pass or pass when they should fail
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the RegExpValidator. -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import mx.events.ValidationResultEvent;
import mx.validators.*;
// Write the results to the
private function handleResult(eventObj:ValidationResultEvent):void {
if (eventObj.type == ValidationResultEvent.VALID) {
// For valid events, the results Array contains
// RegExpValidationResult objects.
var xResult:RegExpValidationResult;
reResults.text = "";
for (var i:uint = 0; i < eventObj.results.length; i++) {
xResult = eventObj.results[i];
reResults.text=reResults.text + xResult.matchedIndex + " " + xResult.matchedString + "\n";
} else {
reResults.text = "";
]]>
</fx:Script>
<fx:Declarations>
<mx:RegExpValidator id="regExpV"
source="{regex_text}" property="text"
flags="g" expression="{regex.text}"
valid="handleResult(event)"
invalid="handleResult(event)"
trigger="{myButton}"
triggerEvent="click"/>
</fx:Declarations>
<s:Panel title="RegExpValidator Example"
width="75%" height="75%"
horizontalCenter="0" verticalCenter="0">
<s:VGroup left="10" right="10" top="10" bottom="10">
<s:Label width="100%" text="Instructions:"/>
<s:Label width="100%" text="1. Enter text to search. By default, enter a string containing the letters ABC in sequence followed by any digit."/>
<s:Label width="100%" text="2. Enter the regular expression. By default, enter ABC\d."/>
<s:Label width="100%" text="3. Click the Button control to trigger the validation."/>
<s:Label width="100%" text="4. The results show the index in the text where the matching pattern begins, and the matching pattern. "/>
<mx:Form>
<mx:FormItem label="Enter text:">
<s:TextInput id="regex_text" text="xxxxABC4xxx" width="100%"/>
</mx:FormItem>
<mx:FormItem label="Enter regular expression:">
<s:TextInput id="regex" text="ABC\d" width="100%"/>
</mx:FormItem>
<mx:FormItem label="Results:">
<s:TextInput id="reResults" width="100%"/>
</mx:FormItem>
<mx:FormItem >
<s:Button id="myButton" label="Validate"/>
</mx:FormItem>
</mx:Form>
</s:VGroup>
</s:Panel>
</s:Application> -
Special Characters in a HTML region
I recently upgraded from HTMLDB 2.0 to APEX 2.2 and I'm having trouble with some special characters.<br>
<br>
I have HTML region in which I display a hidden item. The hidden item (P1_TEST) has the following value:<br>
<br>
STRING1<br>STRING2<br>STRING3<br><br>
<br>
The region source has a single reference to the hidden item:<br>
<br>
&P1_TEST. <- the period is there. :)<br>
<br>
In HTMLDB 2.0 the display in the HTML region would render the region as<br>
<br>
STRING1<br>
STRING2<br>
STRING3<br>
<br>
In APEX 2.2, the region is rendered as<br>
<br>
STRING1<br>STRING2<br>STRING3<br><br>
<br>
which is obviously not what I want. <br>
<br>
Any ideas anybody? I must be missing something simple. :)<br>
<br>
Thanks, KentKent - This is explained here: Re: Computed Region TItles being Escaped in Apex 2.2 You can use an application item instead of a hidden page item as a quick solution. To continue to use a page item you can make its display type Display as Text (does not save state) and set its display condition to Never.
Although this change from 2.0 to 2.2 necessitates this type of inconvenient program modification, the benefit is that a cross-site scripting vulnerability that existed in your application will now be corrected.
Scott -
Special Characters issue---u00FA ,u00A3---- in Reciver SOAP Adapter
Hi ,
I am facing issues with Spceial Characters ú ,£ at the reciver SOAP adapter ,the messages was stuk in XI with to the following error :An invalid character was found in text content. Error processing resource
I tried in several ways buy using XMBWS.XMLEncoding=iso-8859-1,
but it was not resloved still I am getting the same error,
Any one plz suggest me how to resolve this issue....
Regards,
Teja.Hi ,
My scenario is RFC--SOAP ,the messages was successfully rached to RFC adapter and I am facing the issue at the receiver SOAP Adapter ......
I am getting error messages such as :
1) 400 Bad Request
2) In the XML Payload ......It is showing as Invalid Character found ....
For this I tried ...
1) In the source payload XML I done the chages in the encodding part
encoding part as iso-8859-1instead of utf-8.
2) I have triggered the message from Integration Engine ....then it was successfully processed through SOAP Adapter
3) with special characters...means there is no issue at target end.
4) the issue lies in XI so we have to resolve it.
I tried by using Adapter paramters which was provided by SAP but the result is same..
so the paramters which was provided by SAP are incorrect(for encoding)
Please help me in resolving this issue .........
Regards,
Teja. -
Special Characters in KM Names
Hello Experts,
are there any restrictions regarding special characters in KM Properties or any other Km Objects? I have in mind i read somewhere about restrictions for search result set names / ids, are there are also in any other areas restrictions?
Thanks for your help,
Stefan>
Raymond HENG wrote:
> Thus..a quick conclusion if I may..
> 1) Folder and file name: any of your choice but will impact your portal search if you choose to use special char's in the name
> 2) Folder and file ID: No spacing or special char's as indicated by Bobu.
>
> Hope that helps.
> Ray
Wow, this is misleading.
The confusion starts with saying "special", and then not define it...
The KM UI uses display names, but this doesn't affect what you can or can't put into an identifier (the RID for resources, or the property name for properties).
What RIDs can take depends on the repository manager. In the best case, it roughly allows everything that would be allowed in a Windows filename. In particular, some rules depend on position as well, such as no trailing whitespace.
Property names by definition use the same rules as XML element names (thus no whitespace at all).
BR, Julian
Maybe you are looking for
-
My iPod Classic 80gb will not transfer purchases to my iTunes library. When I click the "Transfer Purchase" button, it says it's working, but then I get a pop-up which reads 'Attempting to copy the disk "OS" failed. An unknown error occurred (-6
-
Can I have my older system upgraded at an Apple store?
I have an early 2009 mini and I would like to upgrade the ram and HD. Currently I have 2Gb RAM and would like to put in the max of 8Gb and also replace the 5200 RPM HD with a 7200 RPM drive. If I buy the hardware myself can I take it to an Apple stor
-
Is this really a Shieldzone the 'Invisible Shield'?
Hi I ordered a Shieldzone skin for my nano, and as I'm in the uk I couldn't order from the USA site, so found a company through Amazon to buy it from. It arrived today, but on the packaging, rather than a Sheildzone logo, there's a CAPDASE logo. Over
-
Use automator to send document from pages directly in outlook
send an email from pages directly in Outlook Even though Outlook is selected as the default reader, Mail opens to send a document directly out of Pages. Is it possible to set up a service in Automator to use Outlook instread of Mail? Or is there an
-
How can I fix this?