Adding a custom meta data field which lists out content id based on query
How can we add a custom meta data filed which lists out content id based on query like dDocType <matches> `AssociatedProduct`?
Or other alternative would be to have a custom metadata field such that it allows selection of content id using link wizard which we typically use in site studio. It would be preferable to have this second option as it is user friendly. Can we do this on a check-in screen?
-Pratap
Thanks for the reply Deepak.
We got it resolved. We did following changes in /ucm/custom/SiteStudio/resources/ss_custom_field_resources.htm file and it worked cleanly.
Added following section at the end before body tag
===================================================================================================
<@dynamichtml ss_parent_definition_field_entry@>
<$include super.std_edit_entry$>
<$if isQuery and isTrue(isQuery)$></td><td><$endif$>
<$include ss_contributor_base_scripts$>
<script type="text/javascript" src="<$HttpRelativeWebRoot$>resources/<$SSContributorSourceDir$>/sitestudio/wcm.contentserver.popup.js"></script>
<script language="JavaScript">
function OnSelectParentId()
var selectParentIdOptions = {};
selectParentIdOptions.httpCgiPath = '<$HttpCgiPath$>';
selectParentIdOptions.queryText = 'dDocType <matches> `Country`';
selectParentIdOptions.coreContentOnly = '<$if coreContentOnly and isTrue(coreContentOnly)$>1<$else$>0<$endif$>';
selectParentIdOptions.callback = function( returnParams )
returnParams = returnParams || {};
if( returnParams && returnParams['dDocName'] && ( returnParams.dDocName.length > 0 ) )
// Set the actual metadata value
<$if isQuery AND isTrue(isQuery)$>
for (var i=0; i < document.<$formName$>.elements.length; i++)
var elt=document.<$formName$>.elements;
if (elt.name=="<$fieldName$>")
elt.value = returnParams.dDocName;
<$else$>
document.<$formName$>.<$fieldName$>.value = returnParams.dDocName;
<$endif$>
WCM.ContentServerPopup.ChooseManagedDocument(selectParentIdOptions);
</script>
<input type="button" value="<$lc("wwBrowse")$>..." onclick="OnSelectParentId();">
<@end@>
======================================================================================
Then modified the section which show xWebsiteSection, xRegionDefinition etc to include my custom meta data defitnion as well ('xParentContentType')
===================================================================
<@dynamichtml std_edit_entry@>
<$if fieldName and ( fieldName like "xWebsites|xDontShowInListsForWebsites" )$>
<$include ss_website_query_text_field$>
<$elseif fieldName and strEquals( fieldName, "xWebsiteSection" )$>
<$include ss_website_section_field_entry$>
<$elseif fieldName and strEquals( fieldName, "xRegionDefinition" )$>
<$include ss_region_definition_field_entry$>
<$elseif fieldName and strEquals( fieldName, "xParentContentType" )$>
<$include ss_parent_definition_field_entry$>
<$else$>
<$include super.std_edit_entry$>
<$endif$>
<@end@>
====================================================================
This worked fine.
Regards,
Pratap
Similar Messages
-
Large memo meta-data field not fully indexed
Hi all,
Another day, another UCM question. Hopefully the answers given to my questions will help people facing the same issues.
We created a custom meta-data field of type memo. Looking into the database, the following columns were created:
colmeta.xcustom1 varchar2(2000)
docmeta.xcustom1 varchar2(2000)
idctext1.xcustom1 varchar2(2000)
idctext2.xcustom1 varchar2(2000)
indexerstate.xcustom1 varchar2(2000)
We want specific meta-data field to hold 5000 characters and to have its content retrievable by the full text search feature. We've read about the MinMemoFieldSize and MemoFieldSize configuration variables, but reasoned that they shouldn't be used since the size requirement is only for this specific field.
So we've updated the database schema manually (can't seem to find another way to do this) by sending these instructions:
alter table colmeta modify xcustom1 varchar2(5000)
alter table docmeta modify xcustom1 varchar2(5000)
Then restarted the UCM server and performed a full collection index rebuild.
These updates work in that new content can be created with a meta-data value of up to 5000 characters (it would give an error before). However, it seems that the whole field value is not being indexed: doing a full-text search on a word in the first 2000 field characters finds the content, but doing a full-text search on a word in the last 3000 field characters doesn't.
We've tried manually extending the size of the idctext1, idctext2 and indexerstate columns, but it doesn't seem to have any impact.
Any ideas?
Thanks again.
Edited by: Spiff on 1-Feb-2012 12:32 PMHi ,
Please check the following post's last update .
Metadata fields sizes
Thanks
Srinath -
My DocMeta table has 50 columns. we are building lots of applications in UCM. Every application has its own meta-data requirements. I doubt that pretty soon the column count will increase to 100+. Is there any limitation in UCM on number of custom meta-data fields that we can create? if my DocMeta columns count increases to 100, would it affect the queries/UCM performance ?
thanksIt would depend on the underlying database from a technical standpoint.
A good discussion for Oracle database limits - Limit on a number of columns in a table?
MS SQLServer - http://msdn.microsoft.com/en-us/library/ms143432.aspx
From a usability/maintenance standpoint, that's another matter. YMMV. -
Changing the Default meta data field property required into not required.
Hi,
Is it possible to change the default meta data field property values in UCM server.
For example consider the meta data Revision field which property required is true, then how to change this property required into not required.
Is this possible or not?
Thanks
HariHari,
in your case (if you don't want to use versioning) I'd rather recommend to change it to hidden than not required. You should be able to do it with standard profiles (the field name, I believe, is dRevision)
I don't think you can have the field empty (in case someone deletes the content). -
Dear,
I saved a document library containing folders and files as a template to use it as a template when I created a document library. It contains a lot of folders and files.
When I tried the document library to sync with workspace it gives an error "Data in this list references content type "", which is no longer in the list schema"
I checked with this error and I found out that it has issue with onenote file, but my library does not contain any onenote file.
I wonder if there is any issue regarding the number of folders to sync at a time because when I tried to sync with document library similar to the big library but lesser folders and files.
ThanksThis is caused by certain OneNote files. I've filed a support ticket on this. See my
post on possible workarounds. You might view the entire library in windows explorer or flatten the folder structure in a view to confirm that there are not any OneNote related files.
Corey Roth blog: www.dotnetmafia.com twitter:
@coreyroth -
How to create a date field which is 16 months before today(current day)
Hallo,
I made a report and i want to set date limits. My data contains a date field so in record selection filter i like to set that the date field is between date1 and date2.
As date2 i set and as date1 i what to set a date which is 16 months before today(first of that month)
For example today is 08/05/2010 so,
date2 = 08/05/2010(August 2010) and date1 = 05/01/2009(May 2009)
Any idea?Ian,
Here's a little formula for getting to the first of the month, that's easier than what you've been using...
To find the beginning of the current month
DateAdd("m", DateDiff("m", #1/1/1900#, CurrentDate), #1/1/1900#)
... or to find the begining of the month. 16 months ago
DateAdd("m", DateDiff("m", #1/1/1900#, CurrentDate) - 16, #1/1/1900#)
Jason -
BAPI_REQUISITION_CHANGE. where is the customer's data fields
hi all,
i need to use BAPI_REQUISITION_CHANGE to change PR's customer's tab fields but in the tables i didnt see the extended fields, how can i add these fields..Shashi,
Try this:
report z_po_req_create.
DATA : T_REQUISITION_ITEMS LIKE BAPIEBANC OCCURS 0 WITH HEADER LINE,
T_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
DATA : E_NUMBER LIKE BAPIEBANC-PREQ_NO.
T_REQUISITION_ITEMS-DOC_TYPE = 'NB'.
T_REQUISITION_ITEMS-DEL_DATCAT = '1'.
T_REQUISITION_ITEMS-DELIV_DATE = '20020626'.
T_REQUISITION_ITEMS-PLANT = 'P1'.
T_REQUISITION_ITEMS-STORE_LOC = '01'.
T_REQUISITION_ITEMS-PUR_GROUP = 'P01'.
T_REQUISITION_ITEMS-MAT_GRP = '01'.
T_REQUISITION_ITEMS-PREQ_ITEM = 1.
T_REQUISITION_ITEMS-MATERIAL = '1MAT1'.
T_REQUISITION_ITEMS-QUANTITY = 10.
T_REQUISITION_ITEMS-PREQ_NAME = '123456'.
T_REQUISITION_ITEMS-PURCH_ORG = '1000'.
T_REQUISITION_ITEMS-ACCTASSCAT = 'U' .
T_REQUISITION_ITEMS-VEND_MAT = 'G'.
APPEND T_REQUISITION_ITEMS.
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
EXPORTING
SKIP_ITEMS_WITH_ERROR =
IMPORTING
NUMBER = E_NUMBER
TABLES
REQUISITION_ITEMS = T_REQUISITION_ITEMS
REQUISITION_ACCOUNT_ASSIGNMENT = T_REQ_ACCOUNT_ASSIGNMENT
REQUISITION_ITEM_TEXT =
REQUISITION_LIMITS =
REQUISITION_CONTRACT_LIMITS =
REQUISITION_SERVICES =
REQUISITION_SRV_ACCASS_VALUES =
RETURN = T_RETURN
REQUISITION_SERVICES_TEXT =
EXTENSIONIN =
REQUISITION_ADDRDELIVERY =
IF NOT E_NUMBER IS INITIAL .
WRITE:/ 'REQ NO:' , E_NUMBER , 'CREATED'.
ELSE.
LOOP AT T_RETURN.
WRITE T_RETURN-MESSAGE.
ENDLOOP.
ENDIF.
Reddy -
Hi,
I have a scenario as below.
I have to add no. of days to the exixsting date field in the program. The statement is like this.
<b>DATE1 = DATE + XDAYS.</b>
Where <b>DATE</b> is in <b>DDMMYYYY</b> format. and XDAYS holds the number of days which will be retrieved from the standard table. And DATE1 should hold the result date.
<b>eg:</b> Let <b>DATE</b> = <b>30.08.2007</b>
<b>XDAYS</b> = <b>15</b>
DATE1 = DATE + XDAYS. => <b>DATE1 = 30.08.2007 + 15</b>.
<b>DATE1 = 14.09.2007</b>
Is there any easiest way to do this. or is there any function mdule to do this operation.
I hope you understood the question. Please let me know if I need to be more clear.
Thanks in advance.
-Pradeep.Hi,
The date will be in internal format of 8 digits... Like 20070830..
Directly add the number of days.. system will automatcally calculate
w_new = w_old + 15 (20070830 + 15)
w_new becomes 20070914
and when you will write this : WRITE : w_new. It will show 14.09.2007 or depending on your settings for the date format. No need to call any fm for this..
Thanks and Best Regards,
Vikas Bittera.
**Reward if useful** -
LSMW Customer additional Data fields.
Hi everyone
I m trying to do Lsmw By data migration fields value from excel to customer additional fields but, when starting the recording I cant find the additional data fields KNA1-KATR6 KATR7 KATR 8
can anyone help please
Regards
ZacHello Zac,
When recording it - In the Address screen click on environment and additional data field. There you can see all attribute fields.
Thank you for your time.
Regards,
Siva. -
Adding alternative text (meta data)
How do you add Alternative Text to an existing jpeg?
ThanksGood day!
A jpg can not have »proper« editable text (except in the meta data etc.) but rather presents an image of text.
So changing text in the image would require removing the old text (if it is not completely covered by the new text at least) by using the various tools available for such a task in Photoshop (Clone Stamp Tool, Content Aware Fill, …) and writing in the new one (with the Type Tool for example).
In such a case it might pay off to keep the layered psd file and save a jpg off of that (File > Save As).
Regards,
Pfaffenbichler -
Not able to get the taxonomy field value of meta data field type
Hi Everyone,
Not able to get the taxonomy filed value from the metadata filed type.
Any one can help me on this.
Label, TermGuid, ValidatedString are showing empty when i debug the code.
Below is the code which i used to get the taxonomy filed valueHi,
Can you please try getting this way?
var taxonomyField = listItem.Fields.GetFieldByInternalName(fieldName) as TaxonomyField;
if (taxonomyField.AllowMultipleValues)
var fieldValuesCollection = listItem[taxonomyField.Title] as TaxonomyFieldValueCollection;
return fieldValuesCollection.Select(x => new Guid(x.TermGuid)).ToList();
else
var fieldValue = listItem[taxonomyField.Title] as TaxonomyFieldValue;
return new List<Guid>() { new Guid(fieldValue.TermGuid) };
Hope it helps!
Thanks,
Avni Bhatt
If this helped you resolve your issue, please mark it Answered -
INBOUND IDOC not updating the basic data field which is created newly
Hi,
i am creating an inbound IDOC for material master creation in that in basic data1 i have created 2 custom field in general data 1 is updating and another is not updating with the value in iDOC.
User exits codes are fine. but data is not updating.
can some one help hw to resolve this..
regards,
thanigaiHi,
Are you Debug the function module in Process code of IDOC and use COMMIT WORK in that Function module. -
Customizing meta data import in Flash web galley
I'm using CS4 Bridge to create a slide show with the Journal with Slideshow template, which captures metadata for the caption. I don't want the image information. I want the Description field. I can manually edit the XML file to remove it, but I would prefer to never have it enter in the first place. How do I modify which file info fields will be captured?
I also want to change the metadata import font. No matter how I specify it in the group.xml and style.xml it defaults to Arial.
I haven't found either of the settings in the control panel.Hi Yuriy,
Web Dynpro components and applications are normal development objects. This means, you can transport them to any system using the change and transport system. There is no need to work with a separare xml representation.
Best regards,
Thomas -
Adding slashes to a date field
I am creating a form that requires users to enter a date of birth. is there a way to make Adobe automatically insert the "/" between mo/day/year?
This is the error I get when I enter a birth date without the slashes--then I have to go in and manually insert them.
I'm not a program or techie, so please explain things in lay terms and easy-to-follow steps!Hi, this does not exactly answer your question but it might be a more straight forward solution than what you are tying to do.
http://www.youtube.com/watch?v=lPdON6zHRsU -
Visio 2010 - Shape Data Fields Are Not Saving
I am having a problem with a number of shape data fields which are not saving data that has been entered into it, whether by entering it through the "shape data" or "define shape data" dialog boxes, or by editing the "shape
sheet".
All data fields appear to save normally while file is open, it remains as entered. However, when file is closed and later reopened select data fields do not retaining data correctly. Some retain nothing (null), or revert back to a "default"
value, see below for a couple examples:
Rack Units: Want to enter data as 1U, 2U, etc. ... in some cases it will save it as entered while in other cases it reverts to "1 RU", "2U", etc.
Room: Enter the data as I want it stored, most of the time it appears to come back empty, there are some shapes which will retain as entered.
Comments: Fails to retain any data
I have looked at a number of reasons to explain why, whether the problems occur with stencils is supplied by Microsoft, a vendor, or were custom created. Looked into whether it might have to do with a particular vendor's stencils/drawings
but I have a number of Cisco drawings where some save those fields as entered while others do not. I believe it could be a setting within the stencil preventing it from saving the data as entered, enabled in some cases and not in others.
I have checked "Protection" under the "Developer" tab, but nothing appears to be set to prevent editing/storing data entered.
Is there some setting(s) or field(s) somewhere that I can look at to allow this data to be saved as entered?
Is there a GLOBAL setting that can be set once within a file?
Thank you in advance for your time to assist me in fixing these problems. Have a great day!
MJ_NWE
MJ>Can I build logic so that they can't fill in a field unless the previous field has been filled in?
It's theoretically possible to do this (e.g. each field has an action
of removing read-only on the next). It's considered extremely bad form
design, because people don't always fill in fields in the order
specified. If you watch people with a form they fill in their name,
address, other easy stuff; then they go back for the harder stuff.
They may want to save a form because one piece of information needs
research.
What you might like to consider is a large splash "FORM INCOMPLETE" in
Red or whatever, which vanishes when all the fields are completed.
Aandi Inston
Maybe you are looking for
-
How to replace the hard drive on a Powerbook?
The 80 GB Toshiba HD on my Powerbook G4 17 inch recently failed. Apple informs me that the flat rate to replace the drive out of warranty is over $900. I can't see shelling out that much for a new drive on a two year old PB. I'd like to think I could
-
404 error Exception in thread "main" java.rmi.RemoteException: HTTP �������� 4
I have Install Sun Application Server PE and JWSDP,when I run asant run-sample,an error below: run-sample: [echo] Running the simple.TestClient program.... [java] Service URL=http://localhost:8080/securesimple/Ping [java] 2005-11-11 1:03:11 com.sun.x
-
Z10 10.2.1.537
We missed in new update the indicator for unread massages on screen saver
-
Not available V.40 here in philippines .
Hey Nokia! How long can we wait for v.40?? I need your answer(s) needly!! twitter: http://twitter.com/miggelofthedark Solved! Go to Solution.
-
Convert Numbers to Excel Format
How do i take a numbers spreedsheet and convert it to Exel so when I send it my buddy how has a pc can read it?