Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Calculate distance between Latitude and Longitude

msbAug 14 2013 — edited Aug 15 2013

Hi All,

I have one Latitude and Longitude points. I need to calculate distance between them.

Right now we are using HAVERSINE formula but the query takes longer time to complete.

Reference: http://www.movable-type.co.uk/scripts/latlong.html

Please assist on this.

Thanks in advance.

Comments

Andreas Weiden

>so if we are saying dynamic means user can add and delete  text item at run item.

You cannot create textitems dynamically.

What is the requirement behind this? Is each textfield a custom property?If so, the common approach is to have a number of hidden textitems in your datablock (lets say 20) and at runtime dynamically show or hide them depending of the data conditions you have.

For the second requirement with the tree... Unfortunately you cannot display textitems in a forms-tree. I'm not sure if i understand your requirement correctly, but maybe you are talking about a treetable as described here. Building a treetable-like form (part 2) - Andreas Weiden - About Oracle    

If you need further assistance, please give more details on your requirements.

user6672850

Hi Andreas .. Thanks for quick reply...

We have around 200 items and user can select any number of items out of 200. eg. 50 or 80 or 150 or 200..so its really hard to manage show and hide at run time..

and the structure of my form will be like that....

   

Parent
Child1
Child11Valuepossible value YES or no if yes then we need to display all item like child11… child14 . If value is NO then we need to display only child11 and child 14. we need to hide child12 and child13
Child12Value
Child13Value
Child14Value
Child2
Child21Value
Child22Value
Child23Value
Child24Value
Child3
Option1(chkbox-Selected)Option2 (Selected)Option3(chkbox)
Child31value

Possible value yes or no. If value is yes then we need to display all item from child 31.. Child33. if value is no then we need to hide child32.

You can see the Option 1 ,Option2 and Option3.if user select all the checkbox then in child31 option we want all three input values from user. like  user selected option1 and option 2 so we need to display Option_1_item and Option_2_item in canvas.

Option_1_itemValue
Option_2_itemvalue
Child32
Child33
Andreas Weiden

I do not understand the dependencies between different childs in the tree. Can you explain the rules a little more detailed?

Are the options always at the last level of the tree?

Does the tree have a fixed depth?

Kalpataru

The values you are given here are stored in the table or database or these are manual generated values.

Before doing anything about the Hierarchical tree you have understand the tree structure first.

Check this links for your reference may help you.

Forms 12c Hierarchical Tree

How to create the Hierarchical Tree in oracle forms?

hierarchical tree in forms 10g

https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-create-a-hierachical-tree-form

1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 12 2013
Added on Aug 14 2013
7 comments
17,558 views