Using custom attributes in the UWL

gm.duits@belastingdienst.nl gm.duits at belastingdienst.nl
Wed Jul 23 02:08:21 EDT 2008


                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
 Hello,                                                                     
                                                                            
 What i would like to do is to show some custom attributes as columns in    
 the UWL. In my workitem the BOR object BUS2089 (TRIP) is present, so i     
 thought to make use of the statement CustomAttributeSource id="ABAP_BOR"   
 in my UWL xml file (see below). I would like to show the attributes        
 BEGINDATE and TOTALCOSTS. After uploading the xml the columns are empty. I 
 also make use of the CustomAttributeSouce id="WEBFLOW_CONTAINER" and that  
 column is displayed correctly.                                             
                                                                            
 I will post a part of the UWL xml configuration.                           
 <ItemType name="uwl.task.webflow.decision.TS92200054" connector=           
 "WebFlowConnector" defaultView="travel" defaultAction="launchTravelUwl"    
 executionMode="default">                                                   
       <ItemTypeCriteria systemId="UWL_R3" externalType="TS92200054"        
 connector="WebFlowConnector"/>                                             
        <CustomAttributes>                                                  
         <CustomAttributeSource id="ABAP_BOR" objectIdHolder=               
 "externalObjectId" objectType="BUS2089" cacheValidity="final">             
           <Attribute name="BEGINDATE" type="date" displayName="Begindatum  
 reis"/>                                                                    
           <Attribute name="TOTALCOSTS" type="double" displayName="Gedecl.  
 bedrag"/>                                                                  
         </CustomAttributeSource>                                           
         <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder=      
 "externalId" objectType="WebflowContainer" cacheValidity="final">          
           <Attribute name="ReisschemaText" type="string" displayName=      
 "Reisschema"/>                                                             
         </CustomAttributeSource>                                           
       </CustomAttributes>                                                  
       <Actions>                                                            
         <Action name="afkeuren" groupAction="no" handler=                  
 "UserDecisionHandler">                                                     
           <Properties>                                                     
             <Property name="UserDecisionNote" value="mandatory"/>          
             <Property name="decisionKey" value="2"/>                       
           </Properties>                                                    
         </Action>                                                          
         <Action name="goedkeuren" groupAction="yes" handler=               
 "UserDecisionHandler">                                                     
           <Properties>                                                     
             <Property name="UserDecisionNote" value="true"/>               
                                                                            
             <Property name="decisionKey" value="1"/>                       
           </Properties>                                                    
         </Action>                                                          
       </Actions>                                                           
     </ItemType>                                                            
                                                                            
 The View xml part looks like:                                              
                                                                            
  <View name="travel" selectionMode="SINGLESELECT" width="98%"              
 supportedItemTypes="uwl.task.webflow.decision.TS92200054"                  
 columnOrder="subject, BEGINDATE, TOTALCOSTS, ReisschemaText, approveCol"   
 sortby="createdDate:descend" tableDesign="ALTERNATING"                     
 visibleRowCount="14" headerVisible="yes" queryRange="undefined"            
 tableNavigationFooterVisible="yes" tableNavigationType="STANDARD"          
 actionRef="" refresh="300" dueDateSevere="86400000"                        
 dueDateWarning="259200000" emphasizedItems="none"                          
 displayOnlyDefinedAttributes="no" dynamicCreationAllowed="no"              
 actionPosition="bottom" referenceBundle="tasks">                           
       <DisplayAttributes>                                                  
         <DisplayAttribute name="approveCol" type="checkbox" width="10"     
 sortable="no" format="default" actionRef="goedkeuren" hAlign="center"      
 vAlign="Baseline" maxTextWidth="0" headerVisible="yes">                    
           <Descriptions default="Goedkeuren"/>                             
         </DisplayAttribute>                                                
         <DisplayAttribute name="subject" type="string" width="10"          
 sortable="yes" format="default" referenceBundle="subject" hAlign="LEFT"    
 vAlign="BASELINE" maxTextWidth="20" headerVisible="yes"/>                  
         <DisplayAttribute name="BEGINDATE" type="date" format="short"/>    
         <DisplayAttribute name="TOTALCOSTS" type="double"/>                
         <DisplayAttribute name="ReisschemaText" type="string" width=""     
 maxTextWidth="20">                                                         
            <Descriptions default="Reisschema"/>                            
         </DisplayAttribute>                                                
       </DisplayAttributes>                                                 
       <Actions>                                                            
         <Action reference="refresh"/>                                      
         <Action reference="submitUserDecisions"/>                          
         <Action reference="launchMijnTaken"/>                              
         <Action reference="UserDecisionNoteText"/>                         
       </Actions>                                                           
     </View>                                                                
                                                                            
                                                                            
 I hope somebody can help me.                                               
                                                                            
 Kind regards,                                                              
                                                                            
 Maarten.                                                                   
                                                                            
                                                                            
                                                                            







------------------------------------------------------------------------------
De Belastingdienst gebruikt e-mail niet voor de uitwisseling van vertrouwelijke informatie met de burger of voor de bekendmaking van beslissingen. De Belastingdienst hanteert conventies voor het gebruik van e-mail. Deze zijn te vinden op www.belastingdienst.nl.
==============================================================================




More information about the SAP-WUG mailing list