How to get/read region item value in java script

Hi All,
i have text item on a page.
how to read the item value in java script
EXAMPLE
P10_RESULT IS ITEM IT HAS VALUE "38.956472,-77.447777","38.999123,-77.026184","12.951497,70.668646","17.459075,78.456888"
NOW I WANT TO REFER ABOVE ITEM VALUE IN JAVA SCRIPT LIKE
var myPoints=new Array(&P10_RESULT.);
SO I CAN POPULATE ARRAY WITH CORDINATES
IT IS NOT WORKING
WHAT IS THAT I AM MISSING.
PLESE HELP .
ThankS
Rk

region header code....
<script src="http://maps.google.com/maps?file=api&v=2&key=&API_KEY." type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
//globals
var bounds = new GLatLngBounds();
var map;
var centerPoint = new GLatLng(38.984898,-76.854549);
var gmarkers = [];
//var x= ""38.956472,-77.447777","38.999123,-//77.026184","12.951497,70.668646","17.459075,78.456888"";
//var myPoints=new Array(x);
//var myPoints=new Array($x('P10_RESULT').value);
var myPoints=new Array(document.getElementById('P10_RESULT').value);
//var myPoints=new Array("38.956472,-77.447777","38.999123,-77.026184","12.951497,70.668646","17.459075,78.456888");
function initMap()
          doLoad();
                    addMarkers();
function doLoad()
     if (GBrowserIsCompatible())
               map = new GMap2(document.getElementById("map"));
               map.setCenter(centerPoint, 7);
               map.addControl(new GScaleControl());
               map.addControl(new GLargeMapControl());
               map.addControl(new GMapTypeControl());
