selection fields on cascade

06 Jun '16, 03:26 PM
15,381 Views
No Forum Badges

Hi,

I have two selection fields, the first is a menu and the second one is a sub menu.

When I select a menu I want that the corrispective sub menu is selected on the second selection field.

Obviously in the menu table there is a foreign key to the submenu one..

Any ideas?

 

Thanks in advice,

Luigi

 

 
x 0
Follow
Answer Answer at this question and get points!
Forum Starter - Level 1

Ti rispondo in italiano per evitare errori.

Se ho capito bene hai un form con 2 selection field alimentati da due selector le cui entity sono collegate tra loro con una relationship.

Ok, dal form fai partire un flow normale che vada a un No Op component fuori dalla page, nei parametri di questo flow nel passing passagli il selection field principale, poi selezionando il form vai nel outlin nel selection field principale, nelle properties entri dove dice ajax e configuri Events facendo click su Enable Event, il type Event metti On Change e nel Event Flow selezioni il flow che va a la No Op.

Successivamente dalla No Op un OK Flow al selector del secondo selection field (questa selector deve avere una RoleCondition) e nei parametri fai il binding tra il selection filed che hai passato precedentemente e la RolCondition oid.

Io normalmente lo faccio così e mi funziona, spero di essere stato abbastanza chiaro, qualsiasi dubbio fammi sapere.

 

Un saluto,

Massimo

 

   
x 1
No Forum Badges

Grazie mille Massimo, ho risolto facendo come mi hai suggerito

Saluti,

Luigi

 
x 0
No Forum Badges

Salve Massimo,

innanzitutto grazie per la tua risposta.. mi spiego meglio:

ho un form contenente due selection field, la prima è il menu (ed è caricata tramite un selector) e tale tabella ha al suo interno una foreign key verso l'altra tabella, submenu, contenuta nella seconda selection field. Per caricare submenu non ho usato un selector ma il detail collegando all'entity.

Vorrei fare in modo che alla scelta del menu mi venga caricata la seconda selection field col corrispettivo submenu.

Sono riuscito a fare questo utilizzando i details: cioè scelgo il menu e visualizzo i rispettivi detail e restituisco al form la chiave esterna che si riferisce all'oid del submenu, ma vorrei evitare di usare i detail.

 
x 0
Answer at this question and get points!

Related questions

Ajax and FCK Editor (WebRatio 5.x) ajax and javascript AJAX events problem to external JavaScript Ajax is not working in own style project Ajax link success callback? Ajax onchange and jQuery 2.x (with migrate plugin) incompatible Ajax on change selection field and modify units Ajax web app with javascript history object using the WebRatio Autocomplete template Automatic date in form Automatic file upload BPMN: URL field ckeditor - change directory for the browser Clean a form Como abrir una ventana en ajax desde una master page Como crear cambio de contraseƱa Como tener dos botones juntos en un formulario independientes de una accion? Como usar la funciĆ³n autocomplete en un field Compare with the current time coupled mandatory fields Cryptic error when submitting a form Custom Unit and AJAX / SOAP Disabilitare campi durante evento AJAX Drop down menu question Dudas sobre modelado(Data Flow,Forms y Operation Create) Dynamic attribute/field names. Possible? Dynamic instantiation of fields on a page for any Class type Empty record mistakenly saved entry form logic. Entry Unit - Default field timestamp Entry Unity, Field Date Type Error Field as link soruce Form element Form template forward/backward navigation and bookmark in ajax web app Generation errors on ajax enabled page with many components, ajax links and selective refresh Getting the absolute path of a RTXBLOBData Hide form until a flow is triggered Hiding form components based on page conditions Hierarchy component How I can receive the primary key value after adding into database from OK Port. How to add an image in a modal/pop-up window? How to get a wr:AjaxURL tag working How to keep current page/block of List/Hierarchy (Index) components after ajax link clickwith selective refresh? How to localize AJAX waiting dialog? How to open a window ajax in a BPM activity? How to redirect to the correct site view after a successful login attempt How to use LandmarkMenu as AJAX navigation how to use the landmark menu as AJAX navigation input mask javascript history object Multi Entry Unit: How to forward only checked rows? Multi-Image Upload Multiple forms on one page. HTML5 input attributes. Possible? (2 questions) multi selections field problem Multi Selects didn't work in update page Prelevare la chiave del record da una Selection Field in una Multiple Form Problem saving multi selection from input Problem with application runnung Progress bar when uploading big file(s) in a form? Pulire URL Redirecting users to another site view Resize fields Scroll ajax problem Search by Selector component does not work Select multiple files for upload Selezione sul giorno "Events Planning" Setting Upload directory Showing items that have a relation with an entity Slot in Selection Field Update fields based on selection of other fields Updating attributes of an entity upload file and the move it to other location upload file html Uppercase Uso de la componente chart de webRatio Validacion validation fields Value Length (Min) fails to validate when field is empty? WebRation - Create Navigation diagram What are the new features of WebRatio 6.1? which of these three models is closer to webratio/ifml way of creating web applications wr-ajaxDivs break layout on ajax pages.