CA Service Management

 View Only

dtlLookup to choose request of any type (I,R,P) 

Jul 31, 2015 06:33 PM

I have spent some time to make it work, so I decided to share it with community.:

 

 

<PDM_MACRO NAME=dtlLookup hdr="Request" attr="request" factory=cr extraurl="KEEP.forChangeCrList=1+KEEP.ALWAYS_LIST_CR=1">

Statistics
0 Favorited
5 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Aug 03, 2015 12:45 PM

Thanks for sharing this Gutis.

Aug 03, 2015 02:21 AM

haven't before,

but now I have tried and it works fine.

steps I produced:

1. open form to edit;

2. open source code, add <input type=hidden name=SET.type value=x> between forms tag and save; (or publish normal dtlTextbox)

3. search by type='X';

 

but you should have factory with no type restriction or u'll get constarint like : (type = 'R' or type is NULL) AND (type = 'x')

Aug 02, 2015 05:07 PM

cdtj did you ever tried to create one more request type let say  type= 'X'?

Aug 01, 2015 03:50 AM

thanks for sharing!

 

fighting with request types consumes a lot of time,

but I think there is more flexible solution,

you can publish new factory with no type restriction, like:

OBJECT cr {

    FACTORY req {

    DOMSET template_list "template_name" "" DYNAMIC ;

        STANDARD_LISTS {

                SORT_BY "open_date DESC, id DESC, status=status.sym, priority=priority.sym DESC, ref_num" ;

                MLIST OFF ;

                RLIST OFF ;

        };

 

        REL_ATTR persistent_id ;

        COMMON_NAME ref_num ;

        FUNCTION_GROUP "call_mgr" ;

    };

};

and forget about search conditions like (type IN ('R','I','P') OR type is NULL) to display all types in a one form.

plus you'll get correct form sorting.

 

regards,

cdtj

Related Entries and Links

No Related Resource entered.