public void RemoveValueFootnote(PxObject context, PxFootnote footnote) { SelectedValue.ValueFootnotes.Remove((PxValueFootnote)footnote); if (!footnote.IsNew) { SelectedValue.RemovedValueFootnotes.Add((PxValueFootnote)footnote); SelectedValue.MarkAsDirty(); SelectedMainTable.MarkAsDirty(); } }
public PxMainTableValueFootnote CreateMainTableValueFootnote(PxObject context) { PxMainTableValueFootnote mtvf = new PxMainTableValueFootnote(); mtvf.FootnoteNo = FootnoteNo; FootnoteNo++; mtvf.FootnoteText = "Shenim i ri"; mtvf.FootnoteTextEnglish = "New Footnote"; mtvf.MandOption = "O"; mtvf.ShowFootnote = "B"; mtvf.IsNew = true; mtvf.Variable = SelectedVariable; mtvf.Value = SelectedValue; SelectedMainTable.MainTableValueFootnotes.Add(mtvf); SelectedMainTable.MarkAsDirty(); SelectedValue.MarkAsDirty(); return(mtvf); }
public PxContentValueFootnote CreateContentValueFootnote(PxObject context) { PxContentValueFootnote cvf = new PxContentValueFootnote(); cvf.FootnoteNo = FootnoteNo; FootnoteNo++; cvf.FootnoteText = "Shenim i ri"; cvf.FootnoteTextEnglish = "New Footnote"; cvf.MandOption = "M"; cvf.ShowFootnote = "B"; cvf.IsNew = true; cvf.Variable = SelectedVariable; cvf.Value = SelectedValue; SelectedContent.ContentValueFootnotes.Add(cvf); SelectedContent.MarkAsDirty(); SelectedMainTable.MarkAsDirty(); return(cvf); }