Creation of Plugin - try to extend the plugin level element to display the region

Hello

I have a fairly complex task - I've created a plugin to a type element.
The element is rendered with a button attached to it.

Goal - button trigger a dialogue area (it should open in a modal window with a click of a button).
It should work similar to a field "Date Picker", which opens a calendar with a click.

I added my point original plugin code, which requires to create a dialog box, and now, I get an error:
PLS-00306: wrong number or types of arguments in the call to 'RENDER_DESCRIPTION_ML' ORA-06550

Here is my code:
function render_description_ml (p_item in apex_plugin.t_page_item,
 
                    p_region  in apex_plugin.t_region,
                                        
                                p_plugin in apex_plugin.t_plugin,
                                p_value in varchar2,
                                p_is_readonly in boolean,
                                p_is_printer_friendly in boolean )

 return apex_plugin.t_page_item_render_result

 is
  l_ok_label         apex_appl_plugins.attribute_01%type := nvl(p_plugin.attribute_01, 'Ok');
  l_cancel_label     apex_appl_plugins.attribute_02%type := nvl(p_plugin.attribute_02, 'Cancel');
  l_title            apex_application_page_regions.attribute_01%type := nvl(p_region.attribute_01, p_region.name);
  l_width            apex_application_page_regions.attribute_02%type := p_region.attribute_02;
  l_auto_open        apex_application_page_regions.attribute_03%type := nvl(p_region.attribute_03, 'N');
  l_show_cancel      apex_application_page_regions.attribute_04%type := nvl(p_region.attribute_04, 'Y');
  l_trigger_elements apex_application_page_regions.attribute_05%type := p_region.attribute_05;
  l_onload           varchar2(4000);
  
 l_result apex_plugin.t_page_item_render_result;
 
begin

-- item --

