Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Workspace IBM i
Created by Guest
Created on Feb 1, 2017

Program to System Field (P-Field) To Include Position Cursor

Instead of setting an indicator (00-99) to each field and having to set it separately and remember the indicator used with the limit from (00-99). The Program to System field indicator is very handy here.

But the P-Field indicator cannot change/set the position cursor indicator and programmers still have to use the older indicators.

It would be great to have that feature included.


Use Case:

Currently, to set a screen indicator to color "Protected" in certain cases, in the screen, an indicator should be attached to the field, Example:
Fld1
30 DSPATR(PR)
And in the program, on this indicator is set on or off based on the need.
If X
Eval *In30 = *On
Else
Eval *In30 = *Off
EndIf

Instead, the P-Field can be used to resolve this:
In the screen:
FLD1 3A B 2 2DSPATR(&PFLD1)

In the program (With some enhancement*)
FLD1 = PgmToSys.PR_GRN

By this, we can smartly replace all indicators with meaningfully named indicators for each of the screen fields that can be initialized and set dynamically.

But this cannot change the Position Cursor! So if the field is in error, we still have to set the position cursor through the old-fashion numeric indicators.


* Enhacement Description: https://goo.gl/PLuivb


Idea priority Medium
  • Guest
    Reply
    |
    Jul 6, 2020

    There looks to be options to work around this issue, IBM has no plans on correcting at this time.

  • Guest
    Reply
    |
    Jan 31, 2018

    The RTNCSRLOC returns the name of the field and the record.
    CSRLOC should be enhanced so specifying the name of a field in a variable should position to this field.
    It could even be improved so an optional parameter *NEXT positions to the NEXT open field following the
    field specified in the variable.

  • Guest
    Reply
    |
    May 9, 2017

    I IBM is ready to do it, do it big.

    Here is how to do it in a revolutionary way:

    With the introduction of multilevel qualified data structures it is possible.

    All DDS display featres and attribues will become variables of qualified data structures:

    And in order to make sure 100% that there is no contradiction with any existing names in the program, it will begin with an asteric(*)

    Example:

    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.ATR_RI
    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.ATR_UL
    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.COLOR_YLW
    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.ATR_PC
    *DSPF.MYDSP.MYCTL1.SFLCLR


    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.ATR_PC = *ON; // Set on Position Cursor attribue in dispaly file MYDSP, format MYDSPFMT1, field MYFLD1.

    *DSPF.MYDSP.MYDSPFMT1.MYFLD1.COLOR_YLW = *ON; // Set on Color Yellow attribue in dispaly file MYDSP, format MYDSPFMT1, field MYFLD1.

    *DSPF.MYDSP.MYCTL1.SFLCLR = *on // Set on SFLCLR attribute in dispaly file MYDSP, Subfile control record MYCTL1.

  • Guest
    Reply
    |
    May 1, 2017

    I wrote a free utility based on QDFRTVFD API to retrieve field location of a dispaly file.
    https://sites.google.com/site/i400gps/gtfldlc

  • Guest
    Reply
    |
    Feb 2, 2017

    you should check out the CSRLOC() keyword. It will position the cursor to the exact placement.

    You can also find tools written over the system API that extracts field positions based on field name.