Private synonym created on  table not working in function

hi,
I have created a private synonym on a table.
now i am trying to create a function below is the code of the same.
FUNCTION party_name(p_cntr_id NUMBER)
RETURN VARCHAR2 AS
v_cust_name VARCHAR2(100);
v_cust_no varchar2(100);
BEGIN
select occ.cust_no
into v_cust_no
from ops_cust_cntr occ
where occ.ID = p_cntr_id;
SELECT party_name
INTO v_cust_name
FROM hz_parties -- this is the table on which synonym is created .
WHERE party_id = v_cust_no;
RETURN (v_cust_name);
EXCEPTION
WHEN OTHERS THEN
RETURN NULL;
END party_name;
it is giving the message
SQL> sho errors;
Errors for FUNCTION PARTY_TEST:
LINE/COL ERROR
12/1 PL/SQL: SQL Statement ignored
14/6 PL/SQL: ORA-00942: table or view does not exist
but when i run
SELECT party_name
FROM hz_parties;
it is giving me the data.
Please advice.
Regards
Sudhir.

This has nothing to do with the synonym.
Look at this:
SQL> create table t1 (c1 number);
Table created.
SQL> create synonym test_tab for t1;
Synonym created.
SQL> create or replace procedure p1 as
  2    l_count pls_integer;
  3  begin
  4    select count(*)
  5    into   l_count
  6    from   test_tab;
  7    dbms_output.put_line(l_count || ' records found.');
  8  end;
  9  /
Procedure created.
SQL> exec p1
0 records found.
PL/SQL procedure successfully completed.
SQL> I guess, you don't have the select privilege on this table.
Remember: The privileg must be granted directly to the user who is the owner of the procedure/function/package. Privilege through a role are not valid inside the procedure/function/package.