sys.htp.p('<input type="text" id="'||p_item.name||'" name="'||p_item.name||'" class="text_field" style="width:250px"><span class="ie_fix" style="margin:0 0 -5px 25px">
<a style="text-decoration:none" href="#">
<button id="SHOW_DIALOG1" type="button" class="button-gray" /><span>Add/Edit</span></button>
</a>
</span>');

-- dialog --

apex_css.
   add_file(
    p_name       => 'jquery.ui.button',
    p_directory  => apex_application.g_image_prefix || 'libraries/jquery-ui/1.8/themes/base/',
    p_version    => null
  );
  --
  -- Include the jQuery-UI Button JavaScript as it is not included by APEX as a default.
  --
  apex_javascript.
   add_library(
    p_name       => 'jquery.ui.button.min',
    p_directory  => apex_application.g_image_prefix || 'libraries/jquery-ui/1.8/ui/minified/',
    p_version    => null
  );

  l_onload := 'apex.jQuery("#' ||
    p_region.static_id ||
    '").dialog({' ||
    apex_javascript.add_attribute('autoOpen', (l_auto_open = 'Y')) ||
    apex_javascript.add_attribute('modal', true) ||
    apex_javascript.add_attribute('title', l_title) ||
    apex_javascript.add_attribute('width', to_number(l_width)) ||
    'buttons:{' || '"' || l_ok_label || '":function(){apex.jQuery(this).trigger("dialogregion_ok");$(this).dialog("close");}';
  if l_show_cancel = 'Y'
  then
    l_onload := l_onload || ',"' || l_cancel_label || '":function(){$(this).dialog("close");}';
  end if;
  l_onload := l_onload || '}';
  l_onload := l_onload || ',open:function(){apex.jQuery(this).trigger("dialogregion_open");}';
  l_onload := l_onload || '}).closest("div.ui-dialog").appendTo("form#wwvFlowForm");';
  apex_javascript.add_onload_code(p_code => l_onload);
  if l_trigger_elements is not null
  then
    apex_javascript.
     add_onload_code(
      p_code => 'apex.jQuery("' ||
               l_trigger_elements ||
               '").click(function(event) {' ||
               'apex.jQuery("#' ||
               p_region.static_id ||
               '").dialog("open");' ||
               'event.preventDefault();' ||
               'return false;' ||
               '});'
    );
  end if;
  ---
return l_result;
end render_description_ml;
Where I did wrong, please?
Thank you very much for the review!

I think that your signature of the function is not going...

What is your PLUGIN type... agenda or the region?

If you create an element that displays the dialog box, you must create a plugin to POINT and then simply open the dialog box on the fly

It should not create a plugin in the region, because control ARTICLE

Functions of rendering plugin point Type must implement the following interface:

function  (
    p_item                in apex_plugin.t_page_item,
    p_plugin              in apex_plugin.t_plugin,
    p_value               in varchar2,
    p_is_readonly         in boolean,
    p_is_printer_friendly in boolean )
    return apex_plugin.t_page_item_render_result

Watch this http://www.apex-plugin.com/oracle-apex-plugins/odtug-competition/combobox_208.html which opens a dialog box

Tags: Database

Similar Questions

  • Impossible to extend the existing wi - fi with time capsule airport

    Hello

    I have one Capsule of airport TB 2 hung on an Ethernet in my study (lower level).

    I already have an existing wi - fi network to ISP modem/router to my media box provided at the top level.

    In addition, I have an Extender provided by the ISP of lower level.

    I would try to expand the scope of the wi - fi with my time capsule without creating an additional network.

    I tried several times to do so, but either it freezes up or creates its own network despite the

    mode bridge as stated in Airport utility.

    Guide gently with the method or Protocol correct to put that in place.

    Thank you

    Jay

    I would try to expand the scope of the wi - fi with my time capsule without creating an additional network.

    It sounds like you may try to extend the network of your "main" router wireless

    The time Capsule will not be able to extend wireless network if your 'main' router is also an Apple AirPort base station.  Or... in other words if your 'main' router is not an Apple product, then the time Capsule will not be able to extend wireless network.

    So, the first question to ask here would be... What is the number of brand and model of your router "main"?

    If you intend to leave the time Capsule connected to your main router with an Ethernet connection, the Capsule must have the maximum value of "create a wireless network.  If you use the same wireless network name and password using your 'main' router, Time Capsule will provide additional wireless coverage in the area where it is located.

  • Extend the 'footage' imported PSD layers

    I imported a layered Photoshop file into After Effects as a model in layers with several layers of "footage".psd:

    Screen Shot 2016-06-27 at 1.23.33 PM.png

    I have created and edited the comps in the 20 main comp with animations and effects. Now, I need to extend the .psd layers (all 7 s ~) to the length of the main comp(20s).

    I tried dragging to extend their regions and right click > time > enable time Remapping(this allows me to extend the region with keyframes, but the content still ends proportionally short of the containing comp duration).

    When I right click on the layer of .psd and click on 'Open Source layer', the preview displays the duration of the layer extending at once as it shows in the timeline(~7s)...

    icZAR.png

    but green "render bar" only goes to 5s. And no content is visible while the playhead is at 6s, below...

    sWEMD.png

    This is also when I drag the playhead in the timeline main comp - layers with this problem disappear to 5s, even if their areas extend to 7s.

    1. I need to get these parts of layer to increase the length of my 20 years comp.

    2 it seems that the source of the layer is 5 s when I "Open Source layer", then even if the region is currently being extended to 7 s ~, 'content' only goes to 5s.

    How can I extend it to 20 seconds without doing all my images keys/animations/effects all over again?

    Or is there a way to re - import only the layers to lasting longer, but keep all my keys/animations/effects images.

    Using the latest Photoshop CC 2015.5 v2015.3 & after effects CC.

    Thank you!

    Sure sskaz is on, check if there is a timeline attached to your psd in Photoshop and delete it:

    You can also freeze your layers in After Effects and make more time

  • Resize the content of the region to fill the entire region

    I would like to create a layout container which has some of the characteristics of "BorderPane", but without exposing the methods of BorderPane (e.g. setCenter).

    I think that this is to extend the "Region" and set a BorderPane as his child:

    
        class MyPane extends Region {
          private val borderPane = new BorderPane
          borderPane setCenter foo
          getChildren add borderPane
    }
    
    

    The problem is that now the BorderPane will not be resized to fill the region. Is there a way to achieve this?

    It work?

    borderPane.setLayoutX(0);
    borderPane.setLayoutY(0);
    borderPane.minWidthProperty().bind(widthProperty());
    borderPane.minHeightProperty().bind(heightProperty());
    
  • How to view point over the region of report?

    I have a page with several regions and a report region must be to display "Page Template body (2. (Les éléments ci-dessous le contenu de la région) ". but this point of the screen does not allow me to place a selection over this area report list. There is another point of view "Page Template Body (3. Items above content area)"that allows elements to display above region, but this point of display for the region of report changes the layout of the entire page. is it possible to set a different point of view as the "body of Page Template (2.» Items above content area)"which allows the elements to display above the region without changing the position of the region report?. any ideas are appreciated.

    Here is the test page...
    http://Apex.Oracle.com/pls/OTN/f?p=54577:12

    workspace: stone
    username:[email protected]
    password: apex_demo

    Thanks for your help,
    Surya

    Dene/Surya

    I must have missed something here... the page on the link specified
    http://Apex.Oracle.com/pls/OTN/f?p=54577:12
    has only one region.
    If there is only one region, is it important?

    But, Yes, if there is more of a region, and other areas have been set to display in the post "body model 2' only this particular region has been configured to display on the page 'page 3 model body', then Yes, this region would be displayed below the rest. (in descending order)

    Surya,

    Unless you want to have other areas to display items 'below', the fastest and easiest is to change all your other regions to set to display to the "model of the body 3' page and then check the position that you want by using the display sequence."

    In case you really need to have other areas to see the items below (depending on what you have on the page), you could possibly get away with the following:
    have all regions you want dispalyed before you particular region with the point on the top set to display to the position 'body 2' model '.
    have the area you want to display with the above items exposed to the "body 3' model '.
    have the rest of the regions you want dispalyed below this region to 'position of model of region 4' page

    I hope this helps.

    Alex.

  • Just recently, I receive the following error message when you try to access the web sites. I get a pop-up window indicating "Exc in ev handl: TypeError: c.location is null" then I have to click ok. There is a problem with some plugin?

    Just recently, I receive the following error message when you try to access the web sites. I use Firefox browser version 10.0.2. I get a pop-up window indicating "Exc in ev handl: TypeError: c.location is null" as the web site page is displayed in the browser winder. So, I have to click ok. Any link/website I go to what happens. There is a problem with some plugin?

    It is only a problem for the SiteAdvisor users who are still on 3.4. This problem is resolved in the latest version of SiteAdvisor, which is 3.4.1.195. Go to http://siteadvisor.com and click on download. This will fix the problem.

    Meanwhile, SiteAdvisor team will push down a JS update in the coming days 1-2 to automatically resolve this problem in version 3.4.

  • Resources does not get generated during the creation of plugin for the release/debug version of CC 2015

    I'm trying to generate a plugin release/debug for 2015 of CC using the SDK version 11.2, the build succeeds with the message below:


    merge_res.cmd done.

    1 > removal of old resources...

    1 > not found \*.idrc C:\Users\CS\Documents\GitHub\CS-DTP\IndesignPlugin\CSDTPObserverPlugin\build\releasex64\ (CSDTPObserverPlugin.sdk, resources)

    1 > 0 or the files copied

    1 > create library...... \.. \build\win\objRx64\CSDTPObserverPlugin/CSDTPObserverPlugin.lib and object...... \.. \build\win\objRx64\CSDTPObserverPlugin/CSDTPObserverPlugin.exp

    1 > CSDTPObserverPlugin.vcxproj-> C:\Users\CS\Documents\GitHub\CS-DTP\IndesignPlugin\CSDTPObserverPlugin\build\releasex64\C SDTPObserverPlugin.sdk.pln

    1 > restore_res.cmd done.

    = All build: 1 succeeded, 0 failed, 0 skipped =.


    When you try to load the plugin in InDesign, I get below error:

    "CSDTPOBSERVERPLUGIN. SOFTWARE DEVELOPMENT KIT. PLN"plug-in is missing plugin resources or the model/UI attribute is not specified in the PlugIn Version resource!





    Could you please check the .fr file included in the project is set up correctly to compile and the compilation is successful with success for this file. You can quickly verify this by right-clicking on the file in VS .fr and check if the compilation shown option is indeed active and clicking Treaty the file successfully. If all this is correct, then the next step is to check the output created by this compilation, the path of the compiled files and the command-line merge_res.

    Hope this helps you

    -Manan

  • I try to add the Youtube widget, but I get a plugin saying blocked black box. I even tried to incorporate both YouTube and it does the same thing. But when I drag the widget Vimeo more, it connects properly. What I am doing wrong and

    I try to add the Youtube widget, but I get a plugin saying blocked black box. I even tried to incorporate both YouTube and it does the same thing. But when I drag the widget Vimeo more, it connects properly. What I am doing wrong and how can I solve this problem?

    Make sure that the web browser you are using and its Flash plug-in is up-to-date. Google Chrome has its own plug-in Flash, it updates on its own. Firefox, IE and others have separate plug-ins.

  • How to extend the existing plugin

    Hello

    I want to create a plugin for my Web application running in Tomcat 6.  Ideally, I could just extend the tomcat plugin to add my metric webapp / JMX port and then see it under my current Tomcat server that Hyperic is already followed.

    does anyone know how to do this?  I'd rather not have 2 different versions of the same tomcat server, and I prefer not to lose the hierarchy of the system.

    Thank you
    Doug

    Hi Doug,.

    The best way to do it is not to change the tomcat plugin, but instead of writing your own plugin that defines a service like as follows:


    ......
    ......

    This will make your children services of the server type "Apache Tomcat 6.0". There are some examples of plugins in the samples directory. Even if they are not specific to Tomcat 6.0 they show you examples of how to add your own service to an existing server.

  • permanently delete messages "additional plugins are required to display all the media on this page.

    Delete message "additional plugins are required to display all the media on this page" permanently. I have no use for ANY Adobe product, either. None are allowed on my network, period. I'm tired of this message. The absence of the FLASH plugin is what triggers it. However, the absence of the plugin is a good thing and that the plugin is totally unnecessary and absolutely not desired.

    You can inspect and change this pref on the subject: config page.

    • the pref plugins.hide_infobar_for_missing_plugin true value
  • After you download El Capitan, I received the following error message when you try to install: the drive is not formatted in MAC OS extended (journaled). Use disk utility to enable logging or reformat the disc. Can anyone help?

    After you download El Capitan, I received the following error message when you try to install: the drive is not formatted in MAC OS extended (journaled). Use disk utility to enable logging or reformat the disc. Can anyone help? (My disk utility shows that she in MAC OS extended (journaled) format.)

    It shows that it is Mac OS extended, not journaled. Click enable logging in the toolbar.

    The thing you read is if you format the drive using the RAID settings you have selected. You have to look at the bottom of the window where it shows the Format.

  • Media center immediately crashes when I try to add the extender for the Xbox 360

    I am running Windows 7 Home Premium.  I try to add the extender for the Xbox 360 to Windows Media Center. When I go to Media Center tasks and add an Extender, Media Center crashes immediately after I enter my Xbox console 8-digit code and click Next.  I have disabled the firewall of the router and firewall windows without success.  Restart the computer and the Xbox has not helped either.  Any suggestions that I can not yet put in place the Extender?

    Thank you.

    Hi Eric,.

    Thanks for posting your query in Microsoft Community Forum!

    According to the description of the problem, it seems that you have trouble connecting Xbox 360 extender for Windows Media Center.

    I will certainly help you with this issue.

    Here are some methods that you can try in order to solve the problem.

    Method 1: Disable the antivirus software and make sure.

    http://Windows.Microsoft.com/en-us/Windows7/disable-antivirus-software

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 2: Clear the Xbox 360 console system cache and check.

    http://support.Microsoft.com/kb/971755

    Method 3: Reconnect to Windows Media Center

    In the event that something happened to your connection, try to disconnect and reconnect to your Windows Media Center computer.

    To disconnect and reconnect to Windows Media Center:

    a. in the Xbox Dashboard, go to My Xbox and open Control Panel.
    b. Select computers, Windows Media Center.
    c. Select Disconnect.
    d. Select the installation program and follow the instructions on the screen to complete the Media Center Windows Installer.

    For more information, see the articles.

    www.Microsoft.com/Extender/Help

    Here is a demo for an Xbox 360 as an Extender for Windows Media Center unit setting http://Windows.Microsoft.com/en-us/Windows7/set-up-a-Windows-Media-Center-Extender
    http://www.Microsoft.com/Windows/Windows-Media-Center/learn-more/Extenders/help/Extenders-firewalls.aspx

    Tips for solving problems with Windows Media Center Extender Setup

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-solving-Setup-problems-with-Windows-Media-Center-Extenders

    If the problem persists, or you have questions about Windows, do not hesitate to let us know. We will be happy to help you.

  • Try to find the extended ICA if I use a graph on a t shirt, anyone know?

    Try to find the extended ICA if I use a graph on a t shirt, anyone know?

    Hello

    In the FAQ - Adobe Stock helps | Frequently asked questions

    Adobe Stock offers licenses allowing licensees to sell products or services based on an image?

    At the moment, Adobe Stock only provides standard licenses, allowing the licensee to use the images only for illustration purposes.

    Licenses are available via Fotolia - sizes and licenses

    ~ David

  • Try to get the slide show gadget extend in the background as a banner or a footer, can someone help me with this?

    Try to get the slide show gadget extend in the background as a banner or a footer, can someone help me with this?

    You can use the full width slide show on master so it would show in the background of the page.

    Thank you

    Sanjit

  • I run pc photoshop CS6 on my windows 7 (mac). I have stupidly? the Applications Adobe Manager to update all my Adobe apps. Since that time I now get the following error message when you try to create the Contact Sheet II in my SP6 or 64 PS5.5

    Greetings


    I run Photoshop CS6 on my windows 7 Ultimate (MacPro 2008 via Bootcamp). 12 GB of ram, 512 on the video card. A lot of disk space. None of the questions of knowledge, viruses, malware, etc.


    I have stupidly? the Applications Adobe Manager to update all my Adobe apps. Since that time I now get the following error message when you try to create the Contact Sheet II in any of my SP6 or PS5.5 64-bit or 32-bit versions. «Cold is not complete the plug of command because Photoshop was unable to locate the plugin JavaScript» Re, I installed the latest update, but no change. My installation is built on CS4 extended, then with a version Standard 5, 5.5 and 6 facilities upgrade.


    The Contact Sheet function was working well, until I ran the updates.


    I'm in a bad place, as I am in the middle of multiple projects, everything I need to create Contacts for.  I thank any help or give advice on how to fix this...


    Help, please!

    Try to run Photoshop with the SHIFT key is pressed and skip loading part tird plug-in and try to use the Board contact II.  A version of plug-ins from third parties have been known to break Photoshop Scrippting.

Maybe you are looking for