Skip to Main Content

APEX

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!

Apex 4.2 Jquery mobile UI duplicate elements appearing on page reload

Kevin PayneJul 5 2014 — edited Jul 11 2014

I have a use case whereby regions are conditionally shown or hidden depending on the record type of the data to be displayed.

To do this I'm using jQuery to hide or show conditionally - something like:

    case $v('P350_RECORD_TYPE_A'):

       $('#regiona').show();

       $('#regionb').hide();

The Jquery is in a DA which fires on page load and works perfectly

on initial entry into the page ie shows only the appropriate region.

The problem happens when the user clicks on a save button ( which submits and saves any changes to the database)

then branches back to the same page. The page now shows all the regions, A, B ,C etc... Using the element inspector it was found that

two regions existed for each of regionA, regionB etc.. The first was appropriately hidden, the second was set to fully show.

I've placed debugs in the jQuery code and the code is fired once only per page load with the variables set correctly each time.

I'm using Apex 4.2 and the jQuery Mobile UI with a customised theme.

I've tested with safari on an ipod and Chrome on my PC both with the same results.

Any pointers as to why I'm getting region / element duplication?

Comments

use preferred abbreviation - here are two pictures
Attribute_pref_abbreviation.png
engineering_pref_abbrev.png
Philip

Mike Kutz

@philip-stoyanov-oracle
The PK Attribute on the Parent Entity comes from "Create Surrogate key" on the parent Entity (image 1)
The Attribute I want to modify isn't listed on the Child Entity (image 2).
Beyond that, it looks like this trick should work.
MK
Image 1 - PK on Parent is auto-created
image.png
Image 2 - no Attribute to modify.
image.png

is there a rule for that name?
Philip

Mike Kutz

Where to check?
I'm just starting to use SDDM. I don't think I defined any naming rules.
I've modified the Naming Templates (image). But that should be it. maybe a few check boxes for Engineering.
MK
image.png

HansJK

You can also just type the name you want while editing that attribute in the attribute list.
It will get overridden if you should re-run naming conventions. So I paste my chosen name into the comments of that attribute (not RDBMS comments, just tool comments). then at least I can copy paste it back or I make sure to re-run naming conventions opton without foreign key columns applied.

well, if you want the name to not change then you can use "Tools>Object names administration" utility to make that name unchangeable

Philip

HansJK

Thank you @Philip Stoyanov-Oracle. That is cool.
If I may, it would have been nice if a direct "link" to that feature would be that I could on the relevant object/attribute indicate/tick that it must be fixed and not have to go to another screen to achieve this. Also having this "central" place/way of being able to see all things flagged as fixed.
Just my two cents...

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

Post Details

Locked on Aug 8 2014
Added on Jul 5 2014
5 comments
1,631 views