Alexander Bautz

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 4,522 total)
  • Author
    Posts
  • in reply to: Export Settings From DFFS V4.4.1 #37518
    Alexander Bautz
    Keymaster

    Hi,
    v4.4.1 is from 2016 so you won’t have the latest version features.

    You might be able to upgrade to the lates version, but I cannot guarantee that this will work when you upgrade from a 8 year old version.

    To do a proper upgrade, you must delete the DFFS folder in your SPJS document library and upload the new version of DFFS.

    This will not affect your configurations as these are stored in a separate list.

    When you have uploaded the new DFFS version and configured the DFFS installer you must uninstall and reinstall DFFS in the forms for your list.

    If this works you are good to go, if not you must downgrade the DFFS version and try to do a step by step upgrade a few versions at the time (you must open the config and save it in each version to ensure you apply the features from this version) – not sure how this will work out as you have such an old version…

    Let me know if you have any questions.

    Best regards,
    Alexander

    in reply to: Modify Default Error Message – Duplicates #37513
    Alexander Bautz
    Keymaster

    The only way to do this if you don’t want to use the built in method is to have a query that runs pre-save to check for duplicate values. This is pretty straight forward if the list does have to many items. If you exceed a few thousands items, the query would slow down the save process because it has to wait for the query to return.

    Basically you can use something like this in your custom js:

    function dffs_PreSaveAction(){
        var res = spjs.utility.queryItems({
            "listName": _spPageContextInfo.pageListId,
            "query": ""+getFieldValue("Title")+""
        });
        if(res.count > 0){
            spjs.dffs.alert({
                "title": "Duplicate value",
                "msg": "An item with this title already exist, please change the value and try again.",
                "ok": function(){
                    // Close dialog
                }
            });
            return false;
        }
        return true;
    }
    

    Alexander

    in reply to: Date Validation #37512
    Alexander Bautz
    Keymaster

    I’m glad you figured it out.

    Alexander

    in reply to: Modify Default Error Message – Duplicates #37508
    Alexander Bautz
    Keymaster

    Sorry, but I don’t have any method of overriding this message as it is a built in message in the out-of-the-box sharepoint.

    Alexander

    in reply to: Rending a Cascading dropdown as search #37496
    Alexander Bautz
    Keymaster

    Hi,
    Can you show me the rest of the configuration under the “Render field as autocomplete search box” – are you sure you have the same setup in NewForm as you have in EditForm?

    Alexander

    in reply to: vLookup Document upload form #37490
    Alexander Bautz
    Keymaster

    It might be a similar issue related to using an underscore – try changing the name of the _vLookupParentID field to not start with an underscore (you must delete it and recreate it without the underscore) and see if that helps.

    Alexander

    in reply to: vLookup Document upload form #37487
    Alexander Bautz
    Keymaster

    No problem – I forgot a little quirk when using a field that starts with an underscore in a rest filter – you must prefix the field name with OData_ like this:

    OData__vLookupParentID eq '[[fieldValue:_vLookupID]]'
    

    Alexander

    in reply to: vLookup Document upload form #37483
    Alexander Bautz
    Keymaster

    The filter value must be in single quotes like this:

    _vLookupParentID eq '[[fieldValue:_vLookupID]]'
    

    Alexander

    in reply to: vLookup Document upload form #37468
    Alexander Bautz
    Keymaster

    I’m glad it worked – I just tested and could not reproduce it…

    Regarding the ID, you can still use _vLookupID and _vLookupParentID if you like – if you add the _vLookupID column to your list, it will auto-populate like it did before.

    You can also use a column named “_DFFSID” – add it to your list and use the automatically generated ID to transfer to a field you can call _DFFS_ParentID (or whatever you like) and use the same logic as for _vLookupID and _vLookupParentID.

    I just realized that I had not documented this in the user manual – I’ll add it.

    Alexander

    in reply to: vLookup Document upload form #37464
    Alexander Bautz
    Keymaster

    Hi,
    I added this new functionality in the new version – can you test it and let me know how it works?

    Alexander

    in reply to: Bug found in 1.0.46 #37463
    Alexander Bautz
    Keymaster

    This should be fixed in the new version – can you test it and let me know how it works?

    Alexander

    in reply to: Form Loading problems in Modern DFFS #37459
    Alexander Bautz
    Keymaster

    I have released the new version – check it out and let me know if you still have problems.

    Alexander

    Alexander Bautz
    Keymaster

    Yes

    Alexander Bautz
    Keymaster

    Did you use the dffs_fieldChanged function from the Custom JS example thread?

    You should be able to do it something like this:

    function dffs_fieldChanged(fin, new_value, previous_value) {
        switch (fin) {
            case "fieldA":
                setFieldValue("fieldB", new_value.substring(0, 10)); // 10 first characters of fieldA is written to fieldB
                break;
            case "fieldC":
                setFieldValue("fieldD", new_value.substring(0, 10)); // 10 first characters of fieldA is written to fieldB
                break;
        }
    }
    

    Alexander

    in reply to: Bug found in 1.0.46 #37448
    Alexander Bautz
    Keymaster

    Hi,
    I’ll have to test this and see if I can replicate it. Can you email me screenshots of the setup and the error so I can set up a similar test?

    Alexander

Viewing 15 posts - 1 through 15 (of 4,522 total)