In WSO2 Governance registry (version 5.0.0), the advance search is not working for the scenario involving “unbounded options” fields. Here is a test case I tried. Created a new artifact type with following field. Artifacts list page renders fine. Then through advance search page, searched for the criteria “subheadingOne=value1 AND subheadingone=value2” , search comes back with no items.
Any hint what I am doing wrong?
Where can configure the interpretation of multiple values for an “options” field to be interpreted as “AND” vs “OR’ operation?
<table name="Heading" columns="3" maxoccurs="unbounded">
<subheading>
<heading>subheading One</heading>
<heading>subheading Two</heading>
<heading>subheading Three</heading>
</subheading>
<field type="options">
<name>subheadingOne</name>
<values>
<value>value1</value>
<value>value2</value>
<value>value3</value>
</values>
</field>...
</table>
This is a known bug in 5.0.0 and it is being fixed in Governance Registry 5.2.0 simply using a the normal search bar.
Let's say users want to search subheadingOne which value1 they can simply run the following query,
heading_subheadingOne:value1
<table_name>_<filed_name>:<search_value>
You can only search by AND operator in GReg publisher and store. For that please find the below sample,
heading_subheadingOne:value2 heading_subheadingTwo:test
In here the space denotes the AND operation.
You can find more GReg 5.2.0 search keywords from here. If you want to see some sample queries please visit this post.
you can download a nightly build of GReg 5.2.0 beta from here.
Hope this helps.
Related
I ran into this issue recently - when I try to replace the Wix Product version number using NANT XMLPOKE task, it returns the following error message "No matching nodes found".
<xmlpoke file="..\Setup\abc.wxs" xpath="//Wix/Product[#Version]" value="${version.label}" >
Initially I thought that this was an issue with XPATH statement that I wrote. So I kept trying with different XPATH (like \Wix) and I kept getting the same message back.
Understood from a blog that this is happening due to the namespace definition with the WiX element. Please find below the solution, in case someone doesn't find the blog.
The issue happens because of the namespace definition within the Wix element. You have to add the below changes to get the XMLPOKE working:
<xmlpoke file="..\Setup\abc.wxs" xpath="//wx:Wix/wx:Product/#Version" value="${version.label}" >
<namespaces>
<namespace prefix="wx" uri="http://schemas.microsoft.com/wix/2006/wi" />
</namespaces>
</xmlpoke>
Reference: Soledad Pano's blog
We've got a Sitecore site where several items have broken links to an old workflow state that is no longer with us. I know that you can remove links when you delete an item, but I'm not seeing an interface to simple remove a broken link on an item, when the missing item is already gone.
What's the best way to remove broken links in this case? Thanks.
There is Sitecore admin page that allows removing broken links. You can find it here:
http://localhost/sitecore/admin/RemoveBrokenLinks.aspx
You just select the database and execute the action. You can also serialize all items changed during this process.
You may need to change timeout settings in web.config:
<setting name="DefaultSQLTimeout" value="10:00:00" />
<setting name="DataProviderTimeout" value="00:00:00" />
Sitecore maintains a table named Links in the database specified in the LinkDatabase section of web.config. You can get all broken links in following way:
Sitecore.Data.Database db = Sitecore.Context.Database;
Sitecore.Links.LinkDatabase linkDb = Sitecore.Globals.LinkDatabase;
Sitecore.Links.ItemLink[] brokenLinks = linkDb.GetBrokenLinks(db);
I've written a CMS which sends products to Amazon from within an accounting package but I'm struggling to find the correct ProductData information for each Amazon category. Does anyone know of any resources to get these?
Here's what I mean, its the "Tools" level I require as the ProductType can be found from the tree guides. They don't seem to always correspond with the category name.
<ProductData>
<Tools>
<ProductType>
<Hardware></Hardware>
</ProductType>
</Tools>
</ProductData>
Thanks in advance
Well one thing for sure is you can look here https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/XML_Documentation_Intl.pdf to find the links to the xsd files. Like this one : https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/Health.xsd
You can try to parse those files, you can also generate the model classes based on the definitions in the xsd.
I need to create a Infopath form that users can use to create posts and update a Sharepoint list.
I have located the list GUID and the Lists.asmx webbservice. I have made sure that I am admin with full rights on the List in question. The list is a basic 2 column (1 line of text).
I have created the CAML template:
<?xml version="1.0" encoding="UTF-8"?>
<Batch OnError="Continue">
<Method ID="1" Cmd="New">
<Field Name="Field1"></Field>
<Field Name="Field2"></Field>
</Method>
</Batch>
Two data connections using the CAML:
XML-file - loading the CAML.
Send data using Lists.asmx-service - "UpdateListItems"-method.
The parameters for the UpdateListItems : tns:listName connected to a variable containing the GUID. tns:updates connected to /Batch in loaded CAML, XML-subtree included.
I have added a Repeating Table using the XMLfile-connection (CAML) where I can fill the column values for the new Listitem.
I have added a button that triggers action rules that use the dataconnection and "UpdateListItems"-method. The button also is tested trigger other rule actions, so the button itself works.
As I try post a new item to the sharepoint-list I receive no error message, everything seems to work fine, but no items is created.
If I change anything, like the GUID or other things, I recieve different error messages, so it appears as Infopath thinks everything works fine, but Sharepoint isn't doing anything with my list. No items is created.
Anyone has any idea of what could it be that goes wrong?
Edit: I have used other webservices from the same Sharepoint-server without any problems.
This suggestion may be a bit dated, but...
I just had a similar problem. By using ULSViewer on the SharePoint server and reading the MSDN documentation I figured out that the Name attribute in the CAML Field tag should be the internal name Sharepoint assigns to your list column when you create it. In my case I had to change the CAML from:
<Field Name="pub1">
to
<Field Name="_x0066_ub1">
I had the same problem - you have to point the Web service submit to site /_vti_bin/lists.asmx not to server /_vti_bin/lists.asmx. For example your site is on address server/site, you should use server/site/_vti_bin/lists.asmx, not server/_vti_bin/lists.asmx. My problem was with some subsites, so you could check it if it's the same to you.
When creating new items using UpdateListItem, you need to include a Field tag for the list's ID column. It should be formatted as such:
<Field Name='ID'>New</Field>
Is Title still a required column in your list (it is by default). If so, try adding that to your XML:
<Field Name='Title'></Field>
and I dont think that
<Field Name='ID'></Field>
is required when doing a NEW command (inserting a new list item), but it is required for an UPDATE command (updating an existing list item) - I certainly didnt need it when I tested this.
I'm trying to follow along the haystack tutorial. I run into an error when I run manage.py rebuild index
I get the following error:
WARNING: This will irreparably remove EVERYTHING from your search index.
Your choices after this are to restore from backups or rebuild via the `rebuild_index` command.
Are you sure you wish to continue? [y/N] y
Removing all documents from your index because you said so.
All documents removed.
/Users/heri0n/python_env/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2013-04-07 16:14:15.481145) while time zone support is active.
RuntimeWarning)
Indexing 1 notes.
Failed to add documents to Solr: [Reason: None]
<response><lst name="responseHeader"><int name="status">400</int><int name="QTime">6</int></lst><lst name="error"><str name="msg">ERROR: [doc=haystacktester.note.3] unknown field 'django_id'</str><int name="code">400</int></lst></response>
I did run manage.py build_solr_schema > ~/solr-4.2.1/example/solr/conf/schema.xml
I had to create the conf directory manually as it did not exist. I noticed the tutorial uses Solr 3 while I'm on 4. Did the location of the conf dir change perhaps?
The problem is with the Solr (haystack document use v3.5.0, here you may be using the latest) not finding the configuration file. These 3 steps worked for me
Place the schema in solr-x.y.z/example/solr/collection1/conf/schema.xml
In the schema change stopwords_en.txt to lang/stopwords_en.txt
Add the version field (as mentioned below) to the schema in the fields section
<field name="_version_" type="long" indexed="true" stored="true" multiValued="false"/>
For more information check out the same discussion in GitHub
This is more of a comment, but due to my lack of points I am unable to comment...
Has anyone figure out a soltuion to this? I'm having the exact same problem. The field is being created in schema.xml as such:
<field name="django_id" type="string" indexed="true" stored="true" multiValued="false"/>
I have restarted Solr (multiple times), and I am 100% positive my schema.xml code is correct. What the heck is going on here?
EDIT: I switched to Elasticsearch and have no problems. However, I'm sure others out there would find help to this question useful.
I had to clone the haystack source code and do some hacks as follows :
In the /haystack/management/commands/build_solr_schema.py , I commented DJANGO_ID in the build_context() func.
Then in /haystack/templates/search_configuration/solr.xml , I replaced {{ DJANGO_ID }} with "django_id" and everything worked ok.
I think the {{DJANGO_ID}} is not being replaced with "django_id" when you generate schema.xml.