Language restriction on Text Items.
Hi,
We are developing an application in Oracle 8i & Forms 6i
for a Thailand based company. The users will enter data
in English as well as Thai language.
We have tested the forms that accepts both English
& Thai characters in a single text item. The database
also stores both language's characters. We are using
TH8TISASCII character set.
Now, the user has a requirement that certain text items
(fields) should allow only Thai characters to input.
In other words, that particular field should not
accept English characters.
Is it possible to achieve in Forms 6i ? Are there any
built-ins or properties available that would do this job ?
The client machines are running on Windows 2000 Professional
Edition with locale as Thai.
Your inputs will be highly appreciated.
Thanks.
Mayur
[email protected]
Could you not write a validation trigger that checks the ASCII value of each character in the string that the user has entered and then raises an error if it is not in the correct range?
If you are web deployed you could use the Keyfilter PJC (you can download this for 6i or 9i) which allows you to define exactly which characters are allowed in the field without having to write PL/SQL validation code.
Similar Messages
-
How to restrict Copy or Paste action in a TEXT item ??
Hi All,
I have a requirement that I have to restrict user from doing any Copy or Paste activity in TEXT item.
Any help would be highly obliged..
Thanks,
Pushpendrathis thread may help you
How to disable copy-paste operation in af:inputText -
FRM-40737: illegal restricted procedure COMMIT in POST-TEXT-ITEM trigger
Hi All,
I tried to execute an insert statement in a POST-TEXT-ITEM trigger and use commit to save data in the db but this error appeared:
FRM-40737: illegal restricted procedure COMMIT in POST-TEXT-ITEM trigger
How to solve it? OR how to save every text item value entered in the database?I don't fully understand, why you need to insert records on post-text-item, but the possible solution is:
Write a DB procedure which does insert and commits it.
Call this procedure in post-text-item.
Problems will occur if your procedure is modifying the table columns, which are used in form. Form will notice that values in DB have changed and you will have "Record has been changed by another user. Please requery to see changes" error. But if records, affected by DB procedures, are not used in form, the wverything will be OK. -
Restrict user to enter % sign in Text Item
Dear All:
I want to restrict the user to enter Percentage '%' and Under Score sign '_' in the Text Item.
How is it possible?
I am using Oracle Forms 10g.
Thanks
HassanHere is a javabean solution..
http://fdegrelle.over-blog.com/55-categorie-265996.html -
Multiple values from database on a single text item
i am trying to do the following
on a single text item in a form
(under form property pallete->records->number of items displayed is 5) run a triger "when-new-block-instance" with the following pl/sql statement
declare
menu_item VARCHAR2(35);
begin
select label into menu_item
from menu_options;
end;
however, once i run the form it gives me
WHEN-NEW-BLOCK-INSTANCE trigger raised unhandeled exception ORA-01422
however, if in the pl/sql statement contains only
begin
execute querry;
end;
then it works fine
The problem i beleive is the fact that the first querry retreives multiple values or recordset instead of A record.
How can i go arond this and allow the form to list all the values in this form. Eventually i will need to add conditional SQL statments and that is why just execute querry will not work.
Also, is there a way to dynamically assign a number to "number of records shown" property?
All help is very much appreciated!
nullHi, Marko
I teach Forms, and I usually find a bad idea to use SQL statements directly (in particular when you can "make" Forms to do what you want).
Inside PL/SQL, a SELECT..INTO statement is supposed to select a single row, otherwise an error occurs.
EXECUTE_QUERY works.
If by "conditional SQL statements" you mean restricted (filtered) queries, you don't need to write SQL to do this.
You can set the DEFAULT_WHERE block property to a different value before using EXECUTE_QUERY, like:
SET_BLOCK_PROPERTY('your_block', DEFAULT_WHERE, 'where menu_id > 100');
And the answer to your second question is no, you cannot dynamically change the number of records a block is displaying.
You can limit the number of records your block queries from the database table using Maximum Records Fetched block property (available in Forms 6 and above, not sure about Forms 5). However, this will only work as expected if you set Query All Records to Yes.
Hope this helps,
Pedro -
Purchase order text(item text)
hi,
where does the purchase order text (item text) is stored for standard transaction ME21N.
thanks & regards
PrajwalaPurchase order item text is stored as long text in STXH.
use read_text FM to see the text.
Paramters:
Text Name "Concatenate PO number + item number " Key of EKPO.
Language ES
Text ID F03 Material PO text
Text Object EKPO Purchasing doc. item te -
Is there a way to obtain the text item's value when the mouse pointer at?
Hi,
Is there a way to obtain the text item's value when the mouse pointer at? Mouse pointer may be located somewhere out of current record and even out of current block.There is a when-mouse-over trigger and that works fine in client-server mode for Forms 5/6/6i, but that is less indicated when deployed using Application Server.
In that trigger you may write whatever code is necessary, restricted package procedures.
Still, I think, for your case, if you do not have to deal with a multi-record block, you should use the HINT property for that item and set_item_property with the HINT argument for that item in order to set the hint to the item's value - this should set_item_property should be called on the when-new-record-instance . -
Font size dependent text item size calculation
Hello there always helping hand !!
I have a requirement like this
1. Depending on the Form Co-ordinate system
2. Depending on the Font name and size of the Text Item
3. For a multiline text item
4. Given the context string to display in it
I want to calculate the optimal width and hight for that text
item.
Please give me sugestion on the calculation formulae and or
pointer to the detailed discussion....
Thanking you in anticipation
Santosh
[email protected]
null>
Naresh Kumar Malik wrote:
> Hi
>
>
>
>
> You can use <h1> HTML tag. Here
> concatenate '<h1>' item_eform_reqno '</h1>' into head.
> wd_context->set_attribute( exporting name = 'EFORM_HEAD' value = head ).
>
>
> Here attribute EFORM_HEAD is bounded to the text view element.
>
> Regards
> Naresh
This should NOT work! The UI elements should safe encode all input values - thereby eliminating the value of any HTML tags. If you system isn't doing this already then it is a bug and if you rely on such a thing it will stop working at some point in the future.
You are basically restricted to different values available via the design parameter. The overall font sizes come from the underlying themes and the client applications (browser or NetWeaver Business Client) that host the Web Dynpro Application. Therefore no direct specification of the font size is possible in order to stay within the controls of theme. If you don't like any of the designs available, you might consider altering the Portal Theme you are using - but that is a rather drastic approach. -
Execute query when post text item
Anybody can help ?
I create 2 block, first a data block and another is a control block with field customer_search field,
after inputing customer id in search field on control block,
I want to execute query.
my code :
set_block_property('customer',default_where,'custid=:control.customer_search');
execute_query;
error : frm-407 : illegal restricted procedure execute_query in post-text-item trigger.
How to solve this problem ?
notes: If I create one push button and put execute_query in there, every thing is fine.
but the my user does not like that.
Thank.hi,
first of all change ur statement as
set_block_property('customer',default_where,'custid='||:control.customer_search);
means u must use pipe sign while using bind variable
secondly
u should use key next item trigger
go_block(user desired item or block);
--and then use this satemant
clear_block(no_validate);
execute_query(no_validate);
i hope it wil slove ur peoblem if it will NOT then please acknowledge otherwise we will go for a other solution
thanks
imran
manager IT
www.masoodtextile.com -
Hello everybody!
I'm trying to write different types of languages on a single text item, like greek and latin. The type of font of the text item only accepts or latin or greek, but not latin and greek together.
Please, if anyone knows how do I get this tell me.
Is there a way convert unicode to character? Like chr(), but this function is ASCII to character.
Thank you very much!<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Aluisio Aguiar ([email protected]):
Hello everybody!
I'm trying to write different types of languages on a single text item, like greek and latin. The type of font of the text item only accepts or latin or greek, but not latin and greek together.
Please, if anyone knows how do I get this tell me.
Is there a way convert unicode to character? Like chr(), but this function is ASCII to character.
Thank you very much!<HR></BLOCKQUOTE>
Hello!
Someone said that exists "nchr()" and
"unistr()", but these functions only work in 9i.
I need something that works in 8i.
If anybody knows, help me please. -
Read only text Items uses the maximum width
Folks,
I have a form with 3 regions and each region has 6 or more text items each with a different width (40, 30 24, 2...). I am using a Read Only Condition Type on all these items to disable them. I am setting the background color as bgcolor="#DCDCDC" in the Read Only Element Table Cell Attributes.
All my elements are disabled (Gray color) but with the maximum width of 40 bytes. I don't want a 2 byte text item 40 bytes long and grayed out. How can I set a specific width for individual items in Read only Condition? Please help
Thanks
Raje.Try this alternative by disabling the HTML Form Item at the required process point.
I added this JavaScript to the HTML Header of the page which will allow me to disable the required item, plus set its background and color:-
<script language="JavaScript1.1" type="text/javascript">
function disableFormItem(p_item, p_background, p_color){
disItem = document.getElementById(p_item);
disItem.style.background = p_background;
disItem.disabled = true;
disItem.style.color = p_color;
</script>In the Region Footer of the Region where my items are located I added this JavaScript code:-
<script language="JavaScript" type="text/javascript">
** Only disable the required Form Items if the Primary Key value is present,
** in this case it is P12_UEI. (Won't be present for new records as populated
** by on-insert db trigger and sequence.)
if (html_GetElement('P12_UEI').value > 0)
disableFormItem('P12_URESI', 'lightyellow', 'black');
disableFormItem('P12_UZI', 'lightgray', 'black');
disableFormItem('P12_UBI', 'lightgray', 'black');
</script> The resulting page is a lot better looking than using the APEX read only text item.
Regards,
Phil -
Problems with IE and text item
Hi,
I have a problem with IE (v6.0) when I add an text item to a region. IE puts 2 records with the same content into the DB (table wwv_text), Mozilla only 1.
The Problem is, if I change the text of the item with IE, Mozilla, doesn't show the changes made, due to the fact, IE only changes one of the two records and Mozilla reads exactly the other one.
But if I add a text item with Mozilla, only one record is stored in the DB.
Is this a portal or IE bug?
PS: I have disabled version control on the entire page group.hi dorian,
is it possible that you add an item in a different language if you are using internet explorer. in this case 2 records are created. one for the base language and one for the translation. this also explains that you do not see the edited version of the item in the other browser - in case you are using a different language.
a good technote related to this topic:
http://www.oracle.com/technology/products/ias/portal/html/cm_main_10g_translation_tech_note.html
just an idea...
regards,
christian -
Numeric Format Masks on Text Items
Hello all.
I've been struggling to find the best way to use format masks for numbers on text items.
So far, I've found that the property "Format Mask" on the SOURCE group does not work. Am I correct?
I am trying to use To_Char to format the number, but I always get "NUmeric or Value Error".
In short, what is the easiest and most widely used way to format numbers (my language is pt-br). Ex.: 12500.00 becomes 12.500,00.
ThanksPeter's solution shows you the syntax for to_char to get what you want; just replace the hard-coded number in his example with the value (or the expression giving the value) you're trying to format. So, something along the lines of:
select to_char(t.value, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') val,
to_char(t.factor, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') fct,
to_char(t.value * t.factor / 100, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') rslt
from table t
where...Or, in a slightly more readable manner (I don't like having to constantly escape quote marks):
select to_char(t.value, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') val,
to_char(t.factor, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') fct,
to_char(t.value * t.factor / 100, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') rslt
from table t
where...-David -
How to restrict number of items in billing documents
hi,
is there any procedure for restricting number of items in sales order level or any document level.
regards,
balaHi,
You have to maintain the following in addition to our Guru,s reply
You must also go to copying control for order/delivery to billing document at item level under "Data VBRK/VBRP" and maintain routine 006 "individual invoice limited" or a similar routine that accesses the data maintained here.
then it will work.
Regards,
Ravi Duggirala -
Restriction of number items in sales order
hi,
how can i restrict no of items in sales order?
eg:
sales order has been created for 10 items and all the 10 items
quantity should be 72 not more than that and system should
not allow to enter the quantity.where we can configure for
this.
regards,
balajitYou have to try with User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT or USEREXIT_SAVE_DOCUMENT in the same program
thanks
G. Lakshmipathi
Maybe you are looking for
-
Creating system in portal for the backend SRM
Dear All, We are in the process of setting up a system in portal for the backend SRM system I have tried to create system in System admin--> System configuration --.>System landscape For SAP Web AS Connection , the parameters maintained are: Hostnam
-
Impossible to edit or add the signature in a freshly installed convergence
we are using directory server 6.3 messaging server 7.0 convergence patch 3 in the convergence web interface is not possible to edit or add the signature the text box doesn't react to my input, click or mouse is there something that need to be added t
-
Hi, i have a segment that will hold n number of occurences. Ex: E1BPE1MARAEXTRT. Field name called field1. i need to pass the occurence value to target field and the same value should not repeat in target . Ex: field1 value 1000------targe
-
Hi, I've quickly built another basic site for a friend but and have uploaded a page to test it. The problem is in internet explorer the page doesnt display properly, but in Chrome it displays perfectly. The URL is http://www.ppyfc.co.uk/Home.html Che
-
ORA-07445 during connect to control center - LastDeploymentMsgIterImpl
hi there, we are running OWB 11.1.0.6 to a 10.2. DB and are unable to connect from design rep to control center ('no data to read from socket') we got the following message in our alert log: ksedmp: internal or fatal error ORA-07445: exception encoun