# Screen Helper- pass all field attributes

**URL:** <https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [May 4, 2011, 10:28pm UTC](https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981 "2011-05-04T22:28:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErikL](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@ErikL](https://techcommunity.softwareag.com/u/ErikL)\
**Post date:** [May 4, 2011, 10:28pm UTC](https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981/1 "2011-05-04T22:28:09Z")

</div>

Hello,

I’m looking for a way to easily map all of the screen output fields’ attributes to the procedure output.

Currently the only way I can think of is to create an attribute object for every field in the output and use an expression to map it. That means for every output field I’ll have the field data output plus its attribute output. I’ll have an expression for every field as well. So that’s a lot of manual mapping for our application which is nearly 200 screens.

Is there an easier way to do it, now or in the near future?

Thanks.

---

<div class="post-metadata">

**Author:** ![Ohad\_M](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Ohad\_M](https://techcommunity.softwareag.com/u/Ohad_M)\
**Post date:** [May 5, 2011, 12:36pm UTC](https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981/2 "2011-05-05T12:36:28Z")

</div>

Hi Erik,

Can you elaborate on what it is exactly you want accomplish with this procedure?  
A better understanding of the bigger picture will help us give you a better solution , if possible.

Regards,  
Ohad

---

<div class="post-metadata">

**Author:** ![ErikL](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@ErikL](https://techcommunity.softwareag.com/u/ErikL)\
**Post date:** [May 5, 2011, 11:52pm UTC](https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981/3 "2011-05-05T23:52:07Z")

</div>

I would like my procedure to output the screen attributes for every field- background color, foreground color, is protected, etc. I would like to do this as easily as it is now to map screen field to procedure output- right click and select map to procedure output.

As it is now, I need to make a field attributes expression for each field and make a corresponding procedure output, then I can map it.

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [May 6, 2011, 8:57pm UTC](https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981/4 "2011-05-06T20:57:48Z")

</div>

are you using the ApplinX Base Object? If so, you can just use the checkbox in the mapper “send to base object” ("When the Path procedure is executed using the ApplinX Base Object, the entire screen can be added to the path response using the Send to Base Object checkbox. " [http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8-2\_ga/ApplinX/8-2-SP1\_ApplinX/refguide/procedures.htm#d0e6009](http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8-2_ga/ApplinX/8-2-SP1_ApplinX/refguide/procedures.htm#d0e6009))

---

<div class="post-metadata">

**Author:** ![ErikL](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@ErikL](https://techcommunity.softwareag.com/u/ErikL)\
**Post date:** [May 7, 2011, 2:21am UTC](https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981/5 "2011-05-07T02:21:52Z")

</div>

I’m not using the base object to execute the procedure. It’s a web service call to a procedure group.

---

<div class="post-metadata">

**Author:** ![Ohad\_M](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Ohad\_M](https://techcommunity.softwareag.com/u/Ohad_M)\
**Post date:** [May 11, 2011, 6:20pm UTC](https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981/6 "2011-05-11T18:20:02Z")

</div>

Currently, the easiest way to achieve what you want is:

1. From the Field attribute expression. Highlight all the attributes, right click and select “New Data Structure”. (see newDS.jpg)

2. Create an output variable fro each desired field. The variable should be a structure of the type you created earlier.(see outputVar.jpg)

3. Drag the each field’s attributes expression on to it corresponding variable.(see dragging.jpg)

4. All the attributes will be automatically mapped.

While this will not help you avoid creating an output variable and mapping each field. It will help you avoid having to map each attribute of each field.

I hope this helps,  
Ohad

 ![dragging.jpg](https://global.discourse-cdn.com/techcommunity/original/2X/4/45d7f97bb7434729c72ddec6e57382780d641a8b.jpeg)  
 ![outputVar.jpg](https://global.discourse-cdn.com/techcommunity/original/2X/e/e1d22572ee3a9b40acd3a684d8fa94f1e9051a35.jpeg)  
 ![newDS.jpg](https://global.discourse-cdn.com/techcommunity/original/2X/3/31212b7df466ba896ed2a8d2376566faecee394b.jpeg)

---

<div class="post-metadata">

**Author:** ![ErikL](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@ErikL](https://techcommunity.softwareag.com/u/ErikL)\
**Post date:** [May 12, 2011, 1:02am UTC](https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981/7 "2011-05-12T01:02:07Z")

</div>

Thanks. The steps you outlined are as I expected I need to do.

But I do notice that the field attributes expression also includes the field content. If that is the same content as a normal screen field mapping then perhaps I can just change the current outputs to the fieldAttribute structure and then map from the expression.

---

<div class="post-metadata">

**Author:** ![Ohad\_M](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Ohad\_M](https://techcommunity.softwareag.com/u/Ohad_M)\
**Post date:** [May 12, 2011, 1:24pm UTC](https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981/8 "2011-05-12T13:24:21Z")

</div>

That’s a good idea.  
The Content attribute does indeed has the same value you get when you map a field using a regular screen mapper.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:00pm UTC](https://techcommunity.softwareag.com/t/screen-helper-pass-all-field-attributes/96981/9 "2021-04-02T15:00:11Z")

</div>


