Re:invalid partial field access: negative offset

Hi,
       iam getting error invalid partial field access: negative offset, what is this mean

negative off set not allowed
Access Using Offset and Length Specifications
Offset and length specifications are generally critical since the length of each character is platform-dependent. As a result, it is initially unclear as to whether the byte unit or the character unit is referred to in mixed structures. This forced us to put in place certain considerable restrictions. However, access using offset or length specifications is still possible to the degree described in the following. The tasks subject to this rule include accessing single fields and structures, passing parameters to subroutines and working with field symbols.
Single field access
Offset- or length-based access is supported for character-type single fields, strings and single fields of types X and XSTRING. For character-type fields and fields of type STRING, offset and length are interpreted on a character-by-character basis. Only for types X and XSTRING, the values for offset and length are interpreted in bytes.
Structure access
Offset- or length-based access to structured fields is a programming technique that should be avoided. This access type results in errors if both character and non-character-type components exist in the area identified by offset and length.
Offset- or length-based access to structures is only permitted in a UP if the structures are flat and the offset/length specification includes only character-type fields from the beginning of the structure. The example below shows a structure with character-type and non-character-type fields. Its definition in the ABAP program and the resulting assignment in the main memory is as follows:
BEGIN OF STRUC,
  a(3)  TYPE C,   "Length: 3 characters
  b(4)  TYPE N,   "Length:  4 characters
  c     TYPE D,   "Length:  8 characters
  d     TYPE T,   "Length:  6 characters
  e     TYPE F,   "Length:  8 bytes
  f(26) TYPE C,   "Length: 28 characters
  g(4)  TYPE X,   "Length: 2 bytes
