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!

Check if item is Null with Javascript

skahlertOct 9 2009 — edited Oct 13 2009
Good afternoon guys and girls!

I am using the following code to set the values for 3 items and to submit a page. The only concern I have left is that I need to check whether the item value has been set or not before branching to the new page. Can you give me an example please of how this could be achieved in Javascript? I appreciate your help!
<script type="text/javascript">
function setArt()
{var get = new htmldb_Get(null,$x('pFlowId').value,null,0); // initialize get 
get.add('P1100_XVAL',$x('P1100_ART_NAME').value)
gReturn = get.get();
$s('P1100_XVAL',$x('P1100_ART_NAME').value)
get = null; 
;
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',&APP_PAGE_ID.); 
get.add('P1130_CNT_GEBIET',$x('P1100_CNT_GEBIET').value)
gReturn = get.get();
$s('P1130_CNT_GEBIET',$x('P1100_CNT_GEBIET').value)
get = null; 
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',&APP_PAGE_ID.); 
get.add('P1130_ART',$x('P1100_ART_NAME').value)
gReturn = get.get();
$s('P1130_ART',$x('P1100_ART_NAME').value)
get = null; 
redirect('f?p=9601:1130:&APP_SESSION.::NO::');
    }
</script>
Thanks a lot and have a successful afternoon!

Greetings,

Sebastian

Edited by: skahlert on 09.10.2009 13:07
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 10 2009
Added on Oct 9 2009
7 comments
2,702 views