Unable to validate the text with validate trigger
Hi I am facing one issue
I want to validate the password before going to another field, i put the following code on the when validate trigger,what i want if the password is wrong the cursor should go to the password field and clear the contents of that field only.When i put go_item and clear_item its giving error,pls find the following error and my code
FRM-40737:Illegal restricted procedure Clear_block in when validate Item trigger
declare
l_user varchar2(6) := null;
l_pass varchar2(10);
n_pass varchar2(10);
chkbutton number;
chk number;
Begin
select passwd into l_pass
from Trx_usr
where username = :USR.DISUSR;
if :global.pass = :TRX.PASSWD then
message('Login Sucesss');
else
chk:=show_alert('ALRLOG');
if chk = alert_button1 then
go_item('TRX.PASSWD');
clear_item;
end if;
end if;
end;
rgds
shrey
I guess go call that code in the WHEN-VALIDATE-ITEM-trigger of the password-field itself? So you don't need any GO_ITEM. And instead of using CLEAR_ITEM you can just assign NULL; like
:TRX.PASSWD:=NULL;
Similar Messages
-
Why am I unable to use the text message feature on my Honda CRV with my iphone 6?
Am I unable to use the text messaging feature on my 2014 Honda CRV with my Iphone 6?
mspacmn wrote:
Am I unable to use the text messaging feature on my 2014 Honda CRV with my Iphone 6?
Yes, you are unable to use text messaging feature with your iPhone.
-> http://owners.honda.com/vehicles/information/2014/CR-V/features/SMS-Text-Message -Function/3
"The system is currently compatible with select Blackberry® phones with Bluetooth" -
Unable to get the Text proerty of Range class
Hi,
I am using the Text property of Range class for excel template development using VSTO.While reloading the template i am getting the error "Unable to get the Text proerty of Range class".If i skip this line of code,i am getting similar kind of errors while accessing the properties of Range class(like Range.copy() ,Range.Locked, Range.EntireRow.Hidden).In all these cases i am getting the similar kind of error "unable to get the property of Range Class".
Waiting for a quick response...
Thanks in advance..Hi Besse,
Actully, the error is coming when i try to populate datatable with the the range values in one of the sheet.
I am using the below code.
//"wsInteropMetadata" is the sheet object.
//"RangeName" is the range name in the sheet.
rngConfig = wsInteropMetadata.get_Range("RangeName", Type.Missing);
for (int iRow = 1; iRow <= iRowCnt; iRow++)
dRNew = dTMetadataTable.NewRow();
for (int iCol = 1; iCol <= iColCnt; iCol++)
rngCell = (Excel.Range)rngConfig.Cells[iRow, iCol];
dRNew[iCol - 1] = rngCell.Text.ToString();
dTMetadataTable.Rows.Add(dRNew);
In the first load of the template,this code is working fine.In the reload i am getting the error at "rngCell.Text".If i see in quickwatch,most of the properties of "rngCell" object are throwing "System.Runtime.InteropServices.COMException".See the below exception information.
Exception Information
Exception Type: System.Runtime.InteropServices.COMException
Message: Unable to get the Text property of the Range class
Source: Microsoft Office Excel
ErrorCode: -2146827284
Thanks
Krishna. -
When I type a text I am unable to send the text. Any suggestions?
When I type a text I am unable to send the text. Any suggestions?
Is it failing and giving you an error message?
Is it happening with all contacts or just one? It could be that you have an incorrect number or the number you're sending it to might not be able to receive incoming SMS -
Unable to access the objects with out schema as prefix.. can any body help
Hi,
i am using 10g.I have one problem like i unable to get the table access with out mention prefix for that table.
but i created public synonym and gave all grants to all users also. but still i need to mention schema name as prefix otherwise it give the error..
can any body tell me reason and give me solution.
ex: owner:eiis table:eiis_wipstock
connect to: egps schema
in this position if i try with eiis.wipstock it gives error but if i mention like eiis.wiis_wipstock then its working fine.Pl do not spam the forums with duplicate posts - Unable to access the objects with out schema as prefix.. can any body help
-
I am attempting to use the Integration Services Import Project Wizard within Microsoft Visual Studio and am getting this error
Unable to create the type with the name 'MSORA'. (Microsoft.SqlServer.ManagedDTS)
upon Import.
Can anyone shed some light for me on this cryptique error message?
Thanks for your review and am hopeful for a reply.If you have the SSIS and SSDT (BIDS) installed then
I believe the DTS assemblies got derigistered, a typical outcome of corrupted software, so a full re-install would be the best option. VS +SQL Server + more
Otherwise, as a quick fix try to
reference the SSIS assemblies, like Microsoft.SQLServer.ManagedDTS.dll + more.
They are by default in C:\Program Files\Microsoft SQL Server\<number>\SDK\Assemblies.
Arthur
MyBlog
Twitter -
Unable to create the type with the name 'ODATA'
On a test server with VS 2012 and SQL 2012 installed, I have created an SSIS project in project deployment mode. In the packages of the project I use the Odata source for SSIS. The packages run fine in VS 2012. But when I deploy the package to the Integration
Services catalog on the same server as where I am running VS 2012 I get a deployment error:
‘Failed to deploy project. For more information, query the operation_messages view for the operation identifier '25084'. (Microsoft SQL Server, Error: 27203)'
When I read this message from the SSISDB database, I see the problem with ODATA.
use SSISDB
go
select * from catalog.operation_messages where operation_id = 25084
--Failed to deploy the project. Fix the problems and try again later.:Unable to create the type with the name 'ODATA'.
As I said: the packages with the Odata run without error when tested from within VS2012 on the SAME server. When I deploy the project from Visual Studio I get the error.
For completeness: I have also tried deployment from VS2012 to another server where the SSIS Odata source has bene deployed. Also to no avail.
Jan D'Hondt - SQL server BI developmentThe next possiblity for me was to convert the project to Package deployment and see what the result I get. I have converted my project with package connections from project deployment to Package deployment. Then I deployed the package on the server in MSDB
catalog from SSIS. I.e. I connect with SSMS to Integration Services as an administrator and under the MSDB folder I added a new folder for my package. I then imported the dtsx into the mdsb package store. The Import worked. Still from within SSMS and connected
to the Integration Services, i right-clicked on the package in the MSDB store and selected 'Run package'. In the Execute Package dialog window, I clicked on 'Execute' and the package actually ran. The Odata connector was opened, it read the data and imported
into my database.
This experience made me realize what the real culprit was: The OData connector is a 32-bit connector in SQL Server 2012.
To prove this: with SSMS I connected to the SQL database server and in the Integration services catalog, i right-clicked on the package that was deployed in Project deployment mode, then selected 'Execute...'. In the execute dialog windo in the 'Advanced'
tab I checked 32-bit runtime. And the package ran.
To wrap it all up:
The Project deployment will work, but not with the Odata source as project connection. The Odata connection must be defined in each package as a package connection.
Run the deployed packages in 32-bit mode on the server
Jan D'Hondt - SQL server BI development -
Revision: 8531
Author: [email protected]
Date: 2009-07-13 12:25:57 -0700 (Mon, 13 Jul 2009)
Log Message:
If using an embedded font, need to measure the text with it so that if auto-sizing, the correct amount of space is allocated.
QA Notes:
Doc Notes: SDK-22205.
Reviewers: will be Gordon
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-22205
Modified Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.asRevision: 8531
Author: [email protected]
Date: 2009-07-13 12:25:57 -0700 (Mon, 13 Jul 2009)
Log Message:
If using an embedded font, need to measure the text with it so that if auto-sizing, the correct amount of space is allocated.
QA Notes:
Doc Notes: SDK-22205.
Reviewers: will be Gordon
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-22205
Modified Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as -
How to blink the text with in JTable Cell?
Hi Friends,
I am relatively new to Java Swings. I have got a requirement to blink the text with in the JTable cell conditionally. Please help with suggestions or sample codes if any.
Thanks in Advance.
Satya.I believe Swing components support HTML tags.
So you might be able to wrap your text in <BLINK>I am blinking !</BLINK>
tags.
If that doesn't work, you probably have to create your own cell renderer, and force a component repaint every second or so... messy.
regards,
Owen -
How to position the cursor at the end of the text with EDIT_TEXT?
Hello, it wanted to ask to them if somebody could make work the module of function EDIT_TEXT so that it positions the cursor at the end of the text that is visualizing in the text editor. In the documentation it says that passing a ' X' to him in the field scrollend of the parameter Control is obtained that operation. Nevertheless, I did this and the cursor continues appearing at the beginning of the text that visualizes.
Somebody could help me please?
Regards,
Gabriel
PD: The code that I use is the following one:
FORM f_ingresar_comentarios.
DATA: l_action,
l_result LIKE itcer,
l_pedido LIKE thead-tdname,
li_coment_save LIKE i_comentarios OCCURS 0,
li_coment_aux LIKE i_comentarios OCCURS 0 WITH HEADER LINE,
l_lines TYPE i,
l_lines_save TYPE i,
l_lines_insert TYPE i,
l_index TYPE i,
l_index_aux TYPE i,
l_insert,
lwa_control LIKE itced.
CLEAR: l_action.
CLEAR i_comentarios.
REFRESH: i_comentarios,
li_coment_save,
li_coment_aux.
l_pedido = v_pedido.
Leemos el texto si es que existe
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = v_id_text
language = sy-langu
name = l_pedido
object = c_ekko
IMPORTING
header = wa_cabecera
TABLES
lines = i_comentarios "Lineas de texto leídas
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
Armamos la cabecera por primer comentario para el pedido
CLEAR wa_cabecera.
wa_cabecera-tdobject = c_ekko. "Objeto en tabla TTXID
wa_cabecera-tdname = v_pedido. "Nro de pedido
wa_cabecera-tdid = v_id_text. "ID en tabla TTXID
wa_cabecera-tdspras = sy-langu. "Lenguaje
wa_cabecera-tdlinesize = 70.
ENDIF.
Salva comentarios originales
li_coment_save[] = i_comentarios[].
lwa_control-scrollend = c_x. " c_x = 'X'
Abre el editor de texto
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
header = wa_cabecera
save = space
control = lwa_control
IMPORTING
newheader = wa_cabecera
function = l_action
RESULT = l_result
TABLES
lines = i_comentarios
EXCEPTIONS
object = 1
id = 2
language = 3
name = 4
linesize = 5.
Si cambio los comentarios, actualiza comentarios
CASE l_action.
WHEN c_unchanged.
WHEN c_delete.
WHEN c_update OR
c_insert.
Obtiene cantidad de lineas de comentarios originales y modificados
DESCRIBE TABLE li_coment_save LINES l_lines_save.
DESCRIBE TABLE i_comentarios LINES l_lines.
Si se insertaron lineas...
IF l_lines > l_lines_save.
Calcula cantidad de lineas a insertar para luego calcular valor de
indice a partir del cual insertar los nuevos comentarios
l_lines_insert = l_lines - l_lines_save.
l_index = ( l_lines - l_lines_insert ) + 1.
Controla que al menos una de las lineas insertadas sea diferente de
blanco
l_index_aux = l_lines.
l_insert = c_n.
DO l_lines_insert TIMES.
READ TABLE i_comentarios INDEX l_index_aux.
IF sy-subrc = 0 AND
i_comentarios-tdline <> space.
l_insert = c_s.
EXIT.
ENDIF.
l_index_aux = l_index_aux - 1.
ENDDO.
IF l_insert = c_s.
Carga comentarios originales y agrega lineas insertadas
li_coment_aux[] = li_coment_save[].
APPEND LINES OF i_comentarios
FROM l_index
TO l_lines
TO li_coment_aux.
Setea variable para indicar actualizacion de comentarios.
v_comentario = 'S'.
Agrega usuario y fecha del comentario
CONCATENATE sy-uname
sy-datum
INTO li_coment_aux-tdline
SEPARATED BY space.
li_coment_aux-tdformat = '*'.
APPEND li_coment_aux.
Grabamos el texto
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = wa_cabecera
savemode_direct = c_x
IMPORTING
newheader = wa_cabecera
TABLES
lines = li_coment_aux
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDIF.
ENDCASE.
ENDFORM. " f_ingresar_comentarios
In addition, I made another program simpler that it uses the same functions and also have the same problem:
*& Report Y_GVA_TEXT *
REPORT y_gva_text .
DATA: wa_cabecera LIKE thead,
i_comentarios LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: l_action,
v_comentario,
l_result LIKE itcer,
v_pedido LIKE thead-tdname VALUE '3',
l_pedido LIKE thead-tdname,
c_a05 LIKE thead-tdid VALUE 'A05',
c_ekko LIKE stxh-tdobject VALUE 'EKKO',
l_lines LIKE sy-tabix,
lwa_control LIKE itced.
CONSTANTS: c_x VALUE 'X',
update VALUE 'U', "Langtext verändert
insert VALUE 'I', "Langtext eingefügt
delete VALUE 'D', "Langtext gelöscht
modify VALUE 'M', "Kein Langtext, Inlinezeile veränd.
unchanged VALUE ' '.
CLEAR: l_action.
CLEAR i_comentarios.
REFRESH i_comentarios.
Leemos el texto si es que existe
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = c_a05
language = sy-langu
name = v_pedido
object = c_ekko
IMPORTING
header = wa_cabecera
TABLES
lines = i_comentarios "Lineas de texto leídas
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
Armamos las cabecera para mostrar los comentarios
CLEAR wa_cabecera.
wa_cabecera-tdobject = c_ekko. "Objeto en tabla TTXID
wa_cabecera-tdname = v_pedido. "Nro de pedido
wa_cabecera-tdid = c_a05. "ID en tabla TTXID
wa_cabecera-tdspras = sy-langu. "Lenguaje
wa_cabecera-tdlinesize = 70.
ENDIF.
lwa_control-noendlines = c_x.
lwa_control-scrollend = c_x.
Abre el editor de texto
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
header = wa_cabecera
save = space
control = lwa_control
IMPORTING
newheader = wa_cabecera
function = l_action
RESULT = l_result
TABLES
lines = i_comentarios
EXCEPTIONS
object = 1
id = 2
language = 3
name = 4
linesize = 5.
Si cambio los comentarios, actualiza comentarios
CASE l_action.
WHEN unchanged.
WHEN delete.
WHEN update OR
insert.
Agrega usuario y fecha del comentario
CONCATENATE sy-uname
sy-datum
INTO i_comentarios-tdline
SEPARATED BY space.
i_comentarios-tdformat = '*'.
APPEND i_comentarios.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = wa_cabecera
IMPORTING
newheader = wa_cabecera
TABLES
lines = i_comentarios.
ENDCASE.Murugesh,
I believe that you have mis-read Gabriel's problem.
Gabriel,
The cursor is not positioning at the base of the editor as you have cited.
In order to get this functionality to work, you must set the LINE_EDITOR import paramter to 'X'.
data: hdr like THEAD.
data: l_itced like itced.
hdr-tdobject = 'VBBP'.
hdr-tdname = '4000029521000030'.
hdr-tdid = 'Z005'.
hdr-tdspras = 'E'.
hdr-TDLINESIZE = '100'.
hdr-TDTXTLINES = '3'.
l_itced-SCROLLEND = 'X'.
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
DISPLAY = ' '
EDITOR_TITLE = ' '
HEADER = hdr
PAGE = ' '
WINDOW = ' '
SAVE = 'X'
LINE_EDITOR = 'X' " here !!!
CONTROL = l_itced
PROGRAM = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
RESULT =
TABLES
LINES = lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
LINESIZE = 3
NAME = 4
OBJECT = 5
TEXTFORMAT = 6
COMMUNICATION = 7
OTHERS = 8
Don't forget those points !! -
I am using MS Access 2010 VBA and acrobat X, and AcroExchg. I can manipulate and search pdf documents without difficulty. I would like to programmatically capture the text in a rectangle that I have drawn on the document with a mouse. It appears that If I can obtain the bounding rectangle that I could use AcroExchg.PDTextSelect to retrieve the text. Is there a way to retrieve the coordinates of a mouse drawn rectangle in a pdf document. In other words the equivalent of select, copy and later paste the text into another document?
Message was edited by: jgm835
I have reviewed posts from the adobe forum that indicate that obtaining the coordinates from a user drawn selection are not available through automation with AcroExch, but that function would be available .through a plug in. Unless there is information to the contrary I will look to using menu commands in Acrobathi Bruce,
1. It sounds like what you need is to set the starting version number since your revision number increments in whole numbers, it would match up to SharePoint once the starting version number is set. You can potentially create a new custom field in the
library to manually track the version of the uploaded PDF document, but this might not match up with SharePoint's own version number and could get confusing. Another possibility is to upload dummy versions of the PDF document until the SP version
matches with the revision version and then delete these dummy versions.
2. When you upload the PDF document again into the library, it should prompt you to see if you want to replace the existing. If you proceed with the upload, it should replace and increment the SharePoint version number.
Please Mark Answered if my reply solves your problem. Thanks!
Jeff Thai
Technical Solutions Architect, AvePoint
http://www.AvePoint.com -
I've been locked out my MacBook Pro, I was able to lock the MacBook with the find my iPhone app but I'm unable to unlock it with the app or by punching in the code directly to the MacBook, so far the apple store or reps over the phone can not help. I've called a third party retail store for assistance and the tell me I have to pay, even if I get it to work or not... So far nothing these apple "genius" will do to help with this product solution.
I know my passcode/password but I am not able to log in....
Is there anyone that can help?I would guess the fan is the cause of the noise. Suggest you take a look at it.
This site has a wealth of information about getting inside a Macbook or Macbook Pro.
http://www.powerbookmedic.com/mac-repair.php -
Unable to change the text of a JLabel
hi!
i have created a JLabel and add it to my frame. Now, when the user clicks the button on the frame, i changed the test of the label and after that some really heavy processing takes place. and till that processing completes, the changed text does not get display. is it because that the repaint has very low priority? my requirement is that the text shuld get updated immediately.
Any ideas?
regards
Deepak SainiI usually suggest to use:
component.paintImmediately(component.getVisibleRect());
Wondering what the difference between 'paintImmediately()' and 'update()' was, I created a simple test program. The program simply changed the text in a JTextField 1000 times.
Here is what I found:
1) paintImmediately was 10-20% faster
2) paintImmediately produced no flicker
I changed my program to use a JLabel instead of a JTextField and found:
1) update() did not work
Here is my sample program in case you are interested.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.text.*;
public class StatusBar extends JFrame
JTextField statusBar;
public StatusBar()
JPanel panel = new JPanel();
panel.setLayout( new BorderLayout() );
setContentPane( panel );
JButton button = new JButton( "Connect..." );
panel.add( button, BorderLayout.NORTH );
button.addActionListener( new ActionListener()
public void actionPerformed(ActionEvent e)
long t1 = System.currentTimeMillis();
for (int i = 0; i < 1000; i++)
statusBar.setText( "label " + i );
// statusBar.paintImmediately(statusBar.getVisibleRect());
statusBar.update(statusBar.getGraphics());
System.out.println( (System.currentTimeMillis() - t1) );
statusBar = new JTextField("No Connection");
panel.add( statusBar, BorderLayout.SOUTH );
public static void main(String[] args)
StatusBar frame = new StatusBar();
frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
frame.pack();
frame.setVisible(true); -
When opening my Mail window, I found the text size was virtually unreadable. It has decreased. and I have no idea how to rectify this. This problem only started today-
See this: <br />
https://support.mozilla.com/en-US/kb/Page+Zoom -
Unable to use the Edit with option
When I right-click on a bitmap image, in the Library, the
Edit With option is grayed out. I've tried several images
(different format), and get the same results.
Interesting; however, I'm sure there's a simple answer.
BTW: I"m on a Mac, 8 microprocessors (smokin'), with 12GB
RAMThat printer is supposed to have automatic duplex printing. You may have to select it as an option in the Print & Scan preference pane. If that doesn't work, make sure you have the latest version of the software. Delete and re-add the printer. Beyond that, you'd have to contact the manufacturer for support.
Maybe you are looking for
-
Apex Listener in standalone mode, how to set/reset db connection.
Sometime ago I installed Apex Listener for testing, then I removed it. Now I downloaded last version, installed it in standalone mode and try to set the DB connection. However when I try to edit in listenerAdmin page the db connection parameters I ca
-
How can I move my catalog and pictures to a new computer?
I'm using PSE 6 under XP. I want to install PSE 8 on a new Win 7 computer. How can I move all my pictures and my currnet catalog to the new computer? Thanks,
-
Static nat and service port groups
I need some help with opening ports on my ASA using firmware 9.1.2. I read earlier today that I can create service groups and tie ports to those. But how do I use those instead of using 'object network obj-ExchangeSever-smtp' ? I have the ACL - acc
-
hello frds, I have one doubt,let suppose I am modifying some program and I have to write some common comment every time in my program. like Start of Code insertion by Yerukala Setty on 14.05.09 End of code insertion by Yerukala Setty on 14.05.09 or S
-
Photoshop y la pestaña eficiencia
Hola colegas No se si a alguien mas le ha pasado. Pero resulta que tengo un macbook pro de junio de 2009, tengo instalado Photoshop CS4 y bajé la versión de prueba de Photoshop CS5, abro un fichero PSD que tiene de tamaño 15 megas con sus capas y veo