0 votes

Hi,

I have a custom entity 'Missions', this entity use the PRODUCTS table too
FAMILY = 1 ==> Missions
FAMILY <> 1 ==> Products

My problem : When I want to add / delete a relation between a Mission and an other entity I have this error:
enter image description here

It works if I customize CreateRelation(), EditRelation(), DeleteLink() in Custom.js to replace 'Miss' by 'Prod' like this :

function DeleteLink(Bookmark, Entity, Key, Detail, DetailKey, ItemName, NoConfirm) {
    if (! NoConfirm) {
        var Msg = sRelDelConfirm
        if (ItemName) Msg = sRelDelConfirmName + ItemName + "' ?"
        if (! confirm(Msg)) return
    }

    if(Entity=='Miss') Entity='Prod' // FORCE MISSIONS TO PRODUCTS
    var URL = "deletelink?bookmark=" + Bookmark + "&entity=" + Entity + "&key=" + Key + "&detail=" + Detail + "&detailkey=" + DetailKey
    LocationSet(window, URL, true)
}

How to indicate to Efficy which EntityView use ?

Systems table for Missions :
SYS_ENTITIES
enter image description here
SYS_ENTITYVIEWS
enter image description here

asked in Efficy/ Client side by (259 points)

Please log in or register to answer this question.

1,249 questions
1,518 answers
1,858 comments
328 users