Forum Discussion

FICO's avatar
FICO
Community Manager
15 years ago

custom SRL Entity Provider

custom SRL Entity Provider

Hi

I am tring to do a Custom SRL Entity Provider ,

that will show me several Types of Object and will not show me Some other types ,

I didn't found how to do that in the Help ,

or in any Example that there in the Documantation ,

If somebody can send me a sample or say to me where i can look for it ,

thanks

Yoav

3 Replies

  • FICO's avatar
    FICO
    Community Manager

    Try subclassing the existing SRL Entity Provider (probably called NdPromSrlEntityProviderProvider or something similar....). That will give you an initial list containing all SRL Entities. Then filter based on your own preferences.

    That's probably the quickest way to solve it.

    Regards,

    Jostein

  • FICO's avatar
    FICO
    Community Manager

    Thanks ,

    I did subclass for the NdPronSRLEntitiesProvider

    and added a argument to the display,

    in the example of the StateProvider there is GetDisplayValues function that in an regular Provider , i will fill the values to display there ,

    in the SRLEntities this function part of the class , do you know which function should i Override to filter the output??

    thanks

    yoav

  • FICO's avatar
    FICO
    Community Manager

    getAllowedInstantiationValues and getAllowedDisplayValues are the two methods from where the output is returned finally. You may need to override both.