Package net.datacrow.core.web.model

Examples of net.datacrow.core.web.model.DcWebObject.load()


        wod.initialize(moduleIdx);
        wod.setRowIdx(objects.getData().getRowIndex());
        wod.setID((String) data.get(data.size() - 1));
        wod.setName(wod.getDcObject().toString());
        wod.load();
       
        DcObject dco = wod.getDcObject();
        String filename = dco.getFilename();
        File file = new File(filename);
        HttpServletResponse response = (HttpServletResponse) fc.getExternalContext().getResponse();
View Full Code Here


        dco.setValue(wi.getFieldIdx(), new DcImageIcon(b));
       
        try {
            dco.saveUpdate(false);
            wi.setPicture((Picture) dco.getValue(wi.getFieldIdx()));
            wo.load();
       
            DcWebObjects objects = (DcWebObjects) vr.resolveVariable(fc, "webObjects");
            objects.update(wo);
           
        } catch (ValidationException ve) {
View Full Code Here

            return redirect();

        child.initialize(moduleIdx);
        child.setID((String) row.get(row.size() - 1));
        child.setName(child.getDcObject().toString());
        child.load();
        child.setChild(true);
       
        return current();
    }
   
View Full Code Here

            dco.saveUpdate(false);
        } catch (ValidationException ve) {
            ve.printStackTrace();
        }
       
        wod.load();
       
        return back();
    }
   
    private void setListItems(DcWebObject wod, DcReferences references, int fieldIdx) {
View Full Code Here

        wod.initialize(moduleIdx);
        wod.setRowIdx(objects.getData().getRowIndex());
        wod.setID((String) data.get(data.size() - 1));
        wod.setName(wod.getDcObject().toString());
        wod.load();
       
        return current();
    }
   
    public String create() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.