Skip to main content
Solved

PL/SQL get value from text field

  • December 20, 2021
  • 5 replies
  • 897 views

Forum|alt.badge.img+23
  • Superhero (Customer)
  • 1169 replies

Hi,

how can I get a value from a text field (for example a part no, project id etc.) into a variable in PL/SQL (something like Apex)? Is that possible?

For example:

select * from table where column = :text_field;

 

thank you

Best answer by Charith Epitawatta

Hi @Link,

When creating a custom event, you can select which attributes you need to be available for your event action.

Once you have selected the necessary attributes above and saved, they will appear in the available substitution fields section when you create an action for that event. You can use them in your event action as variables in your SQL block. 

 

You can find the Custom Events documentation here:

https://docs.ifs.com/techdocs/foundation1/040_administration/240_integration/320_events/default.htm#Custom_Defined_Events

 

Hope this helps!

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

5 replies

Charith Epitawatta
Ultimate Hero (Employee)
Forum|alt.badge.img+31

Hi @Link,

Could you please let us know the use case? For an example, to create a custom field, event action etc. A little bit more details about what you are trying to do would help.

Thanks!


Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1169 replies
  • December 20, 2021
Charith Epitawatta wrote:

Hi @Link,

Could you please let us know the use case? For an example, to create a custom field, event action etc. A little bit more details about what you are trying to do would help.

Thanks!


Hi Charith,

yes, I want to create an custom event. With this event I want to prevent enter more than 35 characters in a text field. If a user want to enter more than 35 characters in a text field then the event should shows an error message while saving the object.

 

Thank you and kind regards


Charith Epitawatta
Ultimate Hero (Employee)
Forum|alt.badge.img+31
  • Ultimate Hero (Employee)
  • 1093 replies
  • Answer
  • December 20, 2021

Hi @Link,

When creating a custom event, you can select which attributes you need to be available for your event action.

Once you have selected the necessary attributes above and saved, they will appear in the available substitution fields section when you create an action for that event. You can use them in your event action as variables in your SQL block. 

 

You can find the Custom Events documentation here:

https://docs.ifs.com/techdocs/foundation1/040_administration/240_integration/320_events/default.htm#Custom_Defined_Events

 

Hope this helps!


Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1169 replies
  • December 20, 2021
Charith Epitawatta wrote:

Hi @Link,

When creating a custom event, you can select which attributes you need to be available for your event action.

Once you have selected the necessary attributes above and saved, they will appear in the available substitution fields section when you create an action for that event. You can use them in your event action as variables in your SQL block. 

Hope this helps!


Hi Charith,

thanks for replying.

Of course I know these attributes. Bute these are already in the database.

I need a value from a certain text field to check the lenght. Short: do plausibility check before saving.

 

Kind regards


Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1169 replies
  • December 22, 2021
Link wrote:
Charith Epitawatta wrote:

Hi @Link,

When creating a custom event, you can select which attributes you need to be available for your event action.

Once you have selected the necessary attributes above and saved, they will appear in the available substitution fields section when you create an action for that event. You can use them in your event action as variables in your SQL block. 

Hope this helps!


Hi Charith,

thanks for replying.

Of course I know these attributes. Bute these are already in the database.

I need a value from a certain text field to check the lenght. Short: do plausibility check before saving.

 

Kind regards


Hi Charith,

you are right. :-)

 

 If  LENGTH('&NEW:DATA8') > '35' Then
     Error_SYS.Record_General('Attention', ' Bankaddress Line 2 can only consists of 35 characters');
     
     rollback;
 End If;

 

Thank you


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