Update DocumentDataSource - Field Values from Java


package com.domino.openntf.ferhat;

public class UpdateDocumentDataSource {

	public static void Update() {
		
		try
		{
			FacesContext context = FacesContext.getCurrentInstance();
			Map requestScope = context.getExternalContext().getRequestMap();
			DominoDocument xspDocToBeUpdated  = (DominoDocument) requestScope.get("YOUR_DOCUMENT_DATA_SOURCE_NAME");
			xspDocToBeUpdated.replaceItemValue("BasvuruNo", 123456789);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...