function myclick(i) {
GEvent.trigger(gmarkers, "click");
function addMarkers() {
     if (myPoints.length) {
          var bounds = new GLatLngBounds();
          for (n=0 ; n < myPoints.length ; n++ ) {
               var mData = myPoints[n].split(',');
               var point = new GLatLng(mData[0],mData[1]);
               bounds.extend(point);
               var marker = createMarker(mData[1],point, mData[0]);
     map.addOverlay(marker);
          map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));
function createMarker(i,point, title) {
     var marker = new GMarker(point,{title:title});
     GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml('<div style="width:250px;">' + title + '<hr>Lat: ' + point.y + '<br>Lon: ' + point.x + '</div>');
     gmarkers[i] = marker;
     return marker;
//]]>
</script>
page body code
onload="initMap()" onunload="GUnload()"

Similar Messages

  • How to refer an application item in a java script ?

    Hi Friends,
    I have a simple java script for disabling an item as below :
    <script language="JavaScript1.1" type="text/javascript">
        function disFormItems(item1)
          if ($x(item1).value != "")
              disItem = document.getElementById(item1);
                    disItem.style.background = 'beige';
                    disItem.readOnly = true;
    </script>I have an application level item G_BUTTON_FLAG. Based on the value coming into this application item I want to disable the item.
    So I went and changed the script as below :
    <script language="JavaScript1.1" type="text/javascript">
        function disFormItems(item1)
          if ($x(item1).value != "" && $x('G_BUTTON_FLAG').value == "EDIT")
              disItem = document.getElementById(item1);
                    disItem.style.background = 'beige';
                    disItem.readOnly = true;
    </script>Can any one please tell me what am I doing wrong here ?
    Thanks,
    Raj.

    Hi Teku,
    Javascript can only see what is actually on the page - this has nothing to do with Apex, it's just what javascript is designed to do.
    There are two things you can do:
    1 - Add a hidden item to your page and set the application item as its source and then refer to that hidden item instead
    2 - Use Ajax to get the value
    I'd go with the first one as it's the simplest solution.
    Andy

  • How to get another page item value in page process.

    Hi all
    i have an after submit process on page 32 to insert into a table.
    and a page 34 where there is a region containing from page 32.
    when page 32 get submitted (process as well as) it contain no value for :P34_USER_ID although i am in page 34 and :P34_USER_ID item have value.
    after submit process on page 32 Type: PL/SQL anonymous block --> have code like...
    INSERT INTO LETTER_ATTACH (LETTER_ID,FILENAME,ATTACHMENT,MIMETYPE,UPDATE_DATE)
    SELECT :P34_USER_ID,:P32_FILE_INPUT,blob_content,mime_type,SYSDATE
    FROM wwv_flow_files
    WHERE NAME = :P32_FILE_INPUT;
    can't find anything wrong...!!?? :(
    please help me on this regards.
    Roman
    Edited by: user13416557 on Aug 27, 2011 1:48 PM

    Hi,
    When you are on page 32, check that there is value on page 34 item session state
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/concept_ses.htm#sthref100
    Regards,
    Jari

  • How to get Document Set property values in a SharePoint library in to a CSV file using Powershell

    Hi,
    How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
    I suggest you can get the document sets properties like the PowerShell Command below:
    [system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
    $siteurl="http://sp2013sps/sites/test"
    $listname="Documents"
    $mysite=new-object microsoft.sharepoint.spsite($siteurl)
    $myweb=$mysite.openweb()
    $list=$myweb.lists[$listname]
    foreach($item in $list.items)
    if($item.contenttype.name -eq "Document Set")
    if($item.folder.itemcount -eq 0)
    write-host $item.title
    Then you can use Export-Csv PowerShell Command to export to a CSV file.
    More information:
    Powershell for document sets
    How to export data to CSV in PowerShell?
    Using the Export-Csv Cmdlet
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to get the previoulsy selected value in a combobox

    How to get the previoulsy selected value in a combobox. i WANT the current and the previously selected value of the combobox.

    Just add to combobox ItemListener. When item is changing in itemStateChanged arrives 2 events. ItemEvent.DESELECTED and ItemEvent.SELECTED with corresponding item's values. Just write something like this:
            comboBox.addItemListener(new ItemListener() {
                Object prevValue;
                public void itemStateChanged(ItemEvent e) {
                    if (e.getStateChange() == ItemEvent.SELECTED) {
                        //do what you need with prevValue here
                    } else {
                        prevValue = e.getItem();
            });

  • How to retrieve a page item value in another page?

    Hi,
    how to retrieve a page item value in another page?
    say P55_COURSES_TO_EVALUATE is my page item name and it is a select list.Based on the value selected,in the next page i shd show details related to the selected value and for this i need P55_COURSES_TO_EVALUATE value in the next page.How Do I get it?When I try to retrieve the values it simply returns nothing.
    Any pointers would be really helpful.
    Thanks in advance.

    Hi,
    Could you please tell how you try use it ?
    If you set value to item P55_COURSES_TO_EVALUATE and submit page, value is saved to session state.
    Then you can use that item in any page like
    :P55_COURSES_TO_EVALUATEYou can not access page value in javascript/jQuery from other pages like
    $v('P55_COURSES_TO_EVALUATE')
    document.getElementbyID('P55_COURSES_TO_EVALUATE')
    $(#P55_COURSES_TO_EVALUATE)Because item is not in other pages. In javascript from other pages you can use
    var a = '&P55_COURSES_TO_EVALUATE.';Regards,
    Jari

  • How to get the current month value for a customer exit variable?

    How to get the current month value for a customer exit variable? 
    And also if we have an InfoObject with date value (including date, month, year), then how to derive the month value from this date type of Char.?
    Thanks!

    Hi Kevin,
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    Regards,
    Vijay.

  • How to get dynamic check box value in NW Mobile 7.1

    Hi,
    i have 5 rows it contains dropdown and checkbox in a row.when i click update button i need the values of checkbox.How to get?
    Regards,
    Kanagaraj.

    Hi Vidyadhar,
    I have dropdown in first page.based ondropdown value selected navigating to next page.In that i am using row repeater it has label,checkbox and dropdown.here i need to  know whether the check box is checked or not while clicking update button.
    Drow down value also not able to get.
    How to get Checkbox and dropdown values?
    can u provide some sample codes??
    Regards,
    Kanagaraj.

  • How to get space between two values in a single cell of a table.

    hello,
            how to get space between two values in a single cell of a table.
    thanks a lot.
    kailash.

    sorry i got the answer.

  • How to get the anchor tag values in next jsp

    Hey all,
    I have two jsp files.
    in first jsp,
    I am getting the resultset.
    I am setting the resultset to the anchor tag.
    below is the code...
    <a target="_top" rel="contents" rev="contents" class="fordynamiclabel" href="ASCMasterTwo.jsp"><%=rSet.getString(1) %></a></td>
    whenever he click on any anchor tag,
    It will goes to ACSMasterTwo.jsp page for edit the compleate record.
    how to get the anchor tag value in that page...
    Please help me on this.

    You have to pass a parameter. An id is good.
    Of course you have to get an id from somewhere in the result set right?
    <a target="_top" rel="contents" rev="contents" class="fordynamiclabel" href="ASCMasterTwo.jsp?id=<%= rSet.getString("id") %>"><%=rSet.getString(1) %></a></td>Then you call
    request.getParameter("id");
    and look up the values related to that id in the database.

  • How to get the previous record value in the current record plz help me...

    In my sql how to get the previous record value...
    in table i m having the field called Date i want find the difference b/w 2nd record date value with first record date... plz any one help me to know this i m waiting for ur reply....
    Thanx in Advance
    with regards
    kotresh

    First of this not hte mysql or database forum so don;t repeate again.
    to get diff between two date in mysql use date_format() to convert them to date if they r not date type
    then use - (minus)to get diff.

  • How to get BW-BPS variable value into Visual Basic?

    Hello,
    Scenario:
    Time characteristic 0FISCYEAR has a variable ZVFYEAR. In layout this time characteristic is defined as DATA COLUMN. When user changes VFYEAR variable’s value i want to get the value of variable into Visual Basic and to format header for table in the layout.
    How to get BW-BPS variable value into Visual Basic?
    Could you help me?
    Thanks in advance.
    Best Regards,
    Arunas Stonys

    Hi,
    If i understand your requirments correctly ,you need to read the value of the Variable and Put it on the layout. Here is how  i would solve this,
    Read the value of the variable using an ABAP program.The logic for this would be to read the variable value and post it on the layout on a cell.You can do this by calling the ABAP program on opening the layout.this can be done using LB_EXIT_FM  T-code. Now using the  SAP delivered SAPAfterDataPut  macro, read the cell in which you have placed the variable values and assign it to the necessary values you want to on the layout.All this will be done before the layout opens.
    Hope this helps.
    regards
    Sai Vishnubhatla

  • Get the first item value of previous record in a multi record block

    Hai,
    I have a multi record block with four items.I should get the first item value of the previous record so that I can increment its value in the current record.
    Thanks.........

    If you want a distinct value in each row or to be able to retrieve the records in the same order they were written then you should use a sequence.
    If you want to retrieve the records in the same order they were created in the block then you will need a diffferent solution to the one you outline here since a user could enter a new record between two others.
    I posted this a while back in response to someone who was using a sort_key item and resetting it for each row when a new record was inserted:
    If you make the sort_key bigger then you have much more room to insert new rows in between existing rows without having to reset all the sort_keys.
    Eg. you have rows with sort_keys of 129282000000000000 and 129283000000000000 (you can have more zeros if you want) and you want to insert a row in between. if you're using oracle forms then the user would have to click on the first of these rows and then do 'insert'. in your insert process you would store the sort keys of the current record and the one below, create a blank record in between and set the sort_key of that record to the average of the other two. you will be able to insert many new rows in between the original 2 before running out of space in the sort_key field.
    the method above is not sufficient, there are some other cases to consider:
    1) when the user is on the last record of the block then you will just create a new record with sort_key set to a greater number than the row before. you can have the sort_key defined as number(38) and to safely allow you to enter 1000 rows each new row would normally be 10E33 greater than the previous one.
    2) when the user is entering the first record then just set the sort_key to 10E33.
    3) on the off-chance that you do insert a great number of records and cannot insert another in between then you would need to alert the user, process the records so that the sort_keys are evenly spaced and requery the block. this processing could be scheduled nightly to make this eventuality even less likely.
    4) make sure the user cannot run the default 'clear_record' procedure. this would break my method as well as yours!
    James.

  • How do I read the selected value of a comboBox?

    I need to send the selected value of a comboBox in an HTTPService request. How do I read the selected value (not label or item or index) from the comboBox?

    > (not label or item or index)
    I suspect 'item' is what you need actually. Specifically the 'selectedItem' property which returns the whole of the selected object from your dataprovider. From that you can then extract the selected object's properties.
    e.g.  selectedValue = myComboBox.selectedItem.value;
    The example in tour-de-flex shows this - note:  'data' in that example is i think what you call 'value'.
    http://tourdeflex.adobe.com/flex4.0/ComboBox/sample.html  (right-click to view source)
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/suppor tClasses/ListBase.html#selectedItem
    hth
    Paul Evans
    http://www.creative-cognition.co.uk/
    http://blog.creacog.co.uk/

  • How to get zclass attribute's value inside  "Execute_default" method

    Hi all,
    I am displaying a link in UD step under "Objects & Attachmnents".I am using zclass. I created a attribute in zclass and i am creating a instance (background task) before this UD step and i will be setting a attribute of the zclass inside this create instance method.
    My problem is, if i click the link, this method "BI_OBJECT~EXECUTE_DEFAULT_METHOD" is getting executed but i am not able to get the attribute value inside this method, eventhough i am setting the attribute value before the UD step.
    Pls let me know, how to get the attribute's value inside "Execute_default" method, as i need to process further using this attribute.
    P.S: I tried with both static & instance attribute. I can achieve the same using ZBO but my client needs to use only class.
    -Vinoth
    Edited by: S Vinoth on Jan 29, 2010 7:23 AM

    Lei,
    If you are concerned only about a couple of attributes, then you can manage with a separate copy of the data. But if the data is in bulk, better leave it to pl/sql side of validation.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Using a utl_file.file_type as a procedure argument

    Hi, I'm trying to pass a utl_file.file_type variable defined in Proc A to ProcB as fllows: Proc A: output_file utl_file.file_type; output_file := utl_file.fopen('E:\tmp\', 'traspas_merma.log', 'W'); call ProcB(output_file); Proc B: Procedure ProcB(fi

  • Files are automatically placed in trash, ***?

    Hi, This is an issue that has been troubling me recently. I find that OS X Automatically places files in the trash can, such as the app file for my kindle for mac and also a video editing software I need to use quite often. I have also found mixes an

  • CS6 - Mac & PC

    Can I run 1 copy of CS6 on MacBook Pro (64)bit (new install) and upgrade the CS3 to CS6 on a windows vista (64)bit machine?  Basicly, can I put CS6 on my two machines?    Thanks.   Rick

  • IPhone 3G OS 3.0 (not able to start / receive phone calls)

    Since I've updated to iPhone OS 3.0 I can't make phone calls via the "normal" cellular network. When my iPhone is on the 3G network everything works fine. When my iPhone is on the "normal" cellular network with full signal and I try to make a phone c

  • Photoshop CS5 crashes every time I load it

    Windows 7 32-bit. Before reformatting, Photoshop CS5 was working fine. Now it crashes every time I load it. Any advice on what to do? Thanks. Problem details: Problem signature:   Problem Event Name:          APPCRASH   Application Name:          Pho