Article based on a block

Hi I have a block that is based on multiple tables, 4 in fact. I'm using Forms 10 g release 1 and oracle 10 g database.

The block is very slow because the query is cost based. When I run the same query with the indicator / * + rule * / query is fast enough. 4 minutes vs 400 milliseconds. Is there a way to tell the block I want to solve based?

When I founded the block on a view, I can specify the rule based indicator, but I can't have the block based on a view, because I'm not updating the block. The view is a bit complicated be updated. A view is editable if point of view have the primary key and the key to join foreing or something like that. In any case, I create the view and include the primary key and I can't update.

-Does anyone know how I can add the suspicion in a block-shaped?

Thank you

Hello

You can create a trigger before query that performs the following operations

set_block_property ('block_name', OPTIMIZER_HINT, 'RULE');

but as Francis, I'd look at why such poor plan the optimizer based on CSSTidy

Hope this helps

Neil

Tags: Oracle Development

Similar Questions

  • How to dynamically change values lov to an article based on the button

    Hello

    How to dynamically change the value list of an article based on the button create and apply the changes

    I have the column type of transaction that lov with values as inward, BACK inward outward, outward in the form based on the table...

    in design mode

    I need list to the OUTSIDE inward, in the type of transaction oly column...

    in update mode

    I need the list of BACK inward, BACK outwards in the type of transaction oly column...

    Kind regards

    Pavan

    Maybe something like that for a dynamic LOV

    select label d, label r from
      select 'inward' label  , 'create' chk from dual union all
      select 'outward'       , 'create'     from dual union all
      select 'inward return' , 'update'     from dual union all
      select 'outward return', 'update'     from dual
    )
    where (:P1_ID is null     and chk = 'create')
    or    (:P1_ID is not null and chk = 'update')
    
  • How do I delete an article based on the value of another field


    I have a pdf form that I added to the text fields. My challenge is that of the financial section of the form, if the value of a specific field is empty or null, I blank block of signature financial review.  I've been trying to find a way to cover the area of signature with a white box or have a text box with signature block text appear or disappear depending on whether the value is zero or empty.

    If seen many answers on how to make the field itself disappear based on value, but I did find something that causes another field or shape appear or disappear depending on the value of another field.

    Please try the following script,

    var signid = true;

    If (this.getField("finan").value! = 0) signid = true;

    of another signid = false;

    If (SignID) this.getField("signaturefield").display = display.visible;

    else this.getField("signaturefield").display = display.hidden;

    Please let me know if it solves the problem.

  • Conditional display of one article based on another value of element

    Hi all

    I have an element (say 'objects') with a static list of values. Depending on the value selected in this article, I needed another element of selection list to display.

    For example: 1st selection list item = items (Job, Name, ID)

    2nd selection list item tool = list of values for the selected object (list of names if 'Name' is selected in the 1st item in the selection list)

    So, for the 2nd selection list item should I create separate LOVs for each job, Name, ID?

    How can I achieve this?

    Please help me.

    Thanks in advance

    8f4692cc-040e-48EE-B102-590cdd4303fc wrote:

    Please update your forum profile with a real handle instead of '8f4692cc-040e-48ee-b102-590cdd4303fc '.

    I have an element (say 'objects') with a static list of values. Depending on the value selected in this article, I needed another element of selection list to display.

    For example: 1st selection list item = items (Job, Name, ID)

    2nd selection list item tool = list of values for the selected object (list of names if 'Name' is selected in the 1st item in the selection list)

    So, for the 2nd selection list item should I create separate LOVs for each job, Name, ID?

    How can I achieve this?

    Use the built in support of the LOV cascading by converting static LOVs in dynamic LOVs based on SQL queries:

    Question of LOV1:

    select 'Job' lov_label, 'JOB' lov_value from dual
    union all
    select 'Name', 'NAME' from dual
    union all
    select 'ID', 'ID' from dual
    

    Question of LOV2:

    select name lov_label, name_pk lov_value from names where :LOV1 = 'NAME'
    union all
    select job, job_pk from jobs where :LOV1 = 'JOB'
    union all
    select id, id_pk from ids where :LOV1 = 'ID' 
    
  • How to publish article based knowledge on the blackberry support forums

    Hello world

    I want to introduce the article knowledge base on the blackberry support forums I don't know how to do that I am new to blackerry support forums can we all know help me I enjoyed with as thank you...

    This page: Developer of BlackBerry

    .. has a link to this: Knowledge Base

    which explains everything:

  • dynamic action turns an article based on the result, and checks the database!

    I use Apex 4.1

    I do not know how to accomplish the following:
    If a pick list is changed, a function is checked and based on the results of a another field is disabled or enabled.

    I created a dynamic action (change) that executes a PL/SQL code, now I need to disable the other element.

    the problem is that I can't save the dynamic action because of the sign #.

    example:
    Start
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ('$('#P35_FT_00010_DOC_NO').attr ("readonly", "true")');
    HTP.p ("< /script >");
    end;

    I tried document.getElementById, but an error occurs also when I try to save.

    I think the wrong way?... Help, please

    1. create a step forward (not the simple/standard one) dynamic action.
    2. create initially unconditionally (the wizard will not let you take the PL/SQL expression as a condition but we will go back and change it later)
    3 assume that TRUE from your PL/SQL will lead to disable the item, then choose 'Disable' and the item you want to disable.
    4. Once created, go back in the DA and change the status of PL/SQL expression and put your PL/SQL in there (suppose you have a function returns boolean called MY_FUNC and TRUE to him means disable).
    5 copy the DA in its entirety to a new DA will be FALSE to activate the element.
    6. Once copied, go into the new DA and change the status of PL/SQL to NOT (my_func).
    7 change the REAL action of the DA to activate the element.

    So now you should have two similar DAs... one for when MY_FUNC is true and disables the element, a when "NOT (my_func)" is true and allows the element.

    If you do not disable, you can run javascript instead to set readonly. It seems that this is kind of what you tried to do, but you seem to use a jQuery selector, I suppose that (I did not recognize your syntax to off the bat)?

    Try to use the javascript API instead Apex:

    if ($v('P35_EN_DIS_DOC') == 1 )
      $x('P35_FT_00010_DOC_NO').readOnly='true';
    else
      $x('P35_FT_00010_DOC_NO').readOnly='';
    
  • How null out an article based on a column of data before posting?

    I use Apex 3.2

    I have a question that is based on the database column. My client wants me 'white out', the question which it is displayed so that the user will have to enter a new value instead of the one that is in the database.

    I tried to use a calculation "before the zone" to the element the value NULL. I can see the value prepares in debugging after extraction of the line took place, but when the item is displayed, it contains the value of the database, not my calculated valuie.

    I also tried using a field of text unsourced and then doing a submit after calculation to set the value of the element in a column of data from there, but no luck that way either.

    Also tried emptying the cache memory point, but I think it happens much too early.

    There must be a simple way to do...

    Any suggestion?

    No problem user486652 (name?).

    Yes, the $s function is one of the ApEx of built-in them - to see the ApEx documentation under the API, the Javascript API reference and you will find a variety of built-in functions that make all sorts of things. For Javascript, in general, take a look at www.w3schools.com for some really good reference material and tutorial - I use it constantly.

    OK, if you want to set the browser field to empty once the page loaded. Since it is an event of the page, it is not something that fires for a form field element, if you do not want the code here. ApEx 3.2, change the attributes of the page, and you will see a setting called "Attribute of HTML Body". You'll see a helpful note ball below the setting: this is the place to add onload events. The appropriate syntax will be:

    onload="$s('P2_REMEDY_TICKET', '');"
    

    Once the ApEx puts everything together and the rendering of the page, copy the following code will tell the browser to perform this $s function after the page load.

    But be aware - if you take a look at aid for that setting, you will see that it mentions that this will only work if your page template includes the #ONLOAD substitution string #. Do not know if all pages provided by ApEx models have already #ONLOAD #, but every one I've used. If your code still does not work, check your page tempate. In the area of definition, under header, you should see a body with something like tag:

    ...
    ...
    ...
    

    If it is, your page template supports the HTML Body attribute. If your body tag does not have a #ONLOAD #, add it.

    Hope this helps,
    John

    If you find this information useful, please indicate the 'useful' or 'correct' post so that others benefit. *

  • Want to fill in all fields in an article based on the Yes or no answer to a question from beginning

    I have a form of multi-page, several section I've created. Some of the sections start with a Yes or no question, if the answer is no, then all fields can be filled by n/a, which has a value of zero. I use the drop-down list in the fields and assign values for the Yes, no, N/A responds.

    Is there a way to set the values for all the fields in a s/o section, if the answer to the original question is no?

    Thank you

    MDawn

    HI Margaret,.

    I did not know that the Yes / No questions asked was in a group of radio buttons.

    In this case, I would put the script in the click event and instead to use xfa.event.newText (which relates to the change event), you must use the "this.rawValue" to test against the reaction of the users.

    If the click event is as follows:

    Switch (this.rawValue)

    {

    case 'Yes': / / or whatever you have linked a Yes response to

    TextField1.RawValue = "";

    textfield2. RawValue = "";

    case "No":

    TextField1.RawValue = "n/a";

    textfield2. RawValue = "n/a";

    }

    You can place this script in the click event of the Group of radio buttons, which will cover the two option buttons in the group. Don't forget to have the form to automatically save changes to script (file > properties > by default).

    Yes, "textfield1" is an example of an object in the subform you want to assign by n/a. If the user answers no, then N/A will appear in the part of the value of the object.

    Hope that helps,

    Niall

  • How to hide a link/article based on the condition

    Hi all

    I have three sections in my dashboard page; section two contains guest user has run before. The third section contains a link to run the report. I need hidden link, run the report that users fill out invites him and press the Go button. How can I achieve this?

    Well, here are a few tips to navigate in this forum...

    (1) If a person offers a suggestion, answer like "Yes, it worked" or "no, it didn't work," then explain how it did not work if possible (you have an error message?, unexpected results, etc.)

    (2) even if a solution maybe not exact, if you helped to give you a new insight or if someone has taken the time to develop a response that helps you understand your problem beter, you can and should provide "useful" points

    (3) if the answer solves your problem or validates what you thought, you can mark it as "correct" and recognize providers of solutions and advice. ("Thank you guys for your help," etc.)

    (4) finally close the message itself.

    This would encourage others to help you in the future when you ask your question. (It is possible to "Watch" a user and never answer their question once again, if the poster is rude or ungrateful.)

    My final advice is Kishore is among the largest AIDS in this forum, my recommendation would be not not to the flame of his comments (even slightly) because it is he who will decide whether he will help you again. Oh, and Kishore hosts this forum. With many others in this forum, there just provides solutions and tips, devoting his time and resources when he can. :)

    I hope this helps.

  • How to create a block of data to multiple tables

    If I try to use the wizard to create a new block of data and I choose to create it on a table or a view, the wizard asks me for the table create the form on. But if I want to create a form with two tables for example to join them, how can I do? Do I have to create a view on the database (very bad for me!) before joining the wtho tables can create the form to this point of view, or is it possible to create a form in two or more tables?

    Mark,
    Yes, you can base in fact of a block of shapes on a join of tables. Take a look at forms: how to build a block of data to a join of the table. You can also use a base query Clause From block. Basically, you base your block on a SQL statement. For more information on this option, take a look at forms: how to base a block on a FROM Clause query. Finally, you can also base your block on a procedure. This concept is illustrated in this article: forms: how a block of data based on a procedure.

    The fall down using one of these options, is that your block is not editable. If you need to update the data presented by these options, you should use the-Insert, triggers we set to and delete now write your own Insert/Update and Delete statements.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • Delete the record of the information block, which is a canvas with tabs

    Hello everyone I'm using Forms10G.
    I have 3 blocks 1) control block (all the buttons are there)
    (2) research Bllock (all research Articles are there)
    (3) block of details (which is a canvas with tabs and there are several tabs based on different tables)
    I have a button in the block of control named DELETE. When I press on delete button it should remove the registration of details blck.
    I gave to write Go_block(); Delete_record;
    But the block that I write? I mean there are so many tabs r it so how can I know that the current block and a particular record.

    disable the KEYBOARD WATERWAYS AND MOUSE WATERWAYS PROPERTY OF THE DELETE BUTTON BLOCK CONTROL

  • Can you permanently block a message to and from a person?

    I want to make it impossible for a person to send me a message and for me to send a message to this person. I want to permanently block this person for incoming and outgoing messages.

    This article should help

    Block calls and messages to block or filter on your iPhone, iPad or iPod touch - Apple Support

  • Screw vs Express SoftMotion function blocks

    Hello

    Are there differences between express screw SoftMotion function blocks? I intend to drive a servomotor through a NI 9505. Examples AND show how using function blocks, but I've been advised to use the screw Express instead, work around odd behavior when using a simulated axis (http://forums.ni.com/t5/LabVIEW/SoftMotion-quot-Update-Buffer-quot-VI-refuses-to-take-more/m-p/22508...

    Thank you!

    Hi JKSH,

    If I booted up a new application, I would use screw Express on function blocks. Here is a list of things to consider when choosing:

    1. By default, function blocks are asynchronous. They run on the rising edge of the entry "run" and are carried out when the output "done" is high. They do not block and function block architecture will almost always call the same function blocks again and again in a loop. You control the flow of execution with the 'run' and 'done' entry and exit. Screw Express, on the other hand, are synchronous by default. They don't have an entry not "run" and instead start running as soon as they are called. They block also until the end screw Express can be converted to asynchronous by right-clicking on them and by changing the "calendar model. When you change the calendar in asynchronous model, the Express VI will now act exactly like a function block.

    2. In general, you should never mix asynchronous and synchronous API. Your application should be one or the other. If it is possible to have safe synchronous and asynchronous calls, you must be very careful and really know what you're doing.

    3. To my experience, write simple applications is easier with a synchronous API, and more complex applications are better suited to an asynchronous API. Since blocking synchronous calls, you need more loops in your application and it can become difficult to maintain.

    4. There is also the property node / API call, on which are based the functional blocks and screw Express. You can do a right click on a function block or Express VI and convert it into a Subvi to see the underlying code. Then the function blocks and screw Express can be pleasant to work with, you must sometimes lower level control that is offered by the property and invoke nodes.

    I looked at your other post and it seems that you meet one of the intricacies of asynchronous calls. In point 1 above, I mentioned that function blocks increase sensitive edge on the execute line. In your modified sample and the original sample, the 'Update buffer' function block is executed when space becomes higher or equal to the "size of the Contour data. In the original example, the size of the table is 40, but in your example, it is 100. We will follow the stream through the example:

    1. We do nothing in the first round since we do not see a rising edge of the signal "run" "Initialize the buffer" until the second iteration.

    2. At the beginning of the second iteration, we initialize the table with 20 points, leaving 20 spaces available. This function block can take more than one iteration to complete, so that the loop can run several cycles before the release of "Done" is set to true. In this case, the next block runs.

    3. Then we start the move of contour. No point is taken in the buffer zone This occurs in the part of the user rather than the scan code.

    4. Then, we see that there are 20 spaces available, so we add more than 20 points to the buffer, leaving us with 0 beds available. This means that in the next iteration of the loop, the signal "run" function block 'Update buffer' will be false. This is essential to the functioning of the example.

    5. Since there is no abandonment called, we have a loop around back.

  • Each scan, SoftMotion takes a point in the buffer zone. Finally, the number of available points will be 20. When this happens, the entry "run" will switch from false to true on the 'Update buffer' function block and 20 points more will be added to the buffer. This cycle continues until you stop.
  • So, what was wrong with your changes? You did the size of the table 100 points. If you look at the steps above, you will see that in the example, we have 40 points in the buffer before taking points. If you increase the size of the table to 100, it means that there are 60 places available. However, 60 is always higher than the "size of data contours" (which is 20) and so the entry "run" function block 'Update buffer' will never wrong; We have always more available space than the "size of data contours. Since "run" is sensitive edge up, we are never really new data in the buffer, and so you get only two cycles that you initially put in. I agree that it is difficult, but it's exactly as function blocks are supposed to work and are certainly something to think about when you use the asynchronous API.

    Thank you

  • difficulties to find the blocker, I need to get into the aarp vita

    I am away from my wifi I have an another internet but pop up blockers prevent their impossible help of blockers fing the meeting happens

    Hello

    What exactly are you trying to accomplish?

    Please provide more specific information on the matter and correct error messages. This could help us help you better.

    The following articles contain information on Blocker:
    Internet Explorer Pop - Up Blocker: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/Internet-Explorer-pop-up-Blocker-frequently-asked-questions
    Internet Explorer Add-ons: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/Internet-Explorer-Add-ons-frequently-asked-questions

  • How to block Facebook for specific users by IP in NSA 4600 Sonicwall

    Hello

    I want to block facebook and youtube for some users in network using the IP of the user's computer or a MAC and allow other remaining users access facebook normally in Dell Sonicwall NSA 4600.

    Kindly guide me how it is possible in the firewall settings. Thank you

    Osama Aftab.

    You must configure the App control rules advance for block & FB access to specific users.

    Following article will give you heads upward.

    It is said in this article during the configurations block: activate & user/group of users Include: all THE (IE block FB for all users). You can use groups to exclude the user to authorize access to few IPs/users.

Maybe you are looking for

  • Startup - how can I prevent specific applications to open?

    For some reason, Spotify opens automatically whenever I start.  Don't know how to stop this from happening?  It's annoying to close it everytime I open the computer. It's probably something very simple, but I'm new to OS.  Thank you.

  • stripping of the channels

    I have a hexadecimal value of 3D and want to get rid of the 3 I tried to convert it into a U8 which did not work, anyone had any ideas on how I can do this. ??? Thanks in advance Thomas

  • How can I change an icon for example VLC on a miniature of the film

    Caused by a virus, I had to format my laptop, Media Inc to Dell Inspiron 17200 Windows Vista SP1 Home premium. All movies that are stored on a hard disk of ext WD and already showing a thumbnail image of the film have been replaced by a VLC icon. Als

  • Do not open the video file with the error "the file you download cannot open the default program".

    By double clicking on a file video I now get the following message "the file you download cannot open the default program" while previously he opened the file. This occurred after using Microsoft Fix - it for trial purposes, so what has changed. Orig

  • Applying the skin to the Section list

    Hi all, I'm new to actionscript, can someone explain to me how to apply the skin to my list of the section, I know how to apply the skin to list, bt, I try to apply the same logic to sectionlist fails,. I'm extends UISkin implements ICellRenderer to