Skip to main content
Solved

An Invalid type has been specified

  • November 10, 2022
  • 3 replies
  • 436 views

Michael Ndungi
Varsity I
Forum|alt.badge.img

I created a new SCREEN RS301000,then I moved the business logic RSSVWorkOrderEntry.cs to the extension lib, the file was moved to the visual studio. Without making any changes, build the project and published it in the Customization project editor. After publishing I tried to open the SCREEN RS301000 but prompt an error as seen in the screenshot.

 

code in the visual studio

 

error when trying to preview

 

Best answer by Naveen Boga

@development93  It seems you have not provided the data source in the .aspx page, which is causing this issue. Have you provided below details for your custom screen?

 

 

View original
Did this topic help you find an answer to your question?

3 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3417 replies
  • Answer
  • November 10, 2022

@development93  It seems you have not provided the data source in the .aspx page, which is causing this issue. Have you provided below details for your custom screen?

 

 


Michael Ndungi
Varsity I
Forum|alt.badge.img
Naveen Boga wrote:

@development93  It seems you have not provided the data source in the .aspx page, which is causing this issue. Have you provided below details for your custom screen?

 

 

Thank you for this. Found the solution.The problem was arising from specifying the above details well.


Edit the following lines of code for the RSSVWorkOrderEntry.cs  (From screenshot above)

Line 3: Add the following “using PX.Data.BQL.Fluent;”
Line 6: “public class RSSVWorkOrderEntry : PXGraph<RSSVWorkOrderEntry>” --→ “public class RSSVWorkOrderEntry : PXGraph<RSSVWorkOrderEntry, RSSVWorkOrder>”
Line 13: “public PXFilter<MasterTable> MasterView” ----> “public SelectFrom<RSSVWorkOrder>.View MasterView;”

Once you’ve done that then also add the PX.Data.BQL.Fluent.dll as a reference to your project as below.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings