Apex plugins - how to reference the attributes in external javascript plugin?

Hello

I created a plugin for item-level.
It works very well, however I have faced with a new problem - I need to make reference to attributes in the external javascript code of the plugin.

Here's some of my Javascript:
function boxesCheck(){
 var itemName = "P" + getAPexVariable("APP_PAGE_ID") + "_DESCRIPTION_ML";  
 var vResult = "";
 
 if(document.wwv_flow.f30.length>0){
   for (var i = 0; i<document.wwv_flow.f30.length; i++) {
       document.wwv_flow.f30.checked=true; 
     
vResult = vResult + '[' + $.trim(document.wwv_flow.f32[i].value) + '|' + $.trim(document.wwv_flow.f33[i].value) + ']';
     
}
}else{
document.wwv_flow.f30.checked=true;
vResult = '[' + $.trim(document.wwv_flow.f32.value) + '|' + $.trim(document.wwv_flow.f33.value) + ']';
     
}
     
$x(itemName).value = vResult;

apex.submit();
}

function addRow_new(){
$('#report-standard1').append('<tr class="highlight-row1"><td class="data" headers="CHECK$01"><input type="checkbox" name="f30" value="1" onclick="highlight_row1(this,1)" id="f30_1" /></td><td class="data" headers="LANG"><input type="text" name="f32" size="80" maxlength="100" value="" style="width:85px" size="12" id="f32_1" /></td><td class="data" headers="DESCRIPTION"><input type="text" name="f33" size="80" maxlength="100" value="" style="width:345px" size="46" id="f33_1" /></td></tr>');

}


In the above code 2 values has to be substituted by plugin's attributes:
1st function: var itemName has to receive the plugin's Item Name.
2nd function: #report-standard1 has to be substituted by plugin attribute.

How to do it please?
Thank you!

Hi Sloger,

Modify your function to accept two parameters, something like this

function boxesCheck(pParam1,pParam1){
//and use them as required within the function
...
.
.

How you call this function of boxesCheck of your plugin? He must be somewhere in your plugin code.

Simply pass those two values as parameters

Thank you

Tags: Database

Similar Questions

  • How to read the Captivate in external JavaScript variables

    Hello

    I want to develop the combination of quiz questions and test me Captivate simulations. And send the results to external JavaScript, so I can save it in the database.

    I have published the Captivate to HTML5, typed this code in an external .js file, and linked to index.html, but I get only the alert 'no ICC interface' interface is not detected, according to me. I tested from a local web server. Any ideas?

    ==============================================================================

    var interfaceObj;

    var eventEmitterObj;

    window.addEventListener ("moduleReadyEvent", function (evt)

    {

    evt. Data gate through the interface.

    This is the same as window.cpAPIInterface

    interfaceObj = evt. Data;

    eventEmitterObj = interfaceObj.getEventEmitter ();

    });

    Make sure window.cpAPIInterface is available

    If (interfaceObj)

    {

    Make sure window.cpAPIEventEmitter is available

    If (eventEmitterObj)

    {

    Add a listener for the CPAPI_SLIDEENTER event

    eventEmitterObj.addEventListener ("CPAPI_SLIDEENTER", function (e)

    {

    bogus var = interfaceObj.getVariableValue("slideNumber");

    Alert (cAns);

    window.cpAPIInterface.setVariableValue ("mySlideVisitCounter", lSlideVisitCtr);

    });

    }

    } else {}

    Alert ("No. IPC interface")

    }

    You're talking about data are not in this case, the window.

    eventEmitterObj.addEventListener ("CPAPI_QUESTIONSUBMIT", function ( e ) {}

    bogus var = e.Data.correctAnswer;

    Alert ("correctAnswer =" + cAns);

  • How to reference the names of columns, if you use select *.

    Hello

    How to reference the names of columns to get out of the data, when you use select * and not aware of the column names (and number of columns) in advance.

    Even if I could get the column names in the other variables. I am new to CF so question may be stupid.

    getting column names: -.

    < cfquery datasource = "RTW_ORA" name = "cn" >
    SELECT COLUMN_NAME
    OF ALL_COL_COMMENTS
    WHERE TABLE_NAME = ' #meas #
    < / cfquery >

    obtain data: -.

    < cfquery datasource = "RTW_ORA" name = "cd" >
    SELECT *.
    To #meas #.
    < / cfquery >

    How do all the output data?

    Any help would be much appreciated!

    Thank you

    Tushar Saxena

    How to reference the names of columns to get out of the data, when you use select * and not aware of the column names (and number of columns) in advance.

    Even if I could get the column names in the other variables. I am new to CF so question may be stupid. getting column names: -.


    SELECT COLUMN_NAME
    OF ALL_COL_COMMENTS
    WHERE TABLE_NAME = ' #meas #

    obtain data: -.


    SELECT *.
    To #meas #.

    How do all the output data?

    Your question is not stupid. You can use the concept of a query requestand their properties cfquery attributes name and result.


    SELECT *.
    To #meas #.






    column names: #column_names #.

    number of columns: #no_of_columns #.



    SELECT #column_names #.
    FROM the cd



    A SQL query: #resQoQ.sql #.

    Query:


       
       
    #column #: #cd [column] [currentrow] #.
       


    T/t:


       
    #column #: #QoQ [column] [currentrow] #.
       


  • How to access the attributes of VO through binding...

    I have a lookup table that has 2 columns namely encode and attrib.

    I created a ViewObject with SQL like:

    SELECT THE CODE, REFER TO THE STUDY_TYPE_CODES

    And he stated in an Application Module.

    Now I want to post it to the end-user as part of a selection
    that should show REFER to but returns the value CODE.

    I want to iterate the elements and generating the choices myself.
    So I tried this on my page:

    < af:selectOneChoice label = "Test" required = "true" >

    < af:forEach elements = "#{bindings." Var StudyTypeCodesVVO1.allRowsInRange}"="row">

    "< af:selectItem value =" #{row.code} "label =" #{row.describ} "id ="si3"/ >

    < / af:forEach >

    < / af:selectOneChoice >

    It gives an error. Looks like how I use
    "#{row.code}" or "#{row.describ} ' is false.  If I ' # {line} "then
    It's OK, and I could see that the line is a

    ViewRow [oracle.job.Key []]

    But I do not know how to access attributes by name 'Code' and ' means ".". " I also tried
    "#{rank." Code}"with the capital and it does not work.

    How to access the attributes 'code' and 'describe' of each line?

    Kindly help.

    Thank you.

    Check the RangeSize property on the iterator to pageDef.

    Dario

  • How to reference the value of a &lt; af:inputText &gt; to the level of the view in a java class

    How to reference the value of a < af:inputText > to the level of the view in a java class to level model? Thank you!

    Hello!
    1: you must close this topic and open another... :))) and game question calls for a response (if my answer is correct: set my answer - correct answer)...

    2nd: for example in your java class in view level:

    links BindingContainer private;

    public BindingContainer {} getBindings()
    If (this.bindings == null) {}
    FacesContext fc = FacesContext.getCurrentInstance ();
    This.Bindings =
    (BindingContainer) fc.getApplication () .evaluateExpressionGet (CF,
    "#{bindings}."
    BindingContainer.class);
    }
    Return this.bindings;
    }

    Public Sub UseSetMyParam()
    {
    Fcab FacesCtrlActionBinding = (FacesCtrlActionBinding) getBindings () .getControlBinding ("setMyParam");
    fcab.doIt ();
    }

  • I am reorganizing the attribute value using javascript. see code below

    Hi all

    I am reorganizing the attribute value using javascript. see code below and suggest me

    EX: id = "to THE:1" reorganize to id = "to THE:2"

    myDoc var = app.activeDocument;

    var myGlueCodePath = app.filePath + "/ Scripts/XML rules/glue code.jsx";

    var myFile = File (myGlueCodePath);

    app.doScript (myFile);

    If (app.documents.length! = 0) {}

    var myRuleSet = new Array)

    new findObjAttribute ("//auq")

    );

    {with (MyDoc)}

    var elements = xmlElements;

    __processRuleSet (Elements.Item (0), myRuleSet);

    }

    }

    else {}

    Alert ("you have no open documents!");

    Exit();

    }

    function findObjAttribute() {}

    myIdName = "findObjAttribute";

    This.XPath = ("[/ / auq[@id]");

    This.Apply = function (myElement, myRuleProcessor)

    {

    elmName = myElement var .markupTag .name;

    {with (MyElement)}

    try {}

    var myAttName = myElement .xmlAttributes .itemByName ("id") .value;

    SS var = myAttName.replace(/[A-Z]+\:/,""); "

    var SSS = ss - 1;

    myAttName = myAttName.replace(/[0-9]/,sss)

    $.writeln (myAttName);

    } catch (e) {};

    }

    }

    }

    Your code re - order the value correctly, but you don't have the update attribute in the element.

    Try this,

    myAttName = myAttName.replace(/[0-9]/,sss);

    myElement.xmlAttributes.itemByName("id").value = myAttName;

  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to reference the link column in the detail view

    I have a pretty simple question that turns everyone strain. I created a simple report and defined a column of link to point to a page of edition to the line items. So far, everything is great and works as expected.

    Now I use the detail view to replace the standard HTML code for each LINE of my report. I can access all the #COLUMN_NAME #s to fill my own HTML for each ROW with the values of the report.

    How can I reference the column link in my view detail? What is the # to #SUBSTITUTION_STRING it? How can I find out about all available alternative channels?

    Thank you

    Jan

    That's the problem with the detail view, it is difficult to add conditional fields without the ugly SQL.

    Another alternative is the named report model, but it shares the same problem

    APEX reports: layout custom with a column named (model line)

  • How to hide the attributes of the OAM Board?

    Hello

    We have a requirement to update some of the attrributes configured in panels (PPP using plugin) to OAM. We want to hide the attributes to modify Profile Page. How to get there? Anypointers on this is appreciated.

    Thank you inadvance.

    Kind regards
    Srikanth

    Hi Srikanth,

    In the Access Control attribute, you do the attributes oblockouttime and obresponsetimeout visible only by the account that runs the IDXML (which is not necessarily the same account issuing the IDXML command) then they will appear to someone else when displaying the user profile - but they do need to be added to the Panel in the Configuration of the User Manager. I think that should meet your requirement, if I understand.

    As a matter of interest, how you build your custom plugin (I guess that this issues the IDXML)? You use the identity events API?

    Kind regards
    Colin

  • How to control the attributes of the sliders with Boolean button

    Hello world

    I would like the attributes of the control sliders by clicking a Boolean. For example: when I click on my button, I want the cursor to disappear or change color...
    How can I do this? I saw that I can select cursor style, color slider etc. in the property of the XYgraph node, but I don't know how to use it.
    Any idea?

    Best regards
    MartinO.

    You first need to identify your cursor active then you can set the visible property of the cursor in your Boolean control. Creating a property node, drag to show two properties, set the first wire of ActCrsr years the number of cursor for it (0 for the first slider). Now select Cursor.Visible for the second property and wire your Boolean instead. You can add other properties after that.

    Ian

  • How to change the attributes on a folder, including all subfolders and files without doing a file at a time?

    Windows operating system.  I get a disk crash and a lot of my restored photos and documents are now set to hidden or read only files.  I would like to reset the attributes of files to remove these attributes, but are not particularly care to do one file at a time.  How can I make a folder at a time?

    Hit,

    This should give you all the information you need on the attrib command from a command prompt window

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/attrib.mspx?mfr=true

    To open a command prompt window.

    • Click Start
    • Click on run
    • Type cmd and press enter

    Post back if you have any other questions.

    Tricky

  • How to set the attribute in the request of adf defalut search form

    I use the default search engine in Jdeveloper 11.1.2.3 with Table query.

    I followed this blog to replace the query by default: https://blogs.oracle.com/jdevotnharvest/entry/how-to_tell_the_viewcriteria_a_user_chose_in_an_afquery_component

    Question is how to set the value of an attribute in the request. The user will add what ever he wants those who are caught queryEvent I want to add to the value of an attribute that is not displayed to the user and the search engine and it is necessary for the application to run correctly.

    Hello

    If you went on the blog that I posted, you could get the ViewCriteriaRow of the queryEvent and then you can add the attribute that you want to the ViewCriteriaRow, and then run the query accordingly.


    Arun-

  • How to reference the first word in a text frame (threaded)?

    Hello.

    I have a series of threaded text images.
    I want to be able to reference the first word of each of them.
    [This is no big deal to start the project and do it all on the fly].

    Any ideas how I can get there?

    Any help would be appreciated.

    To get the content of the Word use myWord. content to move the Word use myWord. move (LocationOptions.AT_BEGINNING, myDestinationTextFrame);

  • How iterate over the attributes of a single entity?

    I'm working on a script of transformation of the logic model. I take a list of entities:

    var = model.getEntitySet () .toArray () entities;

    iterate over the entities:

    for (var e = 0; e < entities.length; e ++) {}

    var = [e] entities entity;


    and try to get a list of all the attributes of the current entity:

    var attributes = entity.getAttributeSet () .toArray ();

    After that, I try to iterate through the attributes:

    for (var a = 0; a < attributes.length; a ++) {}

    attribute var = attributes [a];

    While performing an iteration on the attributes, I realized that the list is always the same. I always get a list of all the attributes probably of the whole model, even for entities without any attribute.

    How can I get a list of the attributes of a single entity?

    Hello

    Use entity.getAttributes)

  • How to get the attributes from the list of values

    Hello

    I have two display objects, of 'Customer' and 'CustomerDetails '.
    'Client' view, has the attribute 'CustomerId' I've defined as LOV with view of 'CustomerDetails '.
    Like this:
    <ListBinding
        Name="LOV_CustomerId"
        ListVOName="CustomerDetailsView1"
        ListRangeSize="-1"
        NullValueFlag="start"
        NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
        MRUCount="0">
        <AttrArray Name="AttrNames">
          <Item Value="CustomerId"/>
        </AttrArray>
        <AttrArray Name="ListAttrNames">
          <Item Value="Id"/>
        </AttrArray>
        <AttrArray Name="ListDisplayAttrNames">
          <Item Value="Name"/>
        </AttrArray>
        <DisplayCriteria/>
      </ListBinding>
    I hung out in the soc on my page
    <af:selectOneChoice value="#{bindings.CustomerId.inputValue}" label="#{bindings.CustomerId.label}"
          required="#{bindings.CustomerId.hints.mandatory}"
           shortDesc="#{bindings.CustomerId.hints.tooltip}" id="soc16" autoSubmit="true">
     <f:selectItems value="#{bindings.CustomerId.items}" id="si16"/>
    </af:selectOneChoice>
    In the 'CustomerDetails' view, there is also "address" attribute.
    I would like to get the address according to the ID.

    How could I get through links?
    or in another way.

    Thank you!!

    Hello

    You want to display the address that is present in VO from customer to customer details?

    If so,.

    Perform the following steps:

    1 - Create a transient with string type attribute customer details VO (always updated).
    2 - I hope you have an attribute customer id here attribute where you created LOV. When LOV created in create list of values jump towards the top in the list of return values assign the value of the address in the transitional attribute.

    If you put this attribute on the user interface you can see the customer address id value correspondent.

    Thank you
    Prateek

Maybe you are looking for