Fill datablocks

Hi
I have 3 datablocks, one master table and two detail tables and I now need to only fill the master table when the program starts and fill the other two tables when the user clicks in them, this I have fixed just by comment out most of the code in trigger "ON-POPULATE-DETAILS" in the master table and run a "EXECUTE_QUERY" in the "WHEN-NEW-FORM-INSTANCE", all good. BUT now I need the master table and one of the detail tables to fill when the user presses the "EXECUTE_QUERY" button from the toolbar (the built in toolbar). Is there any whay to distinguish between a call to "EXECUTE_QUERY()" and a toolbar button press? Or is there anyther way to fill the master table without running the "EXECUTE_QUERY"?
/Viktor

You said "I now need to only fill the master table when the program starts and fill the other two tables when the user clicks in them, this I have fixed just by comment out most of the code in trigger "ON-POPULATE-DETAILS" in the master table" -- you can accomplish this more easily by setting the Deferred and the Automatic Query properties of the relation to Yes.
The toolbar Execute Query button uses the code:
do_key('execute_query');
So you can create a key-exeqry trigger and put in there what you want to happen when the user clicks the toolbar button.

Similar Messages

  • Problem filling a datablock . . .

    Hello guys,
    I have an important problem, which i can't face it. Therefore, i think that it is usual so i hope you can help me. I have a no database datablock with 4 records and 31 columns , which stores some final results. The code which is responsible for the fill of the datablock is the following :
    GO_RECORD(1);
         COPY( TO_CHAR(total_e), 'SUM_RES.C'||TO_CHAR(i));
    NEXT_RECORD;
         COPY( TO_CHAR(total_m), 'SUM_RES.C'||TO_CHAR(i));
         NEXT_RECORD;
         COPY( TO_CHAR(total_x), 'SUM_RES.C'||TO_CHAR(i));
         NEXT_RECORD;
         COPY( TO_CHAR(total_e + total_m + total_x), 'SUM_RES.C'||TO_CHAR(i));
    Unfortunately, only the first record is filled with the results of the LAST STATEMENT , which is COPY( TO_CHAR(total_e + total_m + total_x), 'SUM_RES.C'||TO_CHAR(i)); This is logical, while each statement deletes the contents of the same record and fill it with the new. My question is why the NEXT_RECORD is not executed.
    Any idea? What should i take care of?
    Thanx in advance,
    Bill Kepaptsoglou

    Francois ,
    the problem is not so simple unfortunately. This datablock must have update property set to yes, because at runtime it's values changes. To inform you better, i have a main datablock where i enter or change (alter) data and the results are being written in this datablock! So the datablock must have insert and update properties to no. But i don't want the user can change the results of this datablock. So to resume, i want to have a datablock which keeps some data that change at runtime, but without the user can write or alter the data of this datablock.
    I hope i was clear.
    Rgds,
    Bill...

  • [Oracle Forms 6i] : conflict properties between datablock and list item

    hi
    i have a datablock which contains a list item. my list item is filled programmatically.
    the user needs to be able to change the values in that list item.
    well the problem is that the user can't change the value in my list item when the property INSERT_ALLOWED of the data block is set to false.
    i need this property to be set to false, cause it disable the green button up on my form
    aparently when this property is set to false, i can't change the value of my list item
    help please !
    thx
    Dan

    I couldn't understand this portion
    'i need this property to be set to false, cause it disable the green button up on my form'
    Can you explain what exactly you mean by disabling the green button?

  • Problem in displaying a datablock... Urgent!

    hello guys, i have a serious problem to solve. It's urgent for me . First of all i have a datablock which contains some data from the database table mis_efhmeries. Now, i want to display in the screen 3 columns , 1 from the database (so i make the other columns of the datablock invisible) and 2 NO DATABASE ITEMS. By far , the things are ok. So to display the 2 other NO DATABASE ITEMS, i use a join of my DATABASE TABLE with 2 other tables, and so the displaying records are being reduced, because some elements of the main database table are not present in the other 2 tables, and so it takes me ora-01422 error, which says that: exact fetch returns more than requested number of rows.
    I attach to you below the code which has problem:
    go_block('manual_efhm');
    execute_query;
    efhms := get_block_property('manual_efhm', QUERY_HITS);
    FOR i IN 1..efhms LOOP
    GO_RECORD(i);
    SELECT TO_CHAR( mis_efhmeries.service*100000 + mis_efhmeries.sector*1000 + mis_efhmeries.department) || ' ' || departments.description
    INTO descr
    FROM mis_efhmeries, departments
    WHERE mis_efhmeries.service = departments.service
    AND mis_efhmeries.sector = departments.sector
    AND mis_efhmeries.department = departments.department
    AND mis_efhmeries.employee_id = :manual_efhm.employee_id;
    :tm := descr;
    END LOOP;
    I have to say that the table mis_efhmeries is the database table which is involved with the datablock, and the tables departments and mis_employee is the 2 tables from which i take the data to fill the NO DATABASE ITEMS. The table mis_efhmeries has for primary key the fields: employee_id,service,sector and departments, the table mis_employee has for primary key the employee_id, and the table departments has for primary key the fields service,sector and department. The table mis_efhmeries has some combinations of the fields service,sector , department, which ARE NOT PRESENT in the table departments, this is the main reason for displaying the error. What can i do? It's very important... I hope i was clear enough...
    Thanx in advance,
    Best regards,
    Bill...

    Try putting the SELECT statement in a POST-QUERY trigger on the block instead. This trigger fires once for every row returned by the main query.
    You may need to put an exception handler in the trigger to handle the NO_DATA_FOUND exception in the case where some elements of the main database table are not present in the other 2 tables.
    If you still get the message that the query returns too many rows, then evaluate the SELECT statement to see if it would return more than one row for some records. A SELECT INTO must return only one row or you will get this error.

  • Set Filters in Datablocks

    Hello guys,
    I would like to learn if i can use filters in forms builder, in order to filter the data of a datablock. To be more specific, i have a datablock which is filled with some data from a select statement. And i want to filter it's data.
    I think that is useful to mention at this point, that i used filters in my Powerbuilder application where i had the following statement:
    dw_argies.SetFilter('(month(date(argia))='+string(month(date(d)))+') and (year(date(argia))='+string(year(date(d)))+')');
    dw_argies.Filter();
    where dw_argies is a datawindow which has data.
    I hope i was clear in what i am asking...
    Thanx in advance,
    Regards,
    Bill...

    You can achieve something similar by setting the default_where clause in your block and then executing the query. There are of course many ways to do this, but the common theme will be the SET_BLOCK_PROPERTY('my_block_name',DEFAULT_WHERE,'column_name = value') and an EXECUTE_QUERY right after it. An example would be using a poplist with allowable values and setting the DEALT_WHERE in the WHEN-LIST-CHANGED trigger and then executing the query on the block.
    Richard

  • ADOBE CLOUD ON MY DESKTOP WILL NOT WORK. IT LOADS UP BUT NOTHING FILLS THE WINDOW

    ADOBE CLOUD ON MY DESKTOP WILL NOT WORK. IT LOADS UP BUT NOTHING FILLS THE WINDOW

    BLANK Cloud Screen http://forums.adobe.com/message/5484303 may help
    -and step by step http://forums.adobe.com/thread/1440508?tstart=0
    -and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html

  • How to add fields to already loaded cube or dso and how to fill records in

    how to add fields to already loaded cube or dso and how to fill  it.can any one tell me the critical issues in data loading process..?

    This is sensitive task with regards to large volumes of data in infoproviders.
    The issue is to reload of data in case of adjusted structures of infoproviders.
    Indeed there are some tricks. See following:
    http://weblogs.sdn.sap.com/cs/blank/view/wlg/19300
    https://service.sap.com/sap/support/notes/1287382

  • I am trying to create a form in acrobat pro 8 and it can't be filled in in reader 9

    When I open the form in reader, it says it is a pdf/a file.and the form fields do not show up unless I go to edit/preferences in reader and tell it to never view documents in pfd/a mode.  I am putting this document on my website for users to fill out, and don't want them to have to do that.  How do I create the form that is not a pdf/a document?  I have been messing around with this for a day and have not been successfull.  I have an old document from last year that apparently is not a pdf/a document and it works fine.  I cannot make this year's document open correctly in reader 9.  http://www.houseofsweden.us/docs/DecNightsSignUps2009.pdf  This is a very simple form created from a word document.

    When originally creating the pdf, you would need to choose another pdf conversion setting. In Word if you use the pdf menu, change your settings there: Adobe PDF > Change Conversion Settings. I would use High Quality Print instead. If you use the File > Print method, click the Properties button next to the Adobe PDF printer selection.
    For your already created form, you can change the file so your users will not encounter issues. In Acrobat 9, which hopefully is similar in process to 8: Advanced > Preflight > Profile tab > PDF/A compliance > Remove PDF/A information.(You'll have to unsecure your form first).
    You can read about PDF/A files in the Help.

  • 0FI-CA module, cube 0FC_C08 & 0FC_C09 dataflow? question abt filling tables

    Hello all,
    We are currently working on BI7.0 and ERP6.0. I am trying to understand the data flow for these two cubes 0FC_C08 and 0FC_C09.
    When I see the data flow in BW, I see there is an infosource 0FC_BP_ITEMS, which feeds to DSO 0FC_DS05 which feeds to DSO's 0FC_DS06 (Open Items) and 0FC_DS07 (Cleared Items) which feed to 0FC_C08 and (Open items) and 0FC_C09 (Cleared items).
    0FC_BP_ITEMS -> 0FC_DS05 -> 0FC_DS06 and 0FC_DS07 -> 0FC_C08 and 0FC_C09...
    Now what I am looking for is what do these two datasources feed to ?
    0FC_CI_01    FICA Cleared Items for Interval
    0FC_OP_01  FI-CA Open Items at Key Date
    Also I have another question like:
    1.      Run tcode FPBW that fills data to table DFKKOPBW, and then you will see data in RSA6 for datasource 0FC_OP_01.
    2.     Run tcode FPCIBW that fills data to table DFKKCIBW, and then you will see data in RSA6 for datasource 0FC_CI_01.
    My question is do we have to do this on periodic basis or do we have to do it every time before we run infopackage to load data in BW? What are the key dates or date interval we can use for those two tcodes?
    Please anyone who has worked on it can give some ideas
    Thanks all for your help in advance.
    Kiran
    Edited by: Kiran Mehendale on May 16, 2008 4:40 PM

    0FC_CI_01 FICA Cleared Items for Interval
    --This Data Source will feed InfoCube: 0PSCD_C01
    and
    0FC_OP_01 FI-CA Open Items at Key Date
    --This Datasource will feed infoCube: InfoCube: 0PSCD_C02
    http://help.sap.com/saphelp_nw70/helpdata/EN/41/3d30113dfe6410e10000000a114b54/frameset.htm
    From this link you will be able to check out the data sources as well as any information on the infocubes.
    hope this helps.
    Matt

  • I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    What file format did you export it to?

  • How do I add an e-mail address and capability to send a fill-in pdf file

    I have Adobe Acrobat 8.1.2 on my PowerMac G4 running OS 10.4.11. I created some pdf forms which have the fill in capability and posted them on my web site. I want to be able to allow someone to click on a button to automatically send the file to my e-mail address. Is that possible if someone is just using Acrobat Reader on a Windows or Apple machine. I see that one cannot "save" the filled in document but they can "print" the filled in document or print a blank (not filled in version). If they could actually save the filled in document that would be just as good because they could attach it to an e-mail. So, is there a way to create a button to e-mail the filled in form to my e-mail address when someone completes it or a way to save the filled in copy as a file (so they can do that with just Acrobat Reader)? Thanks so much for any info.
    Barry

    >If they could actually save the filled in document that would be just as good because they could attach it to an e-mail
    In Acrobat Pro, open the form and go to the Advanced menu and choose enable usage rights for Reader users.
    Now, they will be able to fill out the form and save it to send it back to you in an email.
    Be aware that there is a 500 use per form limit so this isn't a good answer for high volume use forms.

  • How do I add multiple fills more accordingly?

    I sometimes like to add a little more depth into my drawings than having single paths be of a single fill. In the illustration below, for example, I have two balls drawn.
    The first was made the way I was taught. A stroke and fill - all consisting of one path. The second, I tried something different to help show more depth, but it consists of three paths. A black stroke with no fill, a dark red fill with no stroke, and a background red fill with no stroke. The first way was easier since I could add a stroke and fill to the same path, but I can't capture more details that way if extra colors touch the stroke. And if I were add paths on top of an object, then I would have to be too percise so they don't overlap the stroke. This second way, I at least have a stroke to draw behind.
    Is this making sense to people? I want check here to see if there's an easier way to do this. Making an object that only consists of an outline and not a fills doesn't seem right if it is meant to include a fill. Any help?

    bleduc,
    To have multiple fills that way you need multiple paths. You may:
    1) Create the basic (circular) path with no stroke and Ctrl/Cmd+C+F to make a copy in front;
    2) Create the partially overlapping path with no stroke;
    3) Select the copy path from 1) and the path from 2) and Pathfinder>Intersect (depending on version you may need to hold Alt/Option) to create the top path;
    4) Group 1) and 3) and in the Appearance palette tick to select Group, then in the flyout tick Make New Stroke and drag it down below Contents and apply twice the Stroke Weight you want visible.
    If you have corresponding multiple sets in the same Layer, you may apply the new stroke to the layer.

  • How can I create a new worksheet every time that one cell it´s filled

    I was looking in the references formulas and I find the formula "Direcction".
    My goal it´s to create a new worksheet everytime that some cells are filled.
    So I need one formula that alows me to put this reference and open automaticaly a new worksheet and this new table inside of this worksheet.
    It is clair the question?
    Someone can help me wiht that?

    Hi Wayne, Not really, the smaller table it´s not really important, I was trying to do the new sheet with it in that case.
    What I want is to use the dates in the row with the items markeds to create a new worksheet.
    I made an example donw here.
    I have the first table, than from it, I want to do 4 new tables
    I mean, everytime that I finish with one column I want to have a new table (in a new work sheet) with that items markeds.
    Do you think that script it´s possible to solve this?
    How can I do it?

  • Is there a way to create a PDF form that ANYONE can fill out and SAVE with their content?

    Is there a way to create a PDF form that ANYONE can fill out and SAVE with their content? By anyone, I mean someone who can download and use the free Adobe Reader, on either a Mac or PC. I have Acrobat Pro, and would like to be able to create forms that can not only be filled out and printed, but saved and emailed, which is not an option with the forms I have created to date. They can be filled out, but not saved, with Adobe Reader.
    TIA,
    Nancy

    To do what Dave indicated you need to do, it depends on what version of Acrobat you have:
    Acrobat 8: Advanced > Enable Usage Rights in Adobe Reader
    Acrobat 9: Advanced > Extend Features in Adobe Reader
    Acrobat 10: File > Save As > Reader Extended PDF > Enable Additional Features
    Acrobat 11: File > Save as Other > Reader Extended PDF > Enable More Tools (includes form fill-in & save)
    I wonder what it will be next time?

  • Is there a way to create a table in powerpoint and allow the users to fill in answers?

    My beekeeping group wants a table layout question with dates, and the user would have to fill in the numbers after each day.
    Date
    Answer
    June 1
    insert drone fram
    June 5
    Check drone frame for mites
    June 9f
    Pull frame and freeze it to kill mites

    You'll have to create it in Captivate, importing ppt-slides just turns them into movie slides.

Maybe you are looking for

  • File adapter not activating

    Hi. I have a frustrating problem. I set up a sender file adapter.However even after activating the adapter it does not show up in the adapter monitor.I can see a entry for file but no lights(Green or Red).The XI file adapter service is activated in t

  • TS3694 how can i fix an apple support error 2 issue

    my computer lets me install itunes however it say i cant run it because i need apple app support. how can i fix this error?

  • How do I manage my websites from my Azure trial?

    A long time ago, I signed up for the azure trial that came with 10 free asp.net web sites (http://azure.microsoft.com/en-us/develop/net/aspnet/). I only tried it with a single site, but it worked well enough that I had eventually planned to use it fo

  • Patch Guide for EP6

    Hi, I have just migrated from EP5 to EP6 version 6.0.2.4.1 Portal_Service_Pack_2. I have downloaded patch 33 for (Portal,Sapinst,J2EE) Where can I find documentation relating to the patch sequence and can I go directly to this patch level. Kind regar

  • DB13 jobs doesn't work anymore

    Hi all, we have the folowing problem : our D01(it is an ERP-system) was separate installed on two different servers (application server (was srv056) and database(srd455) were separate installed). Three weeks ago we have moved them both(the applicatio