END OF STRUC.
Internally, the fragment view contains four fragments. Offset- or length-based access in this case is only possible in the first fragment. Statements like struc(21) or struc7(14) are accepted by the ABAP interpreter and treated like a single field of type C. By contrast, struc57(2) access is now only allowed in an NUP. If offset-/length-based access to a structure is permitted, both the offset and length specifications are generally interpreted as characters in a UP.
Passing parameters to subroutines
Up to now, parameter passing with PERFORM has allowed you to use cross-field offset and length specifications. In future, this will no longer be allowed in a UP. In a UP, offset and length-based access beyond field boundaries returns a syntax or runtime error. For example, access types c15 or c5(10) would trigger such an error for a ten-digit C field c.
If only an offset but no length is specified for a parameter, the entire length of the field instead of the remaining length was previously used for access. As a result, parameter specifications are cross-field if you use only an offset, and therefore trigger a syntax error in a UP. PERFORM test USING c+5 is consequently not permitted.
In addition, in a UP, you can continue to specify the remaining length starting from the offset off for parameters using the form field+off(*).
Ranges for offset and length access when using field symbols
A UP ensures that offset- or length-based access with ASSIGN is only permitted within a predefined range. Normally, this range corresponds to the field boundaries in case of elementary fields or, in case of flat structures, to the purely character-type starting fragment. Using a special RANGE addition for ASSIGN, you can expand the range beyond these boundaries.
Field symbols are assigned a range allowed for offset/length specifications. If the source of an ASSIGN statement is specified using a field symbol, the target field symbol adopts the range of the source. If not explicitly specified otherwise, the RANGE is determined as follows:
ASSIGN feld TO <f>.
In a UP, the field boundaries of field are assigned to <fs> as the range, where field is no field symbol.
ASSIGN <g> TO <f>.
<fs2> adopts the range of <fs1>.
ASSIGN elfeld+off(len) TO <f>.
In a UP, the field boundaries of the elementary field elfield are assigned to <fs> as the range.
ASSIGN <elfld>+off(len) TO <f>.
<fs> adopts the range of the elementary field <elfield>.
ASSIGN struc+off(len) TO <f>.
ASSIGN <struc>+off(len) TO <f>.
In a UP, the purely character-type starting section of the flat structures struc or <struc> determines the range boundaries.
If the assignment to the field symbol is not possible because the offset or length specification exceeds the range permitted, the field symbol is set to UNASSIGNED in a UP. Other checks such as type or alignment checks return a runtime error in a UP. As a rule, offset and length specifications are counted in characters for data types C, N, D, and T as well as for flat structures, and in bytes in all other cases.
Offset without length specification when using field symbols
Up to now, ASSIGN field+off TO <fs> has shown the special behavior that the field length instead of the remaining length of field was used if only an offset but not length was specified. Since an ASSIGN with a cross-field offset is therefore problematic under Unicode, you must observe the following rules:
As previously, the field length of field is used as the length. Using ASSIGN field+off(*)... you can explicitly specify the remaining length.
ASSIGN <fs1>+off TO <fs2> is only permitted if the runtime type of <fs1> is flat and elementary, that is, C, N, D, T (offset in characters), or X (offset in bytes).
ASSIGN field+off TO <fs2> is generally forbidden from a syntactical point of view since any offset <> 0 would cause the range to be exceeded. Exceptions are cases in which a RANGE addition is used.
These rules enable you also in future to pass a field symbol through an elementary field using ASSIGN <fs>+n TO <fs>, as it is the case in a loop, for example.
Processing Sections of Strings
You can address a section of a string in any statement in which non-numeric elementary ABAP types or structures that do not contain internal tables occur using the following syntax:
<f>[+<o>][(<l>)]
By specifying an offset <o> and a length (<l>) directly after the field name <f>, you can address the part of the field starting at position <o>1 with length <l> as though it were an independent data object. The data type and length of the string section are as follows:
Original field
Section
Data type
Data type
Length
C
C
<l>
D
N
<l>
N
N
<l>
T
N
<l>
X
X
<l>
Structure
C
<l>
If you do not specify the length <l>, you address the section of the field from <o> to the end of the field. If the offset and length combination that you specify leads to an invalid section of the field (for example, exceeding the length of the original field), a syntax or runtime error occurs. You cannot use offset and length to address a literal or a text symbol.
You should take particular care when addressing components of structures. To ensure the correct platform-specific alignment of type I and F components, they may contain filler fields, whose lengths you need to consider when calculating the correct offset. Furthermore, SAP plans to convert the internal representation of character types to UNICODE, in which one character will no longer occupy one byte, but instead two or four. Although offset and length specifications can work for character fields (types C, D, N, and T) or for hexadecimal fields (type X), incompatible changes may occur in structures containing a mixture of numeric, character, and hexadecimal fields. SAP therefore recommends that you do not use offset and length to address components of structures.
In nearly all cases, you must specify offset <o> and length <l> as numeric literals without a preceding sign. You may specify them dynamically in the following cases:
When assigning values using MOVE or the assignment operator
When assigning values with WRITE TO
When assigning field symbols using ASSIGN.
When passing actual parameters to subroutines in the PERFORM statement.
DATA TIME TYPE T VALUE '172545'.
WRITE TIME.
WRITE / TIME+2(2).
CLEAR TIME+2(4).
WRITE / TIME.
The output appears as follows:
172545
25
170000
First, the minutes are selected by specifying an offset in the WRITE statement. Then, the minutes and seconds are set to their initial values by specifying an offset in the clear statement.
Offset and Length Specifications in the MOVE Statement
For the MOVE statement, the syntax for specifying offset and length is as follows:
MOVE <f1>[<o1>][(<l1>)] TO <f2>[<o2>][(<l2>)].
Or, when you use the assignment operator:
<f2>[<o2>][(<l2>)] = <f1>[<o1>][(<l1>)].
The contents of the part of the field <f1> which begins at position <o1>1 and has a length of <l1> are assigned to field <f2>, where they overwrite the section which begins at position <o2>1 and has a length of <l2>.
In the MOVE statement, all offset and length specifications can be variables. This also applies to statements with the assignment operator, as long as these can also be written as MOVE statements. In statements where no field name is specified after the assignment operator, (for example, in Numeric Operations), all offset and length specifications must be unsigned number literals.
SAP recommends that you assign values with offset and length specifications only between non-numeric fields. With numeric fields, the results can be meaningless.
DATA: F1(8) VALUE 'ABCDEFGH',
F2(20) VALUE '12345678901234567890'.
F26(5) = F13(5).
In this example, the assignment operator functions as follows:
DATA: F1(8) VALUE 'ABCDEFGH',
F2(8).
DATA: O TYPE I VALUE 2,
L TYPE I VALUE 4.
MOVE F1 TO F2. WRITE F2.
MOVE F1+O(L) TO F2. WRITE / F2.
MOVE F1 TO F2+O(L). WRITE / F2.
CLEAR F2.
MOVE F1 TO F2+O(L). WRITE / F2.
MOVE F1O(L) TO F2O(L). WRITE / F2.
This produces the following output:
ABCDEFGH
CDEF
CDABCD
ABCD
CDEF
First, the contents of F1 are assigned to F2 without offset specifications. Then, the same happens for F1 with offset and length specification. The next three MOVE statements overwrite the contents of F2 with offset 2. Note that F2 is filled with spaces on the right, in accordance with the conversion rule for source type C.
Offset and Length Specifications in the WRITE TO Statement
For the WRITE TO statement, the syntax for specifying offset and length is as follows:
WRITE <f1>[<o1>][(<l1>)] TO <f2>[<o2>][(<l2>)].
The contents of the part of the field <f1> which begins at position <o1>1 and has a length of <l1> are converted to a character field and assigned to field <f2>, where they overwrite the section which begins at position <o2>1 and has a length of <l2>.
In the WRITE TO statement, the offset and length specifications of the target field can be variables. The offset and length of the target field must be numeric literals without a preceding sign.
DATA: STRING(20),
NUMBER(8) TYPE C VALUE '123456',
OFFSET TYPE I VALUE 8,
LENGTH TYPE I VALUE 12.
WRITE NUMBER(6) TO STRING+OFFSET(LENGTH) LEFT-JUSTIFIED.
WRITE: / STRING.
CLEAR STRING.
WRITE NUMBER(6) TO STRING+OFFSET(LENGTH) CENTERED.
WRITE: / STRING.
CLEAR STRING.
WRITE NUMBER TO STRING+OFFSET(LENGTH) RIGHT-JUSTIFIED.
WRITE: / STRING.
CLEAR STRING.
This produces the following output:
123456
123456
123456
The first six characters of the field NUMBER are written left-justified, centered, and right-justified into the last 12 characters of the field STRING.

