Programatically setting KM property Document Validity Pattern, no method

I am trying to programatically set the attribute Document Validity Patterns of a KM property.  I am not able to find a method that achieves this.  I can read the Document Validity Pattern, but not set it.
Can someone help?  My code is shown below:
IPropertyConfigurationService propConfigService =
                    (IPropertyConfigurationService) ResourceFactory
                         .getInstance()
                         .getServiceFactory()
                         .getService("PropertyConfigurationService");
               IMetaModel metaModel = propConfigService.getMetaModel();
               IMetaNameListIterator iterator = metaModel.nameIterator();
               while (iterator.hasNext()) {
                    IMetaName metaName = iterator.next();
                    String name = metaName.getName();
                    String namespace = metaName.getNamespace();
                    if (namespace.equals(filter)) {
                         String[] documentValidityPatterns =
                              metaName.getDocumentPatterns();
                         //!!what, no method to set document validity pattern??!!               

InDesign CS4 (6.0) Object Model says:
 The pattern of dashes and gaps, in the format [dash length1, gap length1, dash length2, gap length2]. Define up to ten values.
That was it. I guess this is a place where the visual interface diverges from the javascript interface. I was expecting "Start" "Length" as in the dialog. Thanks!

Similar Messages

  • How set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when SD billing.

    How can automatic set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when I do a SD billing.(VF01 credit memo)
    How can automatic set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when I do a MM billing.(Miro  credit memo)
    How can automatic set the FI Document's Invoice ref.(BSEG-REBZG) to 'V' when I do a FI billing.(FB65,FB75)
    Thank you very much.

    Hi,
    This has something to do with the payment terms of the invoice. When credit memos are created with reference to an invoice, there is a pattern of behaviour on how the field is updated. Similarly when the same is created without reference, the behaviour of this field is dfiferent.
    Look at the note 17410, it explains when is the field updated with V.
    As per this, when a credit memo is created with reference to an invoice, the invoice number is updated in this field and the payment term of the invoice will become the payment term of the credit memo also
    When CM. is created without invoice reference, it is updated with teh value V along with the payment terms in BSEG. In this case the credit memo is always due on the baseline date.

  • Problems with date validation pattern DD.MM.YYYY in Form Builder

    (I am using LiveCycle Designer 8.0.)
    My form uses an input date field which consistst of DD.MM.YYYY.
    Display pattern, edit pattern, validation pattern and date pattern has been set to DD.MM.YYYY.
    "Validation Pattern Message"-box has been set to checked.
    "Validation Script Message"-box is not checked.
    1. When I type:      313101
    the system converts the digits to the date 01.01.3131
    2. When I type:      3131
    the system converts the digits to the date 01.01.3131
    3. When I type:       31   
    I get an error message "Date is not valid."
    I need a form to throw an error message if the user doesn`t type the correct input
    DD.MM.YYYY.  (01.03.2009)
    Thanks in advance.
    Tor

    Does anyone have any input on this matter?
    Thanks in advance.
    Regards,
    Tor

  • Windows installer sets VersionNT property to 603

    Hello,
    OS: Windows 10 Technical Preview
    I've got msi package, which has LaunchConditions based on VersionNT(64) property, but installer sets this property to 603 (corresponding to Win8.1\2012r2). I wrote custom action, where I call VerifyVersionInfo function, and on 9879 build it worked,
    but starting from 9926 It doesn't. It seems that VerifyVersionInfo now requires proper GUID in manifest file, that is not possible for binary custom action. What is the proper way to detect Windows 10 version in msi package?
    I tried to ask this question at Windows Insider Program, but i was suggested to ask it here.
    Thank you.

    Hello,
    OS: Windows 10 Technical Preview
    I've got msi package, which has LaunchConditions based on VersionNT(64) property, but installer sets this property to 603 (corresponding to Win8.1\2012r2). I wrote custom action, where I call VerifyVersionInfo function, and on 9879 build it worked, but starting
    from 9926 It doesn't. It seems that VerifyVersionInfo now requires proper GUID in manifest file, that is not possible for binary custom action. What is the proper way to detect Windows 10 version in msi package?
    I tried to ask this question at Windows Insider Program, but i was suggested to ask it here.
    Thank you.
    Hello,
    1. Windows 10 has not been official released that there is not a solid version for us to detect, and currently issues related to windows 10 are not supported, you could consider submitting this feedback with the
    Give us feedback part shared in the following document.
    http://windows.microsoft.com/en-us/windows/preview-updates-feedback-pc
    2. It's not clear which publishment you are using, if possible, you could share the detailed information like the tool to publish your project and the configuration in that feedback.
    Thanks for your understanding.
    Regards,
    Carl
    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.

  • Validation Pattern Message

    I want to script a Validation Error Message for a field that, on initialize, is in read-only mode. In Designer, when Type = "Read Only" the Validation Pattern and Validation Pattern Message are disabled. I can add script to define the pattern:
    Myfield.validate.picture = "text{99999-9999}|text{99999}";
    and trigger the validation:
    Myfield.validate.formatTest = "error";
    but how can I script the error message that the user sees? Doing the above generates a generic message "Myfield validation failed" but I would like the user to see a more description message, for example "Please enter a 5 digit or 5+4 digit zip code in the format 12345 or 12345-6789".
    It seems silly that I add this field property at design time for a field that is NOT read-only, but not for one that toggles on/off from read-only to enabled. Any suggestions?

    Hi
    You can use the following:
    tfPostalCode.validate.picture.value = "9999";
    tfPostalCode.validate.message.formatTest.value = "An Australian Post Code must be a four digit number!";
    Howard

  • Capture/apply stopped by setting maximum_scn property, how back it infinite

    For Maintenance reason, if we stopped the capture and apply process by setting maximum_scn property. How can we set it back to infinite when re-start the capture/apply process?
    Thanks
    john

    "infinite" is a valid value for maximum_scn parameter.

  • Setting Hidden property for a Resource Object

    Hi,
    I am trying to set the hidden property for a folder by this code.
    // ICollection coll defined
    IPropertyName propName = new PropertyName("http://sapportals.com/xmlns/cm", "hidden");
    IProperty prop = coll.getProperty(propName);
    IMutableProperty mutProp = prop.getMutable();
    mutProp.setBooleanValue(true);
    coll.setProperty(prop);
    This is not working, any idea what would have gone wrong ?
    Thanks,
    Sam

    Hi,
    I am not getting any excpetion...
    i have log messages before setting the propert and after setting the property...
    so if i am trying to set from false to true......it is not getting set to true but remaining as false....
    i am trying this with /documents repository.
    Can any body give some sample snippet for setting the hidden property / is there anything else i need to do to complete the setting.
    Regards,
    Satish

  • How can I set a property when an event happens? (selection changed on datagrid)

    I have a datagrid, I would like to change the backgrund of the datagrid when the selection changed event is fired.
    I can not use data trigger, because is in the case that I expected a value, but in this case is when change, to any value.
    An option is to use an event trigger, but all the examples that I have found is to use with an actions, and I just want to set a property.
    How could I do that?
    I am using MVVM pattern, so I would like to avoid the use in code-behind.
    Thank so much.

    You could use an event trigger and implement your own TriggerAction<T> that sets the background property. There is an example of how to create a custom TriggerAction available here:
    http://stackoverflow.com/questions/942548/setting-a-property-with-an-eventtrigger.
    The following example sets the Background property of the DataGrid to a red SolidColorBrush when the SelectionChanged event is fired. It should give you the idea:
    <DataGrid x:Name="dgrid"
    xmlns:local="clr-namespace:WpfApplication22">
    <i:Interaction.Triggers>
    <i:EventTrigger EventName="SelectionChanged">
    <local:SetPropertyAction PropertyName="Background" TargetObject="{Binding ElementName=dgrid}">
    <local:SetPropertyAction.PropertyValue>
    <SolidColorBrush>Red</SolidColorBrush>
    </local:SetPropertyAction.PropertyValue>
    </local:SetPropertyAction>
    </i:EventTrigger>
    </i:Interaction.Triggers>
    <DataGrid.Columns>
    namespace WpfApplication22
    public class SetPropertyAction : TriggerAction<FrameworkElement>
    public string PropertyName
    get { return (string)GetValue(PropertyNameProperty); }
    set { SetValue(PropertyNameProperty, value); }
    public static readonly DependencyProperty PropertyNameProperty
    = DependencyProperty.Register("PropertyName", typeof(string),
    typeof(SetPropertyAction));
    public object PropertyValue
    get { return GetValue(PropertyValueProperty); }
    set { SetValue(PropertyValueProperty, value); }
    public static readonly DependencyProperty PropertyValueProperty
    = DependencyProperty.Register("PropertyValue", typeof(object),
    typeof(SetPropertyAction));
    public object TargetObject
    get { return GetValue(TargetObjectProperty); }
    set { SetValue(TargetObjectProperty, value); }
    public static readonly DependencyProperty TargetObjectProperty
    = DependencyProperty.Register("TargetObject", typeof(object),
    typeof(SetPropertyAction));
    protected override void Invoke(object parameter)
    object target = TargetObject ?? AssociatedObject;
    PropertyInfo propertyInfo = target.GetType().GetProperty(
    PropertyName,
    BindingFlags.Instance|BindingFlags.Public
    |BindingFlags.NonPublic|BindingFlags.InvokeMethod);
    propertyInfo.SetValue(target, PropertyValue);
    For more information about how to hook up event triggers and handle events in MVVM, please refer to my blog post:
    http://blog.magnusmontin.net/2013/06/30/handling-events-in-an-mvvm-wpf-application/
    Please also remember to mark helpful posts as answer.

  • Setting a property of a Media-instance crashes the browser

    Hello,
    I want to change some properties of a javaFx-Script via javascript.
    All works, but when I want to set the Property "source" concatenating with "{FX.getProperty("javafx.application.codebase")}", the JVM crashes:
    This is the relevant snippet from my xhtml-page:
    <script type="text/javascript">
    function setSource(source) {
        var app = document.getElementById("myJFXApplet");
        app.script.source = source;
    </script>
    This is my JavaFX-Main.class, where the Stage-Instance exists:
    var codebase:String = "{FX.getProperty("javafx.application.codebase")}";
    var source:String = ""
    // This results the JVM-Crash: I only want that the source is concatenating with the codebase
    var source2:String = bind "{codebase}{source}"

    The reason it fails the first time is because there is no text in the string indicator to act upon. On the second and subsequent executions, if the text is left in the indicator, the property change will take effect. To test this, clear the indicator between each run, you will see that it does not set the colors as you desire.
    So, put the text into the indicator first, then change the properties. Attached is a modification of your vi.
    Tim
    Attachments:
    Setting_Substring_Colors_MOD.vi ‏35 KB

  • How to validate a email address using Validation Pattern?

    Hi,
    is there any document for Validation Pattern? i m looking for a way to validate email addresses in my form.
    it's going to be something like * @ .
    i have no idea of how to do this, or maybe validation pattern is no good? use java script instead?
    any advice is appreciated!
    thanks.

    Hi erv2,
    You just need to place this script in the "exit" event of the field that u r using for email address.
    var r = new RegExp(); // Create a new Regular Expression Object.
        r.compile("^[a-z0-9_\\-\\.]+\\@[a-z0-9_\\-\\.]+\\.[a-z]{2,3}$","i");
    if( this.rawValue == null || this.rawValue == "")
    else
    var result = r.test(this.rawValue);                                              
    if (result == true) // If it fits the general form,
         true;               
    else
          xfa.host.messageBox("Please enter a valid email address ");
          this.rawValue = "";
          false;               // fail the validation.
    Thanks
    Amita
    Edited by: amita arora on Jan 20, 2009 10:44 AM

  • Set the orgin document on a Journal Entry

    I don't see this exposed in the DI has anyone been able to set the orgin document on a Journal Entry (baseref field)

    ...when you go to the database documentation in SDK Help Center you will find all "valid values" - if any - for the fields.
    For BaseRef you should IMHO only find other "Marketing Documents" listed - and only the reference to the last referenced (remember that e.g. you can have multiple Delivery Notes for a single Sales Order).
    I never heard that Journal Entries could be actively linked to "Marketing Documents" - it works just "vice versa":
    When you post an A/R Invoice this will automatically generate a Journal Entry and link it to the Invoice - but via the field JrnlMemo - not BaseRef!
    However, you could add a UDF to fill in such information if you need it.
    HTH,
    Frank

  • Is their a way to set system property in weblogic console

    Hi WL USERS
    Is their a way to set system property in weblogic console ie (http://localhost:8080/console) ? if yes, can we access that property in code using System.getProperty()?
    Regards
    vishy

    Yes, It is Possible.
    Please check the Option-1). Mention in the Following Link: http://weblogic-wonders.com/weblogic/2010/03/26/nodemanager-based-managedservers-setting-mem_args/
    Here i tried to set a Custom Property "*-Duser.dir=E:/MyDirectory*" through the Admin Console.
    NOTE: Setting any Option like JAVA_OPTIONS/CLASSPATh etc through Admin Console will work only when you start your Servers using the NodeManager. It means when you start your ManagedServers through AdminConsole...or Using nodeManager based WLST scripts.
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic/ (WebLogic Wonders Are Here)

  • How do you change the default setting for RTF documents from TextEdit to MS Word

    How do you change the default setting for RTF documents from TextEdit to MS Word, I download forms from the Canadian government and they use RTF as a standard, they are supposed to open as MS Word documents (Yes I have Office for MAC 2011) but when download the document it goes to TextEdit which messes up the form format. I can down load it right click and go "open with" MS Word but how can I get the default chnaged to save this step.

    richr604 wrote:
    Thanks I knew this, I like Safari as I want to keep everything MAC, but if I use Firefox the documents open in MS Word straight away, I was just curious if there was some setting I could change?
    In Firefox > Preferences, click the Applications tab. If RTF is there, use the pulldown menu in the Action column to pick MS Word. If RTF is not there, there are instructions here for how to add file types.

  • Photosho CS Problem - Can't drag a layer set from one document to another one

    I have two documents open
    On the source document, i want to drag a layer set from this document to a new one, but its not letting me
    What would cause this.
    My structure for the source document is
    >Set 1 Layer Set
         >layer
         > Adjustment Layer
         >background
    Background
    Structure of the target document
    >Named Layer Set
         > Where I want to insert the Layer Set from source document
         >layer
         > Adjustment Layer
         >background
    Background

    No error message is given. I just can't drag it into the spot I want to drag the layer set to (its not an individual layer, its a layer set)
    Basically, this is all I can do (have to do a correction on how the layers and layer sets work, missing one level from the original post):
    I've attached images as well to illustrate
    On my target document, I want to have the layer set go where the red text is:
    >Content Layer Set
         >Named Layer Set
              > Where I want to insert the Layer Set from source document (Set 1)
              >layer
              > Adjustment Layer
              >background
    Background
    right now, I can only drag the layer set to this position:
    >Content Layer Set
          > This is where the Set 1 from the source document can go, I can't drag it into the layer set below
         >Named Layer Set
              >layer
              > Adjustment Layer
              >background
    Background
    First Image I attached shows the Set 1 Layer Set, above the layer set I want to drag it into
    Second Image I attached shows what happens when I try to drag the layer set into the named layer set; it comes up with the "no symbol"
    No Error message is given

  • How to reference vendor master data in Document Validation?

    Hi,
    We would like to display a warning message as follows during AP invoices posting if the following details have been defined in the vendor master data.
    a.        u201CAlternate payee has been definedu201D
    b.        u201CPermitted payee has been definedu201D
    c.        u201CPartner bank has been definedu201D
    May i know the best method to do this? If i use document validation, how can i reference these details sitting in the Vendor master data?

    Hi,
    You can use custom validation program (Z*) by copying standard validation (RGGBR000) program.
    Modify the validation program to check table vendor master data.
    After that, you need to assign this  custom validation program to GBLR application area in GCX2.
    Thanks

Maybe you are looking for

  • Font Book does not recognize some Postscript type 1 font files

    I am new to OS X and am trying to copy all of the fonts used under OS 9 (using Suitcase) to be available under OS X. I have copied all of my font folders into the correct location, but some of them do not appear in the font list within Font Book, and

  • All clips have to be rendered

    Everytime I log and capture a clip and try to play it in the sequence....it says the clips are unrendered....they haven't had effects applied or anything...where can I control render settings?

  • Key fields in variant tables.

    Hi masters, i would like to know the use of "key field" in variant tables. according to definition:This indicator shows whether a characteristic is used as a key field for accessing tables. Key fields have the value "X". When the table is accessed, t

  • What's the best monitor to pair with the iMac 21.5inch 2013?

    What's the best display for under £150 to pair with the the iMac 21.5 inch 2013? In terms of best match resolution dimensions etc?

  • Changing resolution of titles in CS5?

    Hello, I created 1080p titles for a 1080p video in CS5.  These are subtitles/captions at the bottom of the video in sync with the audio.  But now I want to reuse the titles with 720p footage.  But the titles no longer fit the video properly.  Is ther