Infopath throws error "only specific pattern allowed" when use regular expression for validation in schema
This is MS info path question, I could not find specific forum for Info-Path So asking my question here
I am creating Info-Path form from schema. In the schema, the filename has restriction that it can only have extension .pdf or .PDF. But while filling out the form even if I type filename with extension ".pdf", I still see error "only
specific pattern allowed".
Below is my schema I used to create form
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Document">
<xs:complexType>
<xs:sequence>
<xs:element name="FileName" type="FileNameType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:simpleType name ="FileNameType">
<xs:restriction base="xs:string">
<xs:pattern value="^.*\.(pdf|PDF)$"/>
<xs:minLength value="1" />
<xs:maxLength value="128" />
</xs:restriction>
</xs:simpleType>
</xs:schema>
Hi
This is the forum to discuss questions about Microsoft Office development. For your question, I recommend you post the question to the Answers forum for Infopath
Microsoft Community for InfoPath
By the way, you can get support from here. Support for Microsoft InfoPath
Thank you for your understanding.
Best Regards
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
We have a SharePoint 2007 document library setup with a custom template using MS Word. This template is a doc and/or a docx (we have used both and both have the pattern error). We are using the Document Information Panel in the document
when opening to be filled in. One of the fields - Test - is a multiple lines of text
field. When we use the Enter key a red dotted line appears. The message for the error appears below:
Only specific pattern allowed. Only data in the following pattern is allowed: ',*\S.*'
Does anyone know why this is? We need the ability to use the
Enter key. We have MS Word at 14.0.4 and it does not have an issue with using the
Enter key. Any later version of MS Word this issue occurs.
SharePoint Configuration database version: 12.0.0.6608
MS Office 2010 14.0.6029.1000
ChrisHi,
Did you installed some updates recently? Many users encounter this issue after installing KB2817537 or some updates released in Sept.
This issue occurs because the regular expression used to validate the property doesn't allow for line breaks.
Fortunately, DPKs attached to this bug have been successfully applied by the build lab.
We are working on this issue and it will be fixed in future update.
To work around this issue, please temporarily uninstall the
KB2817537. If that wouldn’t work, please also uninstall
KB2760758, KB276041 & KB2760411 and then test the issue again.
Thanks,
Steve Fan
TechNet Community Support
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Is there a way to turn the wireless capabilities off on an AirPort Express? I have an AirPort Extreme as my main router and use the express to just extend it. I only really want to you use the express for hard ethernet connections. For whatever reason when I have my express extend my wifi at home the download speed from just the express is absolutely terrible, drops to about 1.5 mb compared to when it's on the extremes part of the network the speed goes up to 50-75mb. These terrible download speed really only affects the iPhones as my MacBook Pro usually gets the good speed no matter where it is. I don't believe there is anything wrong with my phone because if I am in the part of the house that uses just the extreme the download speeds on the iphone goes up to 50-75mb. As a note I have an AirPort Extreme on the top floor of my house (second floor) that's where my modem is located. On the first floor that's where one airport express is located. I also have another airport express in the basement that is accessed by my landlord. Any thoughts on how to fix this would be helpful.
Is there a way to turn the wireless capabilities off on an AirPort Express? I have an AirPort Extreme as my main router and use the express to just extend it. I only really want to you use the express for hard ethernet connections.
It appears that your networking goals with the AirPort Express is to use it as a wireless Ethernet bridge instead of using it to extend the wireless range of your AirPort Extreme. The latter requires that the Express Wi-Fi radios be enabled.
If you intended to use the Express as a wireless bridge, you just need to reconfigure it to "Join a wireless" network instead of "Extend a wireless network."
For whatever reason when I have my express extend my wifi at home the download speed from just the express is absolutely terrible, drops to about 1.5 mb compared to when it's on the extremes part of the network the speed goes up to 50-75mb.
In an extended network, the placement of the extending base station is critical as it can only extend the wireless network at the bandwidth at which it receives it.
Please check out the following AirPort User Tip for details on optimal base station placement. -
Error in Acrobat 9.0 when using png prediction for flatedecode filter
Hi,
I am creating a PDF using png prdiction and Acrobat 9.0 shows the following error: "insufficient data for an image". The same PDF doesn't show error when using Acrobat 7.0 or any other application to view it. A typical code is as following:
"10 0 obj <</Length 7100038/Filter FlateDecode/DecodeParms<</BitsPerComponenet 8/Colors 4/columns 1103/Rows 1000/Predictor 15>>....etc."
Does anyone have idea what can be the problem & how can I solve it???
Thanks
Ilana KeydarAttached is another PDF which I have added png prediction to the flatedecode
filter of the images in order to get better compression. This file can't be
open at all using Acrobat 9.0, but can be viewed using other PDF tools.
I have also uploaded another PDF to the forum.
I hope you can help me
Ilana -
Hi, I am trying to set up an airport express hub to work with a Star tsp100 receipt printer and IPad 2. The IPad is being used to accept credit card payments and I was hoping to print receipts out wirelessly using the airport express and receipt printer. I checked to make sure the airport express has the latest firmware and it does. The IPad software is also updated to the latest 7.1. I then connected the Airport express and IPad and the network setup with no problems. I connected the receipt printer to the airport express using the USB slot available. While the printer comes up as available, when I attempt to print something, I get the error message "An error occurred printing this document" and I can cancel or Try again. No matter how many times I try, I continue to get this message and I lost as to the cause. When I disconnect and reconnect, another instance of the printer appears, but receive the same cryptic error message when I try to print. Totally lost, please help
Hi kelston3,
In order to print from an iPad you will need to use a printer that is compatible with AirPrint, which is described in the following article -
About AirPrint
http://support.apple.com/kb/HT4356
AirPrint printers must be wireless on your network - not connected via USB to the base station. There is a list of printers that are known to be compatible with AirPrint in the article.
Thanks for using Apple Support Communities.
Best,
Brett L -
Revision: 10891
Author: [email protected]
Date: 2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
Log Message:
Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
QE notes: None.
Doc notes: None
Bugs: SDK-22676
Tests run: checkintests
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-22676
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.javaHave you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?
-
Is array-referencing syntax allowable when using javascript?
Is the array-referencing syntax notation allowable when using javascript as the calculation language? My hierachy looks like the following:<br /><br /> . form1<br /> . Area[0]<br /> . numHeight<br /> . numWidth<br /> . numDepth<br /> . Area[1]<br /> . numHeight<br /> . numWidth<br /> . numDepth<br /> . <etc><br /><br />Without getting into too many details, my need is for fields in the "Area[2]" container to access fields in the "Area[0]" container. E.g. "this.rawValue = form1.Area[0].numHeight.rawValue;". With this syntax, I received the following report:<br /><br />Generating PDF Document...<br />Script failed (language is javascript; context is xfa[0].form[0].form1[0].Area[2].numHeight[0])<br />script=this.rawValue = form1.Area[0].numHeight.rawValue;<br /> Error: Invalid property get operation; subform doesn't have property '0'<br />PDF generated successfully.<br /><br />1 warnings/errors reported.
You can use resolveNode on basically anything, so yes you can access the record nodes within the xml data source. The function assist does not have anything when you do record but the nodes are created under record to match the nodes in your XML data source.
I am not sure of what you are trying to do with your example - if you want to return a list of nodes match some expression, then there is another version of resolveNode method which does just that called resolveNodes()
For example if you want to find all conditions_item nodes you would have:
xfa.resolveNodes("xfa.record.conditions.conditions_item[*]")
This returns a collection of Nodes and you can then use .length to see how many are returned. Make sure conditions is a child node of the root element. I am not sure, I think you do not specify the root node when accessing the record nodes. -
How do I get 2 decimal places when using a formula for a quotient? It only gives me whole integers. Most of the results will be less than 1 so I need 2 decimal places
the quotient function returns only whole number portion of the dividing two numbers. If you want the actual decimal value use the divide operator. you enter this as:
A/B
if the numerator is in A1 and the denominator is in B1 you can enter the formula like this:
=A1/B1 -
Error when using SAP authentication for Designer
my error is:
[repo_proxy 13] SessionFacade::openSessionLogon with user info has failed(The
secSAPR3 DLL could not be found or does not exist(hr=#0x80042a01)
can you help me?
regardshi,
pls refer the link
Error when using SAP authentication for Designer
try re-installing BOE and check
hope it helps,
sundar -
please help. my address bar has vanished. i have no idea how to retrieve it, so can only access bookmarked sites when using firefox.
Make sure that you do not run Firefox in Full Screen mode with all toolbars hidden.
* Press F11 to toggle full screen mode (Firefox/File > Full Screen)
If the menu bar is hidden then press the F10 key or hold down the Alt key, that should make the menu bar appear.
Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
* If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" (Linux, Windows)
* If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
* If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
See also:
* http://kb.mozillazine.org/Toolbar_customization -
When using rabbitmq-jms for vFabric RabbitMQ javax.jms.Message.getJMSDestination does not return the actual destination when it is received from a consumer listening on a Topic with a wild card. I have tested with both 1.0.3 and 1.0.5 clients with RabbitMQ 3.1.5.
I was wondering if the community was aware of this problem and if there are any workarounds? If not what is the proper channel to file a bug report. An example code snippet is below. The test fails because the TextMessageMatcher expects the destination passed in on construction (second parameter) to equal the desination on the message received (aquired from getJMSDestination).
Mockery context = new Mockery();
final MessageListener messageListener = context.mock(MessageListener.class);
final Latch latch = new LatchImpl();
final String prefix = "test" + System.currentTimeMillis();
context.checking(new Expectations() {
oneOf(messageListener).onMessage(with(new TextMessageMatcher("MSG1", prefix + ".1234")));
will(new CustomAction("release latch") {
@Override
public Object invoke(Invocation invocation) throws Throwable {
latch.unlatch();
return null;
final Connection connection = createConnection(null, null);
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
connection.start();
Topic wildcardTopic = (Topic) getInitialContext().lookup(prefix + "." + "#");
Topic destination = (Topic) getInitialContext().lookup(prefix + ".1234");
final MessageConsumer consumer = session.createConsumer(wildcardTopic);
consumer.setMessageListener(messageListener);
MessageProducer producer = session.createProducer(null);
producer.send(destination, session.createTextMessage("MSG1"));
latch.await(5000);
connection.close();
Thread.sleep(5);
context.assertIsSatisfied();Check where your MDB sends the [response] messages to.
-
securityagent name when using IBM TAM for SSO with Hyerion
Hi,
What should we declare in the css_config.xml file for the <securityagent>, when using IBM TAM for SSO with Hyperion.
The admin guide only mentions Netegrity, but that would be the case when we use Siteminder for SSO.
Any lights??
Thanks,
SasiWhile, seems one way is to use stream to bypass login.
-
Using Airport Express for External speakers and Apple TV. When I'm on MAC computer adn using internet sound from Internet does not go through external speakers. Instead it comes out of Mac computer speaker. Why?
As far as I know, the Airport Express only transmits sounds via Itunes. So every other sound (internet, but also incoming mail) will be coming out of your mac instead of your external speakers.
-
Pattern matching using Regular expression
Hi,
I am working on pattern matching using regular expression. I the table, I have 2 columns A and B
A has value 'A499BPAU4A32A386KBCZ4C13C41D20E'
B has value like '*CZ4*M11*7NQ+RDR+RSM-R9A-R9B'
the requirement is that I have to match the columns of B in A. If there is a value with * sign, this must be present in A like 'CZ4' should exit in string A.
The issue I am facing is that there are 2 values with * sign. The code works fine for first match (CZ4) but it does not look further as M11 does not exist in A.
I used the condition
AND instr(A,substr(REGEXP_SUBSTR(B, '*[^*]{3}'),2) ,1)=0
First of all, is this possible to match multiple patterns in one condition?
If yes, please suggest.
Thanksuser2544469 wrote:
Thanks a lot Frank. This query worked wonderful for the test data I have provided however I have some concerns:
- query doesnot include the column BOOK which is a mandatory check.Sorry, that was my mistake. It was a very easy mistake to make, since you posted sample data where it didn't matter. Instead of doing a cross-join between vn and got_must_have_cnt, do an inner join, using book. That means book will have to be in got_must_have_cnt, and all the sub-queries from which it descends. Look for comments that say "March 22".
If you want to treat '+' in test_cat.codes as '*', then the simplest thing is probably just to use REPLACE, so that when the table has '+', you use '*' instead.
WITH got_token_cnt AS
SELECT cat
, book -- Added March 22
, REPLACE (codes, '+', '*') AS codes -- If desired. Changed March 22
, LENGTH (codes) - LENGTH ( TRANSLATE ( codes
, 'x*+-'
, 'x'
) AS token_cnt
FROM test_cat
, cntr AS
SELECT LEVEL AS n
FROM ( SELECT MAX (token_cnt) AS max_token_cnt
FROM got_token_cnt
CONNECT BY LEVEL <= max_token_cnt
, got_tokens AS
SELECT t.cat
, t.book -- Added March 22
, REGEXP_SUBSTR ( t.codes
, '[*+-]'
, 1
, c.n
) AS token_type
, SUBSTR ( REGEXP_SUBSTR ( t.codes
, '[*+-][^*+-]*'
, 1
, c.n
, 2
) AS token
FROM got_token_cnt t
JOIN cntr c ON c.n <= t.token_cnt
, got_must_have_cnt AS
SELECT cat, book -- Changed March 22
, COUNT (CASE WHEN token_type = '*' THEN 1 END) AS must_have_cnt
FROM got_tokens
GROUP BY cat, book -- Changed March 22
SELECT mh.cat
, vn.vn_no
FROM got_must_have_cnt mh
JOIN vn ON mh.book = vn.book -- Changed March 22
LEFT OUTER JOIN got_tokens gt ON mh.cat = gt.cat
AND INSTR (vn.codes, gt.token) > 1
GROUP BY mh.cat
, mh.must_have_cnt
, vn.vn_no
HAVING COUNT (CASE WHEN gt.token_type = '*' THEN 1 END) = mh.must_have_cnt
AND COUNT (CASE WHEN gt.token_type = '-' THEN 1 END) = 0
ORDER BY mh.cat
- query is very slow with 60000 records in vn table. Cost is somewhere around 36000.See these threads:
When your query takes too long ...
HOW TO: Post a SQL statement tuning request - template posting
Relational databases were designed to have (at most) one piece of information in each column. If you decide to have multiple items in the same column (as you have a variable number of tokens in the codes column), don't be surprised if that makes things slower and more complicated. Most of the query I posted, and perhaps most of the time needed, is jsut to normalize the data. If you stored the data in a narmalized form, perhaps something like got_tokens, then you wouldn't need the first 3 sub-queries that I posted.
Edited by: Frank Kulash on Mar 22, 2011 12:04 PM -
Our iMac (intel, 11.2) freezes up when using Time Machine for Back Ups. We have 16GB of RAM and the BU drive is 1 TB on firewire.
See Pondini's TM FAQs for starters.
Maybe you are looking for
-
How do you unlock an icloud of someone that passed away?
So I recently broke my iPhone 5s due to an unfortunate accident... Since my family could not afford another, a close friend of mine gave me her old iPhone 4. When I scrolled through the settings to see if I could log into my own Apple account, I saw
-
This should be a simple problem. I want to use the flash loader component to load pictures. I drag the loader onto the stage. Type the pic name in the parameters and save them in the same folder but nothing comes up? I'm using flash 8. Do I have sett
-
Ias 60 sp2 - install - error message during start up of web server
I am installing ias60 sp2 on solaris 2.6. I have following issues: (1) While installing the ias 60 at the end of the installation while starting the web server I got the following error message. libthread panic: systhread_create():alloc_thread return
-
HT1386 HELP! DEVICE TAB IS NOT SHOWING UP
when i connect my iPhone to my macbook "devices" is not showing up. How do i fix this so i can sync my music
-
Hi all, How can i include MARC-MAABC field in the search help input (F4). to search a material in MM02 or MM03. Please explain in detail...Tcode OMSH. Thnaks.