Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Computed Field functions

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
sten
881 Views, 4 Replies

Computed Field functions

Is there a list of supported Computed Field functions somewhere.

 

In my particular case I am trying to extract the last 'x' characters from a string and convert them to an integer.

 

I had hoped that a to_number(right(FIELDNAME,2),'99') would have worked, but it says invalid formula.

 

Is there a way to do this?

 

If not last part of this, can I extract the first part of a string, or even just a predefined location?

 

Thanks

4 REPLIES 4
Message 2 of 5
bastien.mazeran
in reply to: sten

Hello Sten,

The RIGHT() function does not exist in PostgreSQL. Instead, you could use the rtrim() function.

Below is an example of the computed formula I use in my FIELD_B to remove the x string found in my FIELD_A. Both fields are defined as single line text.

rtrim(FIELD_A, 'x')

I hope this helps.

Regards,



Bastien Mazeran

Technical Support Specialist

Message 3 of 5
sten
in reply to: bastien.mazeran

Perfect. Thank you.

I guess I was looking at the wrong version of PostgreSQL. Version 9.x has a right function.

I was looking at version 9.x.

Message 4 of 5
sten
in reply to: sten

Let me correct my typo in the previous post.

I think the information would be helpful for other people too.

Use PostgreSQL version 8.1 as reference for functions, not the newer 9.x.

Autodesk, please correct me if I am wrong.
Message 5 of 5
sara.murray
in reply to: sten

You are right, this information is very useful to other users!

 

Thank you.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report