Solved

IN402000 Inventory Allocation - ViewDocument

  • 25 July 2023
  • 4 replies
  • 53 views

Userlevel 3
Badge

I am struggling getting the redirect from my results to the document for the Inventory Allocation page on mobile. I have found the command it needs to use (ViewDocument), but I get an error anytime I try to tap on the record.

Tracing the error, table name it is requesting is in the ASPX of the site, but I don’t know how to bring that in and tie it together.

Refer to pictures & code below:

 

Allocation Details
Filter for Allocation Details
Error when I select a record on Allocation Details
add screen IN402000 {
type = FilterListScreen
add container "Selection"{
add field "InventoryID"{
selectorDisplayFormat = Key
}
add field "Available"
add field "OnHand"
# add field "Warehouse"
# add field "Location"
}
add container "ItemPlansAllocationDetails"{
add field "AllocationType"{
listDisplayFOrmat = CaptionValue
}
add field "AllocationDate"{
listDisplayFOrmat = CaptionValue
}
add field "ReferenceNbr"{
listDisplayFOrmat = CaptionValue
}
add field "Warehouse"{
listDisplayFOrmat = CaptionValue
}
add field "Location"{
listDisplayFOrmat = CaptionValue
}
add field "Qty"{
listDisplayFOrmat = CaptionValue
}
add field "AccountID"{
listDisplayFOrmat = CaptionValue
}
add containerAction "ViewDocument" {
syncLongOperation = true
behavior = void
redirect = true
}

add containerAction "ViewSummary" {
syncLongOperation = true
behavior = void
redirect = true
}
}
}

 

icon

Best answer by Cesar Betances 26 July 2023, 20:36

View original

4 replies

Userlevel 3
Badge

Update: Those containerActions are working, they are just in the 3 dot menu drop downs. However, when you select ViewDocument it only goes to the top record. I would like the ability to tap the record, and have it open the corresponding document. It is when you tap the record that the error appears.

Userlevel 4
Badge +2

Please note if that action redirects to another screen, that other screen must be also mapped in the Mobile application (Mobile Sitemap).

With containerAction you could also use behavior = Open and redirect = True:

 add containerAction "ViewDocument" {
      behavior = Open
      redirect = True
    }
You could review the msdl code of the FS403900 screen for guidance.

Another option is to use recordAction with redirect = true.
You could review the msdl code of the PR405020 screen for guidance.  
add recordAction "ViewDocument" {
      redirect = True
    }

Hope this helps.

Userlevel 3
Badge

@Cesar Betances Thank you for the response!

The screen I’m redirecting to is mapped, and the View Document redirect is working, just unfortunately, not as I intended. It is only working from the menu drop down instead of on the record tap, and only going to the top record listed when used.
 

Menu “View Document” only opens first listing.



I tried adding the recordAction, but still get the same error stated above ‘InventoryAllocDetEnqResult’ does not exist in the database.

All the other redirects I’ve used in the PL screens have used the redirect action EditDetail, which the recommended FS403900 screen has.

I’ll continue to dig around those suggested screens.

Userlevel 4
Badge +2

Hi @rmillerKimball ,

Thank you for the information provided.

Reviewing this screen in specific the DAC InventoryAllocDetEncResult is unbound and ViewDocument button seems to redirect to different screens (SO, Shipment, etc). Please create a Support Case so we could review this into more details.

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved