Project

General

Profile

Bug #1445

browse column name misconversion (an explicit column label should override the default column label)

Added by Stanislav Lomany about 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
05/21/2012
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:

svl_upd20120528a.zip (32.4 KB) Greg Shah, 10/23/2012 05:17 PM

History

#1 Updated by Stanislav Lomany about 14 years ago

  • Start date changed from 05/29/2012 to 05/21/2012

If an explicit COLUMN-LABEL was specified for a browse column, then it does not override the default label. Example of converted code:

brwsF1Column.setColumnLabel("Desired label"); /* unfortunately goes first */
brwsF1Column.setColumnLabel("Standard label");

#2 Updated by Greg Shah over 13 years ago

  • File svl_upd20120528a.zip added
  • Subject changed from Browse column name misconversion to browse column name misconversion (an explicit column label should override the default column label)

-------- Original Message --------
Subject: svl_upd20120528a.zip
Date: Tue, 23 Oct 2012 18:56:50 +0300
From: Constantin Asofiei <>
To: Greg Shah <>, Stanislav Lomany <>
CC: Eugenie V. Lyzenko <>, Faulhaber, Eric <>

Stanislav,

This update was not applied to staging until now. Problem is, although you noted when you sent the update that it does not affect MAJIC, there is a difference:

src/aero/timco/majic/ui/so/Pick04FFrame.java
120a121

pickBrwsPrintFacilityCodeColumn.setColumnLabel("Print!Loc");

This ends up with incorrect screens (see attached baseline and report).

Can we assume this is a regression ?

Thanks,
Constantin

#3 Updated by Greg Shah over 13 years ago

  • File test_67_tc_inquiry_inventory_017.html added
  • File inquiry_inventory_017_step6.txt added

-------- Original Message --------
Subject: Re: svl_upd20120528a.zip
Date: Tue, 23 Oct 2012 17:14:34 -0400
From: Greg Shah <>
Reply-To:
To: Eugenie V. Lyzenko <>
CC: Constantin Asofiei <>, Stanislav Lomany <>, "Faulhaber, Eric" <>

Eugenie: is this one of the tests where we captured the screen on P2J instead of 4GL?

Greg

#4 Updated by Eugenie Lyzenko over 13 years ago

Eugenie: is this one of the tests where we captured the screen on P2J instead of 4GL?

Yes, this was introduced since baseline set *_160_20120810a based on the P2J output instead of pure 4GL. The creation date is 2012/08/04.

#5 Updated by Stanislav Lomany over 13 years ago

Sorry, I messed up old and new screens. This is not a regression, this is the desired behavior. "Print Loc" single-line label is correct because it is explicitly specified is so/pick04.p:

display ...
      it-req.print-facility-code         format "x(10)" column-label "Print Loc" 

So somebody should update baseline screens.

#6 Updated by Constantin Asofiei over 13 years ago

Stanislav,

Thanks for the confirmation, I'm working on it.

#7 Updated by Eugenie Lyzenko over 13 years ago

The current conversion is:

