Dynamic Text for Erp-Shape

I’m converting a customization that displays the number of lines held on a purchase order.

In classic, we use an Epi Shape to display lines held + number of lines. I thought this would be easily repeatable within App studio using erp-shape component in 2024.1.

Has anyone found a way to dynamically set an erp-shape value along with concatenated text? Or with just a dynamic value for that matter.

Setting the binding to TransView.Value doesn’t pass the current row value to the shape, in example like the erp-label does. I also tried setting the caption for the component with different syntax to test but no success. ex.(%TransView.Value%; {TransView.Value}

I’ve settled with a text box below the shape holding the value as pictured below, but hopefully will find a solution to condense into one component!

Component Setup:

Create an event and use the property-set widget.

image

3 Likes

Thanks, working although I will need to format load / update / row-delete conditions to display properly it seems :grin:

image

You could probably just do an event on “Column Changed” for whatever that total lines number is bound to.
And probably one on form load to get the initial.

1 Like

Tried a few load conditions including the ones you recommended but seemingly am missing a step at some point.

I’ve hooked the property set event into the after get by ID, along with my even that counts the lines held and binds the value to the TransView field.

Although, the value is being passed the shaped doesnt display it. It does display after searching through a few new PO’s. Basically, the value that is stored in TransView is always updated, but the value that is displayed in the shape is from a previous PO. Any quick thoughts?

image

Now, I change to PO with 3 lines held, but the display is the previous record of 0 rows held.

image

Played with this and found the after GetByID to be an issue as you described.
I changed the event to be Control/On Create/EpShapeID and it worked for my purposes. Give it a shot.

1 Like

This worked for loading the correct value when searching a PO from the landing page. But, loading a new PO from the Search Slide out, or entering a PO on the header doesn’t update the EpiShape, even with keeping a separate event to trigger after row change.

Solution I ended up finding was to use the OnCreate event to get the initial values from the count as you suggested.

I then added an event-next to my CountHeldLines Event. I then call the property-set through the widget. That ended up being the trigger to find consistency in transferring values.

3 Likes