How to work with two blocks in one form

i need help,i moved the control from block(abc) to another block(xyz) using go_block('xyz') and then i insert record to block(abc) but the record is not inserted to the table .
i used previous_block but it is not working
how to use it.

Hi,
You have written the code in when-window-activated? If yes then as soon as the window of xyz is activated the code starts running and populating the data (i.e. department code and its name) from table to the block, one by one. It seems that the block 'xyz' is like detail block. Am I right? U want the record row by row, isn't it?
In this case, have you been able to populate your xyz block more than 1 records by the help of the code you have written ? If yes then use commit_form in the when-button-pressed trigger associated with the proposed button.
I just can't understand how your code populates xyz block when you are writing :
fetch DEPARTMENT into :DEPARTMENTS.DEP_CODE,:DEPARTMENTS.DEP_NAME;
instead of fetch DEPARTMENT into :xyz.DEP_CODE,:xyz.DEP_NAME;
Pls tell me the detail result you r getting.
Regards,
Pragati.

Similar Messages

  • Working with two computers. One of them not working

    I've been working with two computers. In one of them where I have already  installed several programs downloaded with the Adobe Application Manager, when I try to open a program is giving me a message to sign in for a 30 day trial of the program? Why is this happening?

    Try http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

  • How to work with two different backend with same MI Server and war file

    Hi All,
    We have a requirement that we need to work with one Middleware for two backends. For that we had to copy MAM30 sync bo's to zsync BO'S with the name ZMAM30. Now both sync BO'S will point to different backends.
    I have a standard war file which was working well with standards sync bo's. Now to work on zsync bo's what all the changes do I have to do in the standard war file(code).
    As per my knowledge we have a file called "syncbonamelist.properties" which maps the sync bo keys. Also there is another file called "mapping.xml" file which maps the package name with BO name.
    Can any body please tell me, are there any other files needed to be change like "meRepMeta.xml", other than any existing code like java objects are also needed to be changed.
    Your help in this regard is highly appreciable.
    Regards
    Murthy

    Hi Murthy,
    I try to get my head around the question:WHY?
    The reason for my question is, that this influences the answer!
    Because of several reasons it is NOT possible to handle MAM and zMAM Bos at the SAME TIME on the SAME MACHINE in the way you describe it - and it makes no sence to do so at all! But anyway......
    Lets say you have two backends, cause you have two different areas of the company. But both want to use the same MI server - but the client should be independend.
    So you need two apps. One uses the MAM BOs and the second one uses the zMAMBos.
    If this is the case, dev should be straight forward I think and you solution should work already......... so I ask myself, what is the problem you have? Do you get an error?
    - First create a new MEREPMETA-XML with just the zMAMBOs instead of the MAM BOs.
    - Change the two files you mentioned above.
    This should be all then.
    If you have a look into the implementation for MAM001Impl for example, there you find a line like:
         private static final String SYNC_BO_NAME
              = ResourceBundle.getBundle("com.sap.mbs.mam.bo.impl.syncbonamelist").getString("MAM30_040");
    This takes the name from the properties file and maps it to the real BO. So changing the name in the property file to
    MAM30_040 = zMAM30_040
    will result in MAM uses the zMAM BOs.
    Be aware: after you place the WAR file in the WEBAPPS folder and do a restart to deploy the file, you need to do a data reset to make sure the new MEREPMETA.XML is read.
    AND: two apps! one for MAM and one for zMAM BOs. One APP is not possible! Cause if you have something like that in the properties file:
    MAM30_040 = MAM30_040
    MAM30_040 = zMAM30_040
    if will only take the first reading.
    But I think this is clear to you anyway
    Regards,
    Oliver

  • How to work with two schema

    Hi All,
    Now i am working In Like Schema Name ABC ,it's an live working schema.Now i want to create an Schema for test Application.if i insert data for test it should not reflect Schema ABC untill Value should insert into rtest Schema.How can i do this,.
    i want firstly i test my aplication with test data then my user run with his schema.
    How can i do this.
    Thanks

    This is a bad idea on so many levels - for one, if you are working from the same applications, any changes you make are potentially going to affect your user(s), which is not going to do your robustness or user acceptance any favours.
    Ideally, you would have at least two separate database instances - development and production, which would be set up the same. I appreciate that resources may not stretch to that.
    At worst, you should copy your application into another development schema on the same instance and make your changes in that - thereafter you can propagate changes to the application by copying over the old live instance with your state-of-the-art 'dev' version. NEVER NEVER NEVER make changes directly into the live version - you're only storing up more pain in the future.

  • FaceTime won't work with two Apple devices & One ID

    Before I got my iPhone 5c I used to be able to use FaceTime on my MacBook Pro. When I got my iPhone 5c I could no longer use FaceTime on my MBPro. Now FaceTime only works on my iPhone. 
    When I try to sign-in to FaceTime on my MBPro I get the following:
    Your Apple ID "[email protected]" can't be used to set up FaceTime at this time.
    I contacted Apple FaceTime Support.  They wanted $30 to address my problem.
    Has anyone else had this problem?

    I am experiencing the same issue logging into my MBPro. I attempted to use FaceTime however when I opened the app it required me to enter in my log in information, which I have never had to do since I first began using the app years ago. Well when I entered in my info clicked NEXT I received this error message: "The server encountered an error processing registration. Please try again later."
    Don't get it. Feeling perhaps I need to update my operating system to Yosemite? Will this fix it?

  • How to work with multiple users accessing one database

    I am a newbie in oracle.
    I want to give access to my oracle database for more users.
    I created oracle connection with c# project. The application allow to user to insert data to a database table. Now I want to give access to the different users with a login. Is there any way to give access other users to the same database using their username and passwords?
    I'm confused. Please help.
    thank you.

    In the database, set up your data schema with data tables, views, and stored procedures to support your application.
    That schema owner should only be a trusted data administration person.  Let's call that schema APP_DATA.
    Then you set up another schema called APP_DATA_USERS with no privileges and no data.
    Then you create an Oracle ROLE object called APP_DATA_ROLE.
    You grant the app_data_role to the app_data_user account.
    You then grant object permissions in the APP_DATA_ROLE that you want the app_data_user to have for the app_data data objects, like Create SESSION, SELECT on TABLE X. or SELECT, INSERT, UPDATE on TABLE Y.
    Now the APP_DATA_USERS only has specific permissions needed on specific app_data data objects that you control by the app_data_role.
    Then your application only opens connections to Oracle via the single APP_DATA_USERS account
    which is constrained by the APP_DATA_ROLE permissions on what can be done in the data schema APP_DATA.
    in your web or app config you create the connection information for the single app_data_user account.
    Putting the database aside, you now create the application layer with login controls so many users can use the application.
    But when they need data, the application only makes a connection to the single APP_DATA_USERS account
    Oracle ODP.NET auto handles the multiple session connections by the multiple application users to the single APP_DATA_USERS account.
    In summary the multiuser access is controlled by the application
    all making connections (sessions) with a single, limited privilege app_data_user account on the database side.

  • Working with two RecordSets

    Is it possible to work with two recordsets in one method?
    If so, I havnt been able to figure out how.
    Any Suggestions?
    Stef

    Sure. Why not? But your problem has nothing to with them being "in the same method". It's more likely to do with this quote from the API documentation for java.sql.Statement:
    "Only one ResultSet object per Statement object can be open at any point in time. Therefore, if the reading of one ResultSet object is interleaved with the reading of another, each must have been generated by different Statement objects. All statement execute methods implicitly close a statment's current ResultSet object if an open one exists."

  • How to sync with two computers not at the same time, I'm registerd with one computer

    How to sync with two computers (not at the same time), I'm registered with one computer and am trying to connect with second computer with same iPhone. To sync the first time with the second PC "Firefox Sync Option tells me Create New account or Connect, when I connect it gives me a Passcode and on iPhone it also gives me a Passcode, than how do I connect? Both the iPhone and PC gives me a Passcode and have now idea what to do with them.
    Where do I find my Sync Key ? so I can install manually if it works ?

    Use the Sync Key ''(Recovery Key)'' from the PC that you used to initially setup your Firefox Sync service, when setting up that 2nd PC with Sync. You need to use '''Add a device''' to setup the 2nd and subsequent devices on a Sync account. <br />
    https://support.mozilla.com/en-US/kb/add-a-device-to-firefox-sync

  • Firefox start with two pages. One says welcome to Firefox etc. And the other is my homepage (google). I want to stop the first page. How can I do this??

    Firofx (5.0) starts with two pages. One is the welcome to Firofox and also that there are Add-ons available. The other one is my homepage (google). I want to stop the first page. How can I do this?

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • Can any one tell me how to work with field exit????

    Hi
    Can any one tell me how to work with field exit I know how to create them. I want to know how it works. Actually I want to create a field exit for T-CODE MIRO. Where I want to put the value ebeln of the PO Reference tab into the Assignment of details tab and make Assignment field disable.
    Thanks in advance

    Hi,
    Follow the Steps,
    1. Go to CMOD transaction
    2. From the menu "GOTO->TEXT ENHANCEMENTS->DATA ELEMENTS-   ->NEW DE CUST DOCU".
    3. In the displayed box specify the data element and
       press either "CHANGE" or " Ref to screen" button
    4. CHANGE button is for defining the documentation
    5. "Ref. to screen" if for assigning the screen in which
       a field has the this type data element.
       Note: You should have used this data element for a   
             field in that screen.
    6. Now it will ask for Function Module name, specify the
       FM name and double click it. It will go to the editor.
    7. Now using the Import parameters code accordingly
    8. Activate and go back
    9. Now "Assign the created program ( that is FM) to the
       screen by specifying the Program name and Screen
       number.
    10. Now save and activate.
    Note: No need to create a separate project for creating field exit through transaction CMOD.
    I hope this is suffice.
    Regs,
    Venkat Ramanan

  • Apex mixes applications working with two windows at the same time

    Hi all, while developing in Apex I have found the following problem:
    Working with two different applications at the same time, the browser goes from one to another indistinctly.
    To reproduce the problem:
    1. Open the same application builder in two different Firefox windows
    2. Open a different application in each window (In my case: application 103 in window1 and application 105 in window2)
    3. Go to shared components in both windows (window1 first)
    - window1 breadcrumbs show: Home > Application Builder > Application 103 > Shared Components
    - window2 breadcrumbs show: Home > Application Builder > Application 105 > Shared Components
    4. Click in any shared component in window1 (Templates, Authentication Schemes...)
    - window1 breadcrumbs show: Home > Application Builder > Application *105* > Shared Components > Templates (Application 105 instead of 103)
    Is it a bug? I have read the known issues [[Here]|http://www.oracle.com/technetwork/developer-tools/apex/downloads/apex402knownissues-189793.html] but it does not appear.
    Related Data:
    Application Express version 4.0.2.00.07
    Firefox 3.6.15
    SO: Windows XP
    The error is not reproduced with IE7. I have not tested any other browser.
    Regards,
    Molina

    If you tried opening up two pages in the same application each of which modifies the same page items, you would notice the same issue.
    This is because, in a session there is only one set of values for page items(or application items) and every parallel call to the same page would update the same bind variables.
    Now the development environment or Apex Builder is also an apex application , and when try and open up the pages as you mentioned, they both access the same Application Builder page and sets/resets any existing values for those variables(and maybe cookies too if they are being used) , hence the 'mixing up'.
    If that didn't convince you, check the URL of both the pages when you load them, they should show the same page number ( f?p=APP_ID:PAGE_NUMBER syntax). Imagine if the same approach was done with one of your application pages, say an edit form opened from a report with multiple records in multiple tabs like what happened with this case: {message:id=9346663}
    So this really isn't a bug in a way, because that is how session states in apex is/was maintained. Ofcourse if they used another kind of development platform for building pages, it may have been avoided, but thats an altogether different point in itself.

  • How to Work with Composite Primary Key

    Hi All,
    I'm working with Toplink JPA. Here I have A problem with inserting into database table which have composite Primary Key.
    What I'm doing is, I have two tables. to maintain many to many relation between these two tables I created another intermediate table which consists of foreign Keys (reference) of above two tables.
    Now these two foreign Keys in the Intermediate table made as composite Primary Keys.
    When I'm trying to the data in the Intermediate table I'm getting the foreign Keys values are null..
    could anyone suggest me how to work with composite Primary Keys
    Thanks,
    Satish

    I have the same problem, I have 3 tables with a join table joining them all. I have created an intermediate table entity. When I go to create a an entry, it says that I cannot enter null into "ID". Here is the SQl toplink generates:
    INSERT INTO Z_AUTH_USER_AUTHORIZATION (CONTEXT_ID, AUTHORIZATION_ID, USER_ID) VALUES (?, ?, ?)
    bind => [null, null, null]
    Here are the classes:
    -----------------------Join Table-----------------------------------------------
    @Entity()
    @Table(name = "Z_AUTH_USER_AUTHORIZATION")
    public class AuthUserAuthorization implements Serializable{
    @EmbeddedId
    private AuthUserAuthorizationPK compId;
    // bi-directional many-to-one association to AuthAuthorization
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "AUTHORIZATION_ID", referencedColumnName = "ID", nullable = false, insertable = false, updatable = false)
    private AuthAuthorization authAuthorization;
    // bi-directional many-to-one association to AuthContext
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "CONTEXT_ID", referencedColumnName = "ID", nullable = false, insertable = false, updatable = false)
    private AuthContext authContext;
    // bi-directional many-to-one association to AuthUser
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "USER_ID", referencedColumnName = "ID", nullable = false, insertable = false, updatable = false)
    private AuthUser authUser;
    ---------------------------------------User table--------------------------------------------------------------
    @Entity()
    @Table(name = "Z_AUTH_USER")
    public class AuthUser implements Serializable, IUser{
    @Id()
    @SequenceGenerator(name = "AUTH_USER_ID_SEQ", sequenceName = "Z_AUTH_USER_ID_SEQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AUTH_USER_ID_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 10)
    private Integer id;
    // bi-directional many-to-one association to AuthUserAuthorization
    @OneToMany(mappedBy = "authUser", fetch = FetchType.EAGER)
    private java.util.Set<AuthUserAuthorization> authUserAuthorizations;
    -----------------------------------Context table-----------------------------------------------------------------
    @Entity()
    @Table(name = "Z_AUTH_CONTEXT")
    public class AuthContext implements Serializable, IContext{
    @Id()
    @SequenceGenerator(name = "AUTH_CONTEXT_ID_SEQ", sequenceName = "Z_AUTH_CONTEXT_ID_SEQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AUTH_CONTEXT_ID_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 8)
    private Integer id;
    // bi-directional many-to-one association to AuthUserAuthorization
    @OneToMany(mappedBy = "authContext", fetch = FetchType.EAGER)
    private java.util.Set<AuthUserAuthorization> authUserAuthorizations;
    ----------------------------Authorization table-------------------------------------------------
    @Entity()
    @Table(name = "Z_AUTH_AUTHORIZATION")
    public class AuthAuthorization implements Serializable, IAuthorization{
    @Id()
    @SequenceGenerator(name = "AUTH_AUTHORIZATION_ID_SEQ", sequenceName = "Z_AUTH_AUTHORIZATION_ID_SEQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AUTH_AUTHORIZATION_ID_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 8)
    private Integer id;
    // bi-directional many-to-one association to AuthUserAuthorization
    @OneToMany(mappedBy = "authAuthorization", fetch = FetchType.EAGER)
    private java.util.Set<AuthUserAuthorization> authUserAuthorizations;
    I have tried to create the new entity several ways. I have tried to create one with the default constructor then set this entity on each of the other entities, I have also tried to pass in the entities to the join entity and set them there, but this doesn't work. Any help would be very appreciated!
    Thanks,
    Bill

  • How can I make two Canvas in one Window ?

    I want in the main window ( that is only window in the module ) press button to appear another canvas.
    but that I can't make it , I just made two window until the another window appear.
    that's all
    I tried with :-
    show_view('canvas_name');
    but didn't work with me Sad
    the another canvas made it stacked Canvas .... but also didn't work Sad
    so please , How can I make two Canvas in one Window only ?
    and thanks in advance

    this code work with me :-
    show_view('canvas name');
    go_block(block_name');
    execute_query;
    for HIDE button u have to write...
    hide_view('canvas_name');
    but
    that not exactly what I want ...... I want the stacked canvas appear like second window , and could control on it like window .... it could be possible ????

  • How do I sync two iPhones to one computer?

    How do I sync two iPhones to one computer?

    if you want to keep same content on both you can sync them to same itune account
    else create different itunes account for the other phone
    syncing with itunes
    http://support.apple.com/kb/HT1386

  • How do i get two ipods on one computer

    Ok How can I share songs with two ipods on one computer!!! Help PLEASE !!!!!!!!!1

    There are a couple of methods for using more than one iPod on a single computer. Have a look at the article linked below. Method one is to have two Windows accounts which by definition would give you two completely separate libraries. Method two is to set your preferences so each iPod is updated with only certain playlists within one library. Have a look anyway and see what you think and go for whichever you feel suits your needs best: How To Use Multiple iPods with One Computer

Maybe you are looking for

  • JTable - Help with column names and rowselection

    Hi, Is there anyone that can help me. I have successfully been able to load a JTable from an MS access database using vectors. I am now trying to find out how to hardcode the column names into the JTable as a string. Can anyone please also show me so

  • Error in uploading excel sheet data into internal table

    Dear all, i am facing problem when uploading data from excel. i used KD_GET_FILENAME_ON_F4.i select the file and pass on to ALSM_EXCEL_INTO_INTERNAL_TABLE.and i get the ERROR....   Illegal type when transferring an internal table to a FORM. this is m

  • How to use .mov from Mac in PowerPoint 14.2.5

    PowerPoint will not accept my .mov files from iTunes(or MacBook i7 desktop) .MOV files (originally recorded on my iPhone 4S) now on my MacBook i7 (MOS 10.7.5) desktop inserted into a PowerPoint (14.2.5) presentation do not work after the PowerPoint f

  • Photo Gallery shows error message when opening and closes right after it

    Hi, I have Photo Gallery installed on my computer and my photos are in an external hard drive. At the beginning worked well. But today I tried opening Photo Gallery and it shows an error only giving you the option to click "Accept". After you accept

  • Block contact

    My I block unknown contact on my Nokia lumia 510??? Suggestions please...