...
pickBrwsTurnaroundNumberColumn.setLabel("Order #");
pickBrwsTurnaroundNumberColumn.setFormat(">>>>>>9");
pickBrws.addColumn(pickBrwsStatusColumn);
pickBrwsStatusColumn.setDataType("character");
pickBrwsStatusColumn.setForceLabel(true);
pickBrwsStatusColumn.setLabel("Stat");
pickBrwsStatusColumn.setFormat("x");
pickBrws.addColumn(pickBrwsPrintFacilityCodeColumn);
pickBrwsPrintFacilityCodeColumn.setDataType("character");
pickBrwsPrintFacilityCodeColumn.setFormat("x(10)");
pickBrwsPrintFacilityCodeColumn.setColumnLabel("Print Loc");
pickBrwsPrintFacilityCodeColumn.setLabel("Print Location");
pickBrwsPrintFacilityCodeColumn.setColumnLabel("Print!Loc");
pickBrws.addColumn(pickBrwsCancelDateColumn);
pickBrwsCancelDateColumn.setDataType("date");
pickBrwsCancelDateColumn.setForceLabel(true);
pickBrwsCancelDateColumn.setLabel("Last Update");
pickBrwsCancelDateColumn.setFormat("99/99/9999");
pickBrws.addColumn(pickBrwsExpr62Column);
pickBrwsExpr62Column.setDataType("character");
pickBrwsExpr62Column.setForceLabel(true);
pickBrwsExpr62Column.setLabel("Time");
pickBrws.addColumn(pickBrwsExpr63Column);
pickBrwsExpr63Column.setDataType("decimal");
pickBrwsExpr63Column.setFormat(">>>>>9");
pickBrwsExpr63Column.setFormatWidth(6);
pickBrwsExpr63Column.setLabel("Elapsed");
pickBrws.addColumn(pickBrwsFacilityCodeColumn);
pickBrwsFacilityCodeColumn.setDataType("character");
pickBrwsFacilityCodeColumn.setForceLabel(true);
pickBrwsFacilityCodeColumn.setLabel("Pickup Loc");
pickBrwsFacilityCodeColumn.setFormat("x(4)");
pickBrws.addColumn(pickBrwsExpr64Column);
pickBrwsExpr64Column.setDataType("character");
pickBrwsExpr64Column.setFormatWidth(1);
pickBrwsExpr64Column.setForceLabel(true);
pickBrwsExpr64Column.setLabel("C");
pickBrwsExpr64Column.setFormat("X");
pickBrws.addColumn(pickBrwsExpr65Column);
pickBrwsExpr65Column.setDataType("character");
pickBrwsExpr65Column.setFormatWidth(1);
pickBrwsExpr65Column.setForceLabel(true);
pickBrwsExpr65Column.setLabel("H");
pickBrwsExpr65Column.setFormat("!");
...

The source file so/pick04.p has changed at 2012/08/03 testcases. So we have the issue triggered by the P2J code change.

#8 Updated by Constantin Asofiei over 13 years ago

Eugenie,

If you compare the so/pick04.p program in staging and pending you will see that the staging version has the explicit label set to "Print Loc" at the frame definition, not "Print!Loc" (which comes from the field definition). So, with Stanislav's fix, P2J behaves correct, showing the explicit label and not the implicit label.

#9 Updated by Eugenie Lyzenko over 13 years ago

The converted code above:

...
pickBrwsPrintFacilityCodeColumn.setColumnLabel("Print Loc");
pickBrwsPrintFacilityCodeColumn.setLabel("Print Location");
pickBrwsPrintFacilityCodeColumn.setColumnLabel("Print!Loc");
...

Related to current staging version with explicit setting label to "Print Loc". I just said the code change in 4GL highlight the issue in our conversion/runtime. This is not a regression, just issue.

#10 Updated by Stanislav Lomany over 13 years ago

  • Status changed from WIP to Review

#11 Updated by Greg Shah over 13 years ago

  • Target version set to Milestone 12

#12 Updated by Greg Shah over 13 years ago

What are the next steps with this?

1. Is this already in staging?
2. Are the regression tests already properly updated to resolve this failure?
3. Did this pass regression testing with the updated baselines?

If the answer to all of the above is YES, then go ahead with check in and distribution.

#13 Updated by Constantin Asofiei over 13 years ago

The answer is yes to all questions, and the update is already in CVS and has been distributed by Stanislav.

#14 Updated by Greg Shah over 10 years ago

  • Target version changed from Milestone 12 to Milestone 16

#15 Updated by Greg Shah over 10 years ago

  • Target version deleted (Milestone 16)
  • Status changed from Review to Closed

#16 Updated by Greg Shah over 9 years ago

  • File deleted (inquiry_inventory_017_step6.txt)

#17 Updated by Greg Shah over 9 years ago

  • File deleted (test_67_tc_inquiry_inventory_017.html)

Also available in: Atom PDF