Similar Messages

  • Does Create as table command  works in sql server

    Hi friends,
    does Create as table command works in sql server,if yes pls help me with syntax

    > does Create as table command works in sql server,if
    yes pls help me with syntax
    Just out of interest, what is it supposed to do? There is no "CREATE AS TABLE" command in Oracle.

  • Mat. for Initial Download: Table not supported by function "C_"

    Hi All,
    We are in SRM 5.0 & ECC 6.0 with Classic scenario. While uploading the MATERIAL through R3AS, we have the "Mat. for Initial Download: Table not supported by function C_" & "No product ID determined for material number ... of logical system" error in SMW01.
    In SMQ2 in SRM, Queue is blocked with "Error in Mapping (Details: transaction SMW01)"
    For your information RFC Users at both the ends have SAP_ALL authorisation. SAP Notes 720819, 420980 & 432339 are implemented.
    Please guide me to resolve this issue.
    Regards
    Ashutosh

    hi,
    How was the issue resolved , i am having the same problem.
    can somebody provide with clue
    regards

  • Mat. for Initial Download: Table not supported by function

    Dear All,
    While replicating material from R3AS, I am getting error in SMW01 as below:
    "Mat. for Initial Download: Table not supported by function"
    Kindly suggest.
    Regards,
    Sagar

    Hi,
    if anybody is interested:I solved the problem for our systems, but it's not a very nice solution:
    In backendsystem, which is ECC 6.0 for us, in table CRMRFCPAR the field CRM_REL was empty for connection to CRM. I think this field should be filled automatically but it wasn't. I filled it 'hard' with '700' and then product/material data could be replicated.
    Background:
    In ECC system while collecting material data the subroutine GET_DOWNLOAD_PARAMS_AND_QUEUE of FG CRM0 is called and there is a request 'IF gt_rfcdest-crm_rel GE '500'.'
    This field crm_rel is filled from table CRMRFCPAR.
    I think CRMRFCPAR-CRM_REL should be filled automatically when using SM30 using the RFC-Destination but in our system it was empty. (CRMPAROLTP -> CRM_RELEASE is set !). So I set CRMRFCPAR-CRM_REL 'hard' in SE11 to '700'.
    This is not a very nice solution but maybe it will help anyone.
    I'm also interested if anybody has another better solution.
    Regards
    Christoph

  • Expdp / impdp - Private synonyms using DB link not imported

    Hi
    I'd appreciate any help with this.
    We are taking an export (expdp) of a database on Oracle EE 10.2.0.3 in Prod and then importing it into an identical DB on 10.2.0.5 in Dev.
    I doubt the minor version difference is an issues, but I mention it for completeness.
    Our expdp in prod used to look like this:
    expdp agdba/x directory=DATA_PUMP_DIR dumpfile=X.DMP logfile=X.LOG schemas=A,B,C,D
    We have changed it to:
    expdp agdba/x directory=DATA_PUMP_DIR dumpfile=X.DMP logfile=X.LOG full=y EXCLUDE=SCHEMA:"IN ('E', 'F')"
    ( so basically do a full export, but exclude schemas E & F )
    The impdp in dev has not changed (we import one schema at a time):
    impdp agdba/x DUMPFILE=X.DMP LOGFILE=imp_X.LOG SCHEMAS=A DIRECTORY=DATA_PUMP_DIR TABLE_EXISTS_ACTION=SKIP
    DB user AGDBA has been granted the DBA role...
    The Issue:_
    Private synonyms that use a DB link are NOT imported, but private synonyms that do NOT use a DB link ARE imported.
    I can fix the issue by simply recreating the private synonyms using the DB link - e.g.:
    CREATE SYNONYM EVENTLOGTBL FOR EVENTLOGTBL@FCISTOSMS;
    Things were working fine until we change the expdp to use FULL. I see a few posts about synonyms and FULL=Y issues, but nothing quite like our problem.
    Any ideas?
    Thanks,
    Andreas

    Andreas Hess wrote:
    So the problem is expdp FULL=Y for some reason does not export synonyms that refer to objects via DB links. I doubt that ... More than few times a week I refresh non-prod databases from a prod db, (it is schema level export not FULL=Y), and two of the schema own db links, and others have synonyms pointing to them. I have never encountered synonym problem (except that if db_links are invalid then impdp takes extremely long time to timeout while compiling pl/sql code.). We normally change db_links after the impdp is done, or (while it is importing table via another session).
    I just re-ran sqlfile option with include=db_link,synonym option and i can see statements that create synonyms and create db links.
    However i think the order in which impdp runs might be the source of your problem ... see this
    Starting "ME"."SYS_SQL_FILE_SCHEMA_01":  ME/******** dumpfile=xxxx.%u.dmp directory=xxxx_exp schemas=schema1,schema2,schema3 sqlfile=schema.sql include=db_link,synonym
    Processing object type SCHEMA_EXPORT/SYNONYM/SYNONYM       <<<< Synonyms are created first
    Processing object type SCHEMA_EXPORT/DB_LINK               <<<< db_links come later
    Job "ME"."SYS_SQL_FILE_SCHEMA_01" successfully completed at 08:32:02So, it is conceivable that if you drop synonyms/db_links from your schemas before impdp, some synonyms will fail to create properly. This could be a version specific issue, mine is 11.2 and I don't see failures for synonym creation, i.e. no error messages while impdp. Next time you could try to drop objects except db_links and see if you still have the same issue.
    Raj

  • TRUNCATE TABLE NOT WORKING AFTER DROPPING CONSTRAINTS

    Hi,
    I have a table with a foreign key constraint. I know you can't truncate tables when there are foreign key constraints. So I drop the constraints before running the TRUNCATE TABLE command. But SQL Server is still stating there are foreign key constraints
    even after they have just been dropped.
    When I use SQL Server Management Studio to generate a drop & create script on this table or any other table with an FK consttaint, the generated script fails stating that there are still foreign key constraints??
    I have the same problem for every table that has FK constraints, for those without FK, TRUNCATE table works without issues.
    The end goal is to reset the identity value of the primary key. Since DBCC does not work on Azure, TRUNCATE TABLE is the only way left, especially if you can't even drop and recreate tables with FK constraints.
    What am I missing here?
    Peter

    Hi,
    Thanks for posting here.
    TRUNCATE TABLE is similar to the DELETE statement with no WHERE clause; however, TRUNCATE TABLE is faster and uses fewer system and transaction log resources.
    TRUNCATE TABLE removes all rows from a table, but the table structure and its columns, constraints, indexes, and so on remain. To remove the table definition in addition to its data, use the DROP TABLE statement.
    If the table contains an identity column, the counter for that column is reset to the seed value defined for the column. If no seed was defined, the default value 1 is used. To retain the identity counter, use DELETE instead.
    Restrictions
    You cannot use TRUNCATE TABLE on tables that:
    •Are referenced by a FOREIGN KEY constraint. (You can truncate a table that has a foreign key that references itself.)
    •Participate in an indexed view.
    •Are published by using transactional replication or merge replication.
    For tables with one or more of these characteristics, use the DELETE statement instead.
    TRUNCATE TABLE cannot activate a trigger because the operation does not log individual row deletions. For more information, see CREATE TRIGGER (Transact-SQL).
    Truncating Large Tables
    Microsoft SQL Server has the ability to drop or truncate tables that have more than 128 extents without holding simultaneous locks on all the extents required for the drop.
    Permissions--------------------------------------------------------------------------------
     The minimum permission required is ALTER on table_name. TRUNCATE TABLE permissions default to the table owner, members of the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database roles, and are not transferable. However, you
    can incorporate the TRUNCATE TABLE statement within a module, such as a stored procedure, and grant appropriate permissions to the module using the EXECUTE AS clause.
    You cannot truncate a table which has an FK constraint on it.
    Typically my process for this is:
    Drop the constraints
    Trunc the table
    Recreate the constraints.
    Hope this helps you.
    Girish Prajwal

  • DB Adapter wizard – WHERE clause on parent and child tables not working.

    I have two tables, SECURITY and SECURITY_POSITIONS, where SECURITY has a 1:M relationship with SECURITY_POSITIONS. I used the DB-adapter wizard to create the relationship and the following WHERE clause expression which is looking at both the parent and the child tables;
    The expression builder looks like this:
    AND
    |--- 1. partitionKey EQUAL p_SearchKey
    |--- 2. securityType EQUAL “DBT”
    |--- 3. securityPositionsCollection.dealReference EQUAL “NA”
    The primary key on SECURITY = PARTITION_KEY and SECURITY_REFERENCE
    The foreign key from SECURITY_POSITIONS to SECURITY = PARTITION_KEY and SECURITY_REFERENCE
    securityType is on SECURITY table (master)
    securityPositionsCollection.dealReference is on SECURITY_POSITIONS table (child)
    The invoke on the database adapter is selecting a row in securityPositionsCollection for each child row, rather than just those with dealReference = “NA”!
    I turned on DEBUG logging in the BPEL console and I can see that there are 2 SELECT queries run (guess this is how Toplink does it!), where the 1st query appears to select the parent rows and the 2nd query selects the child rows.
    However the 2nd query is not working because it is failing to select only those child rows where dealReference = “NA”. Also, don’t know why the 2nd SELECT query needs to specify the child SECURITY_POSITIONS table twice in the FROM clause, because that seems to be causing the problem.
    1st query executed is as follows;
    SELECT DISTINCT t0.PARTITION_KEY, t0.SECURITY_REFERENCE, t0.SECURITY_TYPE
    FROM CENTRAL.SECURITY t0, CENTRAL.SECURITY_POSITIONS t1
    WHERE ((((t0.PARTITION_KEY = ?) AND (t0.SECURITY_TYPE = ?)) AND (t1.DEAL_REFERENCE = ?)) AND ((t1.SECURITY_REFERENCE = t0.SECURITY_REFERENCE) AND (t1.PARTIT
    ION_KEY = t0.PARTITION_KEY)))
    bind => [200706200000, DBT, NA]
    2nd query executed is as follows, where child table appears twice! ;
    SELECT DISTINCT t0.DEAL_REFERENCE, t0.PARTITION_KEY, t0.SECURITY_REFERENCE
    FROM CENTRAL.SECURITY_POSITIONS t0,
    CENTRAL.SECURITY_POSITIONS t2,
    CENTRAL.SECURITY t1
    WHERE ((((t0.SECURITY_REFERENCE = t1.SECURITY_REFERENCE) AND (t0.PARTITION_KEY = t1.PARTITION_KEY)) AND
    (((t1.PARTITION_KEY = ?) AND (t1.SECURITY_TYPE = ?)) AND
    (t2.DEAL_REFERENCE = ?))) AND
    ((t2.SECURITY_REFERENCE = t1.SECURITY_REFERENCE) AND
    (t2.PARTITION_KEY = t1.PARTITION_KEY)))
    bind => [200706200000, DBT, NA]
    Anyone experienced the same problem e.g. why is toplink making the query more complicated that it needs to be, because the query only needs to reference the SECURITY_POSITIONS table once, as follows;
    SELECT DISTINCT t0.DEAL_REFERENCE, t0.PARTITION_KEY, t0.SECURITY_REFERENCE
    FROM CENTRAL.SECURITY_POSITIONS t0,
    CENTRAL.SECURITY t1
    WHERE ((((t0.SECURITY_REFERENCE = t1.SECURITY_REFERENCE) AND (t0.PARTITION_KEY = t1.PARTITION_KEY)) AND
    (((t1.PARTITION_KEY = '200706200000') AND (t1.SECURITY_TYPE = 'DBT')) AND
    (t0.DEAL_REFERENCE = 'NA'))) AND
    ((t0.SECURITY_REFERENCE = t1.SECURITY_REFERENCE) AND
    (t0.PARTITION_KEY = t1.PARTITION_KEY)))

    Hello,
    It looks like you have configured your 1:M relationship to use batch reading. This causes the query to bring in the Security_Position table's objects to use the same selection criteria as was used on the initial query, with a join statement. This is more efficient in most cases as it ensures only the Security_positions needed for the Security objects to be fully built are read, in a single query.
    The selection criteria added is only used to filter out the Security objects. All referenced Security_Positions must be read in for the returned Security objects so that the data matches what is in the database. If you do not want the Security_Positions, you might try using indirection on the mapping which will delay the second query until you need the Security_Positions. Or, if you want only the Security_Positions with dealReference EQUAL “NA", you could do a query specifically to filter on them.
    Best Regards,
    Chris

  • SQL to XML to Spry Table not working

    I have created a table that uses PHP to pull mySQL data... it
    works fine.
    But if I copy the SQL statement into another php file, then
    use the "Export to XML" function in order to use that XML file as a
    Spry dataset, so that I can sort my columns, I receive an error
    while creating the dataset.
    The problem is in the WHERE statement in the SQL. The code is
    attached... But here it is as well
    WHERE subtbltripparticipants.tripid = '$_GET[trip_id]'
    It's the $_GET that is freaking it out. This code is supposed
    to pull the variable from the URL. It works in a regular recordset
    in DW, but not in a recordset that is exported to XML. Is there a
    different syntax to use? How can I get the variable that is sent
    via URL to be used in the Spry dataset as a filter?
    When I created the dataset, and choose the php file with the
    SQL in it as the "XML Source", I get "Expected comment or
    processing instruction(2,1) in the "Row Element" section, where the
    nodes should show up. I don't understand this error and don't
    understand why the SQL works in a standard table, but not in an XML
    export for Spry.
    Please advise. Thanks,
    Bubba

    Ok,
    I tried that and it basically bring you to OLI7BW as suggested above.
    1. At this point, how do you know which of these it is actually filling:
    2LIS_11_VAHDR Sales Document Header Data
    2LIS_11_VAITM Sales Document Item Data
    2LIS_11_VAKON Sales Document Condition
    2LIS_11_VASCL Sales Document Schedule Line
    2LIS_11_VASTH Sales Document Header Status
    2LIS_11_VASTI Sales Document Item Status
    2LIS_11_V_ITM Sales-Shipping Allocation Item Data
    2LIS_11_V_SCL Sales-Shipping Allocation Schedule Line
    2LIS_11_V_SSL Sales Document Order Delivery
    2. Also, what does it mean when after running OLI7BW wide, with no restriction on my system, still rsa3 shows no records for 2LIS_11_V_SCL?
    Any other way to confirm that there may not be any data in 2LIS_11_V_SCL?
    Or any way, to make an entry which reflect in 2LIS_11_V_SCL so that I can verify if OLI7BW actually fills the setup table?
    Thanks

  • Creating a Table (not SWING or AWT)

    Hello Everyone,
    I'm trying to come up with a design to create a table grid in pure java that will be displayed on my web page. This is a 2-dimensional table that will have rows and columns. The data for each cell is retrieved from a mySQL table.
    Here's where it gets sticky. The users of my web page can enter a product number. Based on that number I'm returning a combination of sizes and colors for that product. To populate the table I need to call 3 different tables.
    My first table is SIZE
    My second table is COLOR
    My third table is DETAILS
    The DETAILS table has two fields: Color and Size. If the Color and Size field match up against the COLOR and SIZE tables then create a cell for that combination.
    Here's the logic I've come up with so far:
    Loop through SIZE.
    Loop through COLOR.
    Loop through DETAILS.
    if color and size field of table DETAILS equals the size or color of the table SIZE and COLOR then create a new cell.
    It should look something like this:
    Hello Everyone,
    I'm trying to come up with a design to create a table grid in pure java that will be displayed on my web page. This is a 2-dimensional table that will have rows and columns. The data for each cell is retrieved from a mySQL table.
    Here's where it gets sticky. The users of my web page can enter a product number. Based on that number I'm returning a combination of sizes and colors for that product. To populate the table I need to call 3 different tables.
    My first table is SIZE
    My second table is COLOR
    My third table is DETAILS
    The DETAILS table has two fields: Color and Size. If the Color and Size field match up against the COLOR and SIZE tables then create a cell for that combination.
    Here's the logic I've come up with so far:
    Loop through SIZE.
    Loop through COLOR.
    Loop through DETAILS.
    if color and size field of table DETAILS equals the size or color of the table SIZE and COLOR then create a new cell.
    It should look something like this:
    � ����������� Small Medium Large
    Black | � � ok � � ok � ��� <blank>
    Blue � | � � ok � � <blank> � � ok
    Red � | � � ok � � <blank>��<blank>
    I created 3 different Java classes. The classes are Table, Row, Cell. The Table class has a bean setter/getter array: private Row[] rowDetails; The Row class has setter/getter details about each individual cell: private Cell[] sizes; The Cell class holds the details like quantityAvailable. I'm struggling with this one on the logic and how to loop through each element.
    I think this is the right approach but I'm not sure. I was hoping that someone can help me out with the logic.
    Thank you!!

    Sorry, the formatting for the table came out pooly.
    The headers are the size and on the left side it should be the color. an OK means that a combination exists and a <blank> means that there's no such combination. In that case I should skip over the cell and proceed to the next one.
    Small Medium Large
    Black | ok ok <blank>
    Blue | ok <blank> ok
    Red | ok ok ok

  • PDF created on MAC not working on windows 7

    PDF created in Indesign CS6 on MAC is not working properly in Indesign CC on windows 7. I'm using PDF2ID to convert pdf. I'm sending pictures to show how it looks like in InDesign after convertion and in the Adobe Reader. And convertions took so long or crashes my InDesign... What can I do to fix it?

    Were you expecting a perfect conversion? If so, that’s not going to happen.
    If you’re having issues you think need to be addressed contact Recosoft.

  • Full screen mode PDF created on Mac not working on PC?

    I've created a PDF presentation on a Mac in Adobe Acrobat 8 Professional with about 80 pages. I've set it to open in full screen mode when viewed, which works fine on Mac when tested. When opened on a PC however, in my clients corporate environment, it does not work? Has anyone else come across this problem or have any suggestions to remedy it? Could it be something to do with the system it is being opened on blocking full screen mode?

    Check this out in Acrobat help type : Full Screen Mode
    look at the following topics:
    Defining initial View as Full Screen Mode
    Defining initial View
    It appears Fullscreen mode is based on OS Specifications So you need to reopen on a PC version of Acrobat  and set it again.
    Looks like they could have both settings in both programs that is a Line that says set full screen mode for Mac PC Unix Linux set for all.

  • 'Create New Contact' not working in Phone app

    I want to Create New Contact after a call from a new number (selecting the "circled i" button next to the "unknown" phone number in the Recents tab) but while I was entering data in the Contact app, I was interrupted, the iPhone went to sleep and my extensive Contact entry was lost because no data is saved until the Done button is manually selected which closes the record.
    When I go back to the Phone app and select the "circled i" button next to the "unknown" phone number in the Recents tab, both the "Create New Contact" and the "Add to Existing Contact" buttons to take me to the Contact app do not work...i.e. nothing happens when I press them, even after putting the iPhone to sleep. After several tries, I let it sleep for 10 minutes and now these buttons linking to the Contact app from the Phone app again work as usual.
    So we have two unacceptable defects in the iPhone basic Apple apps here:
    1- interruptions while entering a new Contact app record causes the new record to be lost because it isn't automatically saved when the iPhone goes to sleep or an incoming call, etc, but only when the user manually selects the Done button in the Contact app record, which closes the record and one must then select the Edit button to resume data entry (repeat often to simply save as you enter in case there is an unexpected interruption...how dumb is that?. This is just poor iOS implementation that doesn't consider common usage situations that cause data loss, and it could be data that isn't easily retrieved. If Apple doesn't know how to implement auto save at frequent intervals, or upon certain events like sleep or incoming call, then they should at least put a Save button next to the Done button so we can manually save without the stupid Done and Edit button pushing, repeat, repeat, repeat.
    2- A bug in the Phone app that causes the link buttons to the Contact app to stop functioning in at least the situation I describe above. This is unacceptable in a mature iOS basic usage app.

    bump

  • Shared Components Images Create Image does not work

    I am using oracle XE on Windows XP.
    Uploading an image for an application does not work.
    Home>Application Builder>Application 105>Shared Components>Images>Create Image
    It goes wrong when I try to upload the image:
    - Iexplorer gives an error 404 after pressing the Upload button.
    - Firefox just gives an empty page.
    When I try to refresh the resulting page (do another post) I get the following error:
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
    Error ERR-7621 Could not determine workspace for application (:) on application accept.

    Hi Dietmar,
    After setting the language to English (USA) [en-us] it works for +- 50 % of the uploads.
    Below is my tracefile.
    Dump file e:\oraclexe\app\oracle\admin\xe\bdump\xe_s001_2340.trc
    Wed Nov 23 19:03:17 2005
    ORACLE V10.2.0.1.0 - Beta vsnsta=1
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
    Windows XP Version V5.1 Service Pack 2
    CPU : 2 - type 586
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:267M/1014M, Ph+PgF:1431M/2444M, VA:1578M/2047M
    Instance name: xe
    Redo thread mounted by this instance: 1
    Oracle process number: 15
    Windows thread id: 2340, image: ORACLE.EXE (S001)
    ------ cut ------
    *** 2005-11-23 19:50:44.718
    *** ACTION NAME:() 2005-11-23 19:50:44.718
    *** MODULE NAME:() 2005-11-23 19:50:44.718
    *** CLIENT ID:() 2005-11-23 19:50:44.718
    *** SESSION ID:(26.18) 2005-11-23 19:50:44.718
    Embedded PL/SQL Gateway: /htmldb/wwv_flow.accept HTTP-404 ORA-01846: not a valid day of the week
    *** SESSION ID:(27.19) 2005-11-23 19:50:51.937
    Embedded PL/SQL Gateway: /htmldb/wwv_flow.accept HTTP-404 ORA-01846: not a valid day of the week
    *** 2005-11-23 19:50:59.078
    *** SERVICE NAME:(SYS$USERS) 2005-11-23 19:50:59.078
    *** SESSION ID:(27.21) 2005-11-23 19:50:59.078
    Embedded PL/SQL Gateway: Unknown attribute 3
    Embedded PL/SQL Gateway: Unknown attribute 3
    Strange error... there is nothing in my form that is related to dates...
    Kind regards,
    Pieter

  • Dynamic Add table not working

    Hi,
    I have to  2 subforms,name table_subform[0] and table_subform[1] .
    To add a new table , i use script :
    var sSubformSOM = "xfa.form.form1.page1.table_subform";
    var oSubform = xfa.resolveNode(sSubformSOM);    
    var sParentSOM = oSubform.parent.somExpression;   
    var sManagerSOM = sParentSOM + "._" + oSubform.name+ "["+ 1 +"]"; ;  // Control the the new table location
    var oManager = xfa.resolveNode(sManagerSOM);
    oManager.addInstance(1);
    PROBLEM : , the this add table function "ADD THE NEW TABLE IN BETWEEN table_subform[0] and table_subform[1].
    REQUIREMENT : The new table should added next to the last table.
    SOLUTION 1 : var sManagerSOM = sParentSOM + "._" + oSubform.name + "["+ 1 +"]"; // index 1 to add the new table next to the second table
    var sSubformSOM = "xfa.form.form1.page1.table_subform";
    var oSubform = xfa.resolveNode(sSubformSOM);   
    var sParentSOM = oSubform.parent.somExpression;   
    var sManagerSOM = sParentSOM + "._" + oSubform.name+ "["+ 2 +"]"; ;  // Control the the new table location
    var oManager = xfa.resolveNode(sManagerSOM);
    oManager.addInstance(1);
    PROBLEM : NOW all my "new table" are added by reference to oSubform.name + "["+ 1 +"]";  OR oSubform.name[1]
                       Now the add table are working fine.
                        But this create an issue when deleting the table from the same subform.
                         If i click the "Delete table at "table_subform[1] - which index is used to create the rest of the tables" , it delete      table_subform[2],table_subform[3] in sequence.
    Anyone have any solution for this ????

    The removeInstance method requires an index so that it knows which subform to remove. If the button that you are pressing is part of the subform that you are removiing you can use the this.parent.index to return the index that you are on and as such the appropriate subform can be removed. Depending on your structure you may need to use the parent keyword to get back the level that you need. In many cases it gets confusing to know which subform is repeating so you can add this javascript command to the enter event of a field in the subform.
    app.alert(this.somExpression)
    This command will show you the complete somExpression of the field and as such you will know the somExpression for the rest of the subform. You may need to click on the field in a couple of different rows to understand the pattern that is emerging. This command is only for debugging ...you woudl remove it after you figure out your issue.
    Hope that helps
    Paul

  • DB Adapter Re Import Table Not working (JDev 11.1.1.6.0)

    I am trying to refresh the DB adapter tables after a few columns were added. Here is what I did.
    Adapter configuration wizard --> Import Tables --> Query table --> Move the same table from Available section to Selected Section --> Click OK.
    A message pops up to confirm 'Re-Import Table'. Click Yes.
    At this point it is suppose to refresh the table and add the new columns. But when I click next, it says there are new columns available in the table. The new columns are not added to the DB adapter query.
    Has any one faced this issue? Please suggest any ideas or work around to add the columns.
    Thanks
    Ismail M.

    Re-Import table did not work for me even after lot of struggle. I tried tampering with jca, wsdl etc, re-installed the JDeveloper, tried on multiple machines but nothing worked. I finally gave up and recreated the DB adapter with 'pure sql query' option instead of tables. Re did the mappings etc. It was hard but I seem to have no other options. I will never use the table option again.
    Ismail-m

Maybe you are looking for

  • Open and edit animated .gif while preserving frame timing

    CS4 Premium Design Edition, Win XP I was disappointed with the removal of Image Ready from CS3 because although some of the functionality was placed into Photoshop 10, there was no way to open and edit an existing animated .gif while preserving the t

  • Itunes freezes when trying to update

    my system crashed last week and i had to restore the operating system. since then i've been slowly putting it back together piece by piece. i used a program called ipodcopy to take everything (music/video/pictures) off my ipod and put it back on my c

  • Exporting - Creating a digital dvd playable on PC/MAC

    I have an Encore project that is built to be an interactive product demo. Ideally, I'd like to be able to hand this out on a thumbdrive so people can just open it on their PC or Mac and view it and be able to click through as if it were in a dvd play

  • How do i return the count of matching characters in 2 string

    hi guys, is there any comparision function in oracle that return the number of matching character between 2 string ? example - 'josephine' and 'johnny' return 3 ('j','o' and 'n') please advice, Best Regards, Noob

  • To reset oc4jadmin pwd

    Hi I lost my password for oc4jadmin account in SOA suite. i didnt created any other account with admin privilege. How to recover it? Do we have option to reset it from outside? suggestions pls... thnx Naveen