Hello.
I have to retrieve exceptions and requirements from the database according to the order and hierarchy they are displayed in the screen.
I cannot use Number field because there are items without number.
Any idea how to do this?
Thanks!
Get exceptions/requirements order by the screen displaying.
Re: Get exceptions/requirements order by the screen displaying.
Any answer? LMK if the question is not clear...
Thanks!
Thanks!
-
- Posts: 1341
- Joined: Wed Jan 15, 2014 3:50 pm
- Location: Raleigh, NC
- Contact:
Re: Get exceptions/requirements order by the screen displaying.
You can get exception/requirement information directly from the SQL tables. Remember to never write to the tables. This will not change the information in the order. Use this expression to experiment with. (Ignore the columns ending in the "@" character.)
This is all the available information. If the item doesn't hae a
If a numbering scheme is not set, you will have to get the ordering information directly from the order object.
This is all the available information. If the item doesn't hae a
Code: Select all
declare @orderNumber varchar(30) = '2023040008'
declare @rootID int =
(SELECT [RootID] FROM [pf].[Order] where Number = @orderNumber)
SELECT *
FROM [pfm].[Phrase] p
join [pf].[OrderItemType] oit -- Add Exception/Requirement types
on p.Type# = oit.ID
join [zref].[NumberedListFormat] nlf -- Add Number format
on p.NumberingScheme = nlf.ID
where RootId# = @rootID
Bob Richards, Senior Software Developer, SoftPro
Re: Get exceptions/requirements order by the screen displaying.
This helped me. Thank you so much!