Reputation: 155
The Required in Search is giving the following error
[PXSelector(typeof(Search<EPEmployeePosition.employeeID,
Where<EPEmployeePosition.positionID,
Equal<Required<EPEmployeePosition.positionID>>>>.Select(this,'DEV')))]
error CS1012: Too many characters in character literal
error CS1026: ) expected
error CS1003: Syntax error, ']' expected
error CS1519: Invalid token ')' in class, struct, or interface member
declaration
error CS1012: Too many characters in character literal
Can someone let me know how to specify string constant in Search<>
Upvotes: 0
Views: 132
Reputation: 8288
Proper way to achieve this would be with a string constant:
private class Dev : Constant<string>
{
public Dev() : base("DEV")
{
}
}
[PXSelector(typeof(Search<EPEmployeePosition.employeeID,
Where<EPEmployeePosition.positionID,
Equal<Dev>>>))]
Upvotes: 2