Inline Function in K2 Smartforms


Badge +2

Greetings,

 

Can we include Inline functions in K2 Smartforms.

 

 

Thanks and Regards,

Mohammed Asif M


5 replies

Userlevel 5
Badge +16

Hi Mohammed,

 

there are expressions in K2 Smartforms, click on datalable control or textbox go to its properties, you'll find  expression property.

 

Check this link:

 

http://help.k2.com/onlinehelp/k2smartforms/userguide/1.0.6/default.htm#sf_-_viewdesigner_layout_-_calculation_expression.html

 

what function are you trying to add?

Badge +2

Greetings Mustafa,

 

I want add an custom function which i can use in my smartforms.

 

My FQN is returned as DomainFQN and i need to store only FQN in  DB. I want a function to be created which would remove the Domain Part and give only the FQN Part.

 

The Domains can be differenct based on the environment.

 

I want a general function which can remove the Domain and give FQN.

 

eg:

K2:FsC006242 should return only C006242

K2:QAC006242 should return only C006242

K2:DevC006242 should return only C006242

K2:ProdFS11012152 should return only FS11012152

 

There is no Split function in the Smartforms when i wanted to create an expression, so i thought ill create a custom function.

 

Thanks and Regards,

Mohammed Asif M

 

Userlevel 5
Badge +16

Hi Mohammed,

 

In this case you'll have to create two expressions:

 

1- Find

2- Mid

 

1- Find: to find   position and return it's index

 

Assume I have the value in textbox

 

13322i24E604297304D0E7.png

 

 

wish it helps

Badge +2

Thanks Mustafa,

 

The Solution is working fine.

 

I want to implement a custom function in the SmartForms.

 

Is ti Possible to get the custom function in smartforms. ?

 

Thanks in Advance.

Userlevel 5
Badge +16

Hi Muhammed,

 

glad to know.

 

Honestly, I don't know if this is possible in K2 smartforms, If I figure out anything new I'll let you know.

 

 

Reply