Similar Messages

  • Connector 2.0 Problem - Negative offset

    I am using SAP .Net COnnector 2.0.  I am trying to send data from VB.Net to a custom BAPI.  The BAPI has both structures and tables.  If I invoke the BAPI with blank data, it will work.  If I invoke with tables only, it will work.  However, if I invoke with the structure, I always get "Invalid partial field access:  Negative offset".
    I have been working at this for weeks.  I have no idea what this means.  The full error message is ...
    SAP.Connector.RfcSystemException: Invalid partial field access: Negative offset at SAP.Connector.ThrowRfcException(...) at SAP.Connector.Rfc.RfcInvoke(...) at SAP.Connector.SAPClient.SAPInvoke(...) at SAP_Test_Connect.SAPProxy1.Zbapi_Complaint_Createcomplain(...)
    The "SAP_Test_Connect" is just my program and "Zbapi_Complaint_Createcomplain" is the custom BAPI.
    Please help.  Thank you.

    David , were you able to resolve this problem?. Could you post the solution, thanks in advance.
    I see a core dump on the backend. The coments :
    The current ABAP program SAPLRSDN_CUBE had to be terminated.
    import parameters I_DIMENSION in  RSD_CUBE_GET_FROM_DIME appears to be negative value.
    Please help

  • ABEND RS_EXCEPTION (000): Part-field access (offset = 45, length = 45) ...

    Hi BI Experts,
    We are getting error below when run the query in BEx Broadcaster whereas the same query can be run without error in RSRT. One of the object used in the query is 0TCTBISBOBJ (BI Application Obj). When i remove this object from the query, i am able to execute the query in BEx Broadcaster. Please advice.
    Error: com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException
    com.sap.ip.bi.base.exception.BIBaseRuntimeException ERROR
    com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException
    Log ID: 00144F25CCDC303C0000010600005CBD00046ADC8504A84D
    Initial cause
    ABEND RS_EXCEPTION (000): Part-field access (offset = 45, length = 45) to a data object of the size 60 exceeds valid boundaries.
      MSGV1: Part-field access (offset = 45, length = 45) to a
      MSGV2: data object of the size 60 exceeds valid
      MSGV3: boundaries.
    Stack trace: com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException: Termination message sent
    We have recently upgraded to SAP BI7.0 SP19.
    Thanks in advance.
    Best Regards,
    Pei Fung

    Can someone throw some light on this? Thanks.

  • DATA_OFFSET_TOO_LARGE dump for field symbol assignment/offset

    Hi,
    I am getting a DATA_OFFSET_TOO_LARGE dump for field symbol assignment/offset.
    Dump says, 'In the running program "ZTEST", the field "<WA_FINAL>" of the type "u" and length 2174 was to be accessed with the offset 2204. However, subfield accesses with an offset specification that is not smaller than the field length are not permitted.'
    Here <WA_FINAL> have to be 'TYPE any' to avoid assignment conflicts later in the logic.
    It's basically dumping at <WA_FINAL>+V_LEN(V_OFF) = WA_DATA-FIELD1.
    Here V_LEN LIKE DD03L-LENG & V_OFF LIKE DD03L-LENG.
    Please suggest how to get rid of this dump.
    Regards,
    Ritesh.

    The dump is very clear, your field is smaller than the offset.
    The problem is most likely how you are calculating v_len and v_off.
    You could change that, but there is probably an easier and faster way to do what you are trying there. Is <wa_final> something like a line from a file or what?

  • Payroll Error msg "The gross wages do not cover the negative offset that has been forwarded, therefore, no grossup is permitted".

    Hi Experts,
    I am getting the below error msg while running payroll for an US employee.
    "The gross wages do not cover the negative offset that has been forwarded; therefore, no grossup is permitted."
    I am getting this error msg just after USTAX function processing part of UTX0 subschema. I am highlighting below facts & findings for your reference.
    As per a client requirement,  I have configured a new gross up WT (ER benefit contribution) for a benefit plan (IT 0168) and the changes are in QAS system. The changes have to be reflected in period 20/2014 (4th May'14- 10th May'14) with retro effective 01/01/2014 as per the benefit plan record maintained from 01/01/2014.
    This error msg is coming only for few employees. In my example, when I am running payroll in period 20/2014 with forced retro as 01/01/2014, system is giving error in period 14/2014 (23rd Mar'14-29th Mar'14). When I checked the pay result of this employee for period 14/2014, I can see the /101 is in -ve value and there is claim generated for this period. So I think, eventhough, a value of $ 2.53 is getting added as per the IT 0168 record, its not helping to give a +ve gross value and thus tax is not able to recoved on the same.
    I hope you have come across this issue and can help me to assist to resolve the error msg.
    Regards,
    Prakash  

    If you have correctly configured payroll the system should automatically off set that and should create wage tyes /561 or /563 in RT.

  • Table View : Sort='server' : Error=Invalid sort field type in "SORT ... AS

    Hi ,
    The Sort button does not work for GUID and it shows the error,
    <b>Invalid sort field type in "SORT ... AS TEXT"</b>
    How do I solve this problem?
    Thanks and Best Regards,
    Bindiya

    Hi ,
    Below is the code :
    IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS
    ==================================================
            ls_coldef-columnname              = 'PBI_C_VALUE_ID1'.
            ls_coldef-width                         = '150'.
            ls_coldef-title                           = 'Category I '.
            ls_coldef-tooltipheader              = 'Category I '.
            ls_coldef-wrapping                   = zcl_zsc_co=>sc_true.
            ls_coldef-edit                          = zcl_zsc_co=>sc_true.
            ls_coldef-sort                          = zcl_zsc_co=>sc_true.
            APPEND ls_coldef TO p_column_definitions.
            CLEAR ls_coldef.
    ==================================================
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START
    ==================================================
        WHEN 'PBI_C_VALUE_ID1'.
          CREATE OBJECT lr_dropdown.
          lr_dropdown->id                 =  p_cell_id.
          lr_dropdown->nameofkeycolumn    = 'PBI_C_VALUE_ID'.
          lr_dropdown->nameofvaluecolumn  = 'SHORT_NAME'.
          lr_dropdown->selection          = <fs_row>-pbi_c_value_id1.
          lr_dropdown->disabled           = lv_disable.
          lr_dropdown->width              = '170'.
          GET REFERENCE OF mr_model_assign_sb_list->mr_model_pb_item_list->mr_model_def_category->mt_dropdown_cat_1_val INTO lr_dropdown->table.
          p_replacement_bee = lr_dropdown.
    ==================================================
    NOTE: the data element of 'PBI_C_VALUE_ID' is RAW 16.
    Thanks and Best Regards,
    Bindiya

  • Invalid header field -- invalid header field

    I have different stream in clearcase when i trying to do for remote eclipse client i am getting an following error.
    [#|2006-08-30T10:17:36.028-0400|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=11;|Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: java.io.IOException: invalid header field -- invalid header field.
    Note:The same configuration if i do for different stream with local host it is working fine.
    Please do let me know where the problem exactly and how do resolve this problem.
    IDE:Eclipse - 3.1 (Remote Eclipse)
    CVS:Clearcase
    Clearquest.
    server:Sun Server
    Language:Java
    I am running my each process through RMI.

    After searching for another hour in the forums (4 hours if I count looking earlier this week) I found the following thread:
    http://forum.java.sun.com/thread.jsp?forum=22&thread=31042
    In it it said that the parameters need to follow the same order as the options. So the following two should be valid:
    jar cfm jar-file manifest files
    jar mcf manifedt jar-file filesBut the following are not valid
    jar cfm manifest jar-file files
    jar mcf jar-file manifest filesI really hope this saves many people the headache that I have been having!
    Peter

  • 500 Java bean field access exception

    Installed the APSB07-06 Security patch, and now I am getting
    a "500 Java bean field access exception" error in CF Admin when
    clicking on Settings. I also get "500 Class jrunx/logger/Logger
    violates loader constraints" when clicking on "Caching"
    This is on a Win2K, IIS5
    CFMX 7,0,2,142559
    Java 1.4.2_09
    I Installed JRE 1.4.2_14 per recommendations from reading
    other posts. CF Admin still shows 1.4.2_09.
    JRE installed in C:\Program Files\Java\j2re1.4.2_14. If I
    point CF to that directory, CF will not start. I even followed the
    Technote
    http://www.adobe.com/go/2d547983
    Anyone actually get this fixed?
    Is it possible to remove the APSB07-06 Security patch?

    quote:
    Originally posted by:
    JrLz
    I've read that you cannot install only the JRE, but you have
    to install JDK (for the --server parameter to work), and after that
    you need to change the java.home section in
    c:\cfusionmx7\runtime\jvm.config, point it to your new Java sdk dir
    I have tried both, JRE and JDK. When I change the java.home
    to the new directory, CF fails to start. Can't recall the exact
    message as it's been a few weeks. I am almost to the point of
    re-installing CF.

  • SAPKE60027 - "T591A" contains invalid key fields

    Hi,
    I'm busy applying Support Packages for ERP 6, the BASIS and ABA patches were loaded success fully, but when loading the HR queue the implementation of SAPKE60027 stops with an error:
    Error in phase: XPRA_EXECUTION
    Reason for error: TP_STEP_FAILURE
    Return code: 0008
    Error message: OCS Package SAPKE60027, tp step R, return code
    0008
    Post-import method AFTER_IMP_NROB started for NROB L, date and time: 20100913210327
    2EENR397HThe subobject value table "T591A" contains invalid key fields
    2EENR893INumber range object "HR_ZA_LABR" " "
    Errors occurred during post-handling AFTER_IMP_NROB for NROB L
    AFTER_IMP_NROB belongs to package SZN
    The errors affect the following components:
       BC-SRV-NUM (Number Range Management)
    Post-import method AFTER_IMP_NROB completed for NROB L, date and time: 20100913210328
    does anyone have an idea what to check?
    thanks,

    Hi Rainer,
    Thank you, I got the same problem and resolved by implemention the SAP Note 1484591
    Regards,
    Sandeep

  • Transaction help: "Invalid permission to access service ChartServlet"

    Hi -
    I am working on a transaction that generates a PDF report. I am using SAP MII v. 12.1.6.
    The transaction contains two iCharts and one PDF table. When I run the transaction from our web page (a button that runs the transaction) I get the PDF report with both charts and the table in it. The charts take in 4 parameters and have one property overwritten via the action "Links".
    When one of our users runs the same transaction via our web interface, the PDF contains only the PDF table. After looking at the MII log I found this error several times: "Invalid permission to access service ChartServlet". It appears for only the user and not for myself.
    My initial thought is that I have the permissions to set the chart properties but the user does not. I know for a fact that I am in the SAP_MII_Developer role while the user is not.
    Do I need to change the security settings of the transaction? Or the chart display template? Or does the user have to be in a different role?
    Thanks for your help!
    - Austin

    http://help.sap.com/saphelp_mii121/helpdata/en/45/5a399bec592a4de10000000a11466f/frameset.htm
    The Action inside UME for permission to the ChartServlet needs to be mapped to a Role that this user belongs to.  Assuming your user belongs to the SAP_XMII_User role (you can double check that this action is assigned in UME).
    A simple test would be to use the Dynamic Page Generator and pick a pair of templates - then use the Generate Image button.  Have the user experiencing the problem try this url from their system.  Here's a simple one to try:
    /XMII/ChartServlet?Height=400&Width=640&QueryTemplate=Defaults/TagQuery&Server=Simulator&Mode=History&TagName.1=L1Speed&DisplayTemplate=Defaults/iChart&Applet=iChart

  • ORA-22: invalid session id;access denied

    Hi,
    I am getting the error: ORA-22: invalid session id;access denied when i switch responsability in fron end;
    How to solve this anyone have any idea...
    Thanks,
    kr

    What is the application release?
    Was this working before? If yes, what changes have you done recently?
    Try to regenerate the forms and relink the application executable files via adadmin, bounce the application services, and check then.
    [Note: 150860.1 - ORA-1001 and ORA-22 Navigating in Forms or Switching Responsibility|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=150860.1]

  • Negative offset detected, what dose it mean and how to delete it?

    hi there,
    i'm using FMS4.5.1 x64 on redhat5.7 x64, and came into an issue, that large files on storage lead to storage breakdown often, screenshot is as below while in fact my local disk is only 50GB.
    and i found info in core.00.log as follows:
    2012-04-20 03:38:04 22547 (i)2581173 Negative offset detected (/opt/adobe/fms/applications/liveTest/streams/q0zMo5g/live) : offset=-507374138652348382711520804962356974692518660038953004926260333415884728326174302 890304320038885215498198753334804692186466314664151670746002929865085836375544673427508409 682193412203496985536544362336214981856211063971185660760696718376693690811125567146445634 05586620533964800.000000
    any idea on what dose that mean and what should i try to delete the offset so that my storage can work fine again?
    Many thanks.

    Not much sure on this, but is your system time in sych with current time. Also, how are these files created? Can you explain the scenario when you get "Negative offset detected" in core logs?

  • Jar Exception :  invalid header field

    Hi,
    I was executing the statement like this
    please help me:
    C:\appletVideo>jar cvfm classes.jar *.class *.mf
    java.io.IOException: invalid header field
    at java.util.jar.Attributes.read(Attributes.java:354)
    at java.util.jar.Manifest.read(Manifest.java:165)
    at java.util.jar.Manifest.<init>(Manifest.java:55)
    at sun.tools.jar.Main.run(Main.java:127)
    at sun.tools.jar.Main.main(Main.java:907)
    by
    Kiran

    you must have a character ':' followed by a space (' ') otherwise you will get this exception.
    walker

  • Partial field selection in SELECT

    Can we do a partial field selection in ABAP SELECT like
    For example -
    select department first 3 characters < DEPT+0(3)>
    from emp_table
    where   employee first name start with 'A'  < EMP_NAME+0(1) = 'A'>
    for listing dept first 3 char for Emp name starting with 'A' . How we can implement in ABAP ?
    Can we do this without putting in to an internal table ( that is in a single select statement ) ?
    Thanks
    Mano

    select * from table
          into itab
          where emp+(3) like 'ABC'  "<< employe starting with ABC.
            and  id+(2)  like '12'.     "<< id number starting with 12.
    or you can create a range and use that..
             where emp in ra_emp and
                       id in ra_id.
    is it right Rob?

  • Preserving a field's value on changing the field access parameter?

    I have a form that has a number of fields that are set to "protected" and have calculation scripts on them. If the user selects a specific radio button option elsewhere, the form sets the .access parameter to "open" and disables the calculation so that the user can enter whatever they want into those fields. The problem arises when the user imports XML data via Acrobat. The radio button choice is made (since it is bound to an element in the schema), but when the form changes the access parameter of the fields to "open", it fires the calculate event on the fields and we lose the value assigned to those fields from the imported XML.
    Is there any way to preserve the fields value when it changes from "protected" to "open"? Here is an example PDF w/ XSD.
    The more I dig into this the more I think this might be an issue with calculate.override not disabling the calculations on a field, even when it is set to "open" - at least until the user manually edits that field.

    Ok, worked out a solution. It's specific to my application, but maybe someone else will get something out of it. What I did is moved the calculation script from the field I am changing the access parameter of (call it "Field A") to the fields that feed into that field (call them "Field B" and "Field C"). Now, when the user triggers the exit events on B and C, each one fires a script that updates the value of A. For my application, this works only because B and C are hidden from the use if they toggle the radio button allowing them to manually enter A.
    Basically, instead of A pulling values from B and C to calculate it's value, B and C check each other and push values to A.

Maybe you are looking for

  • I can't get the google tool bar for 5.

    It says Google tool bar does not work.

  • The chat contacts search functionality is missing

    I have configured the chat in thunderbird. It looks well and better but when I searched for a specific contact in my list of contacts(more than 300) by name or Username, I am unable to search the contact and I found it manually. If there is any addon

  • How to create form in ConsoleExtension Application?

    I have WebLogic Console extension application. I would like to submit a form to update the data. How would I create a form? What servlet does the console use? I tried using Struts' Action servlet. I am getting following error. javax.servlet.jsp.JspEx

  • Show Picture

    In my SQL database I stored the location of the image and now I want to output the image in my page using the image location located in the database. Thanks!!!

  • Still able to use mini with itunes?

    will i still be able to use the ipod mini with itunes even though the nano came out?