Code Monkey home page Code Monkey logo

kc's Issues

35 ...ava/org/kuali/kra/subaward/lookup/keyvalue/SubAwardAmountInfoTransactionValuesFinder.java broken

The dateformat classe's throws checked exception from the lambda. Either wrap the lambda int the some wrapper api (third party available ) or use Old fashioned the way historically we have been using.
@OverRide
public List getKeyValues() {
final SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
List KeyValues = new ArrayList();
KeyValues.add(new ConcreteKeyValue("", "select"));

	for (SubAwardAmountInfo info : ((SubAwardDocument) getDocument()).getSubAward().getSubAwardAmountInfoList()) {
		if (StringUtils.isNotEmpty(info.getModificationTypeCode()) && info.getModificationEffectiveDate() != null) {
			if (info.getModificationType() == null) {
                info.refreshReferenceObject("modificationType");
            }
			try {
				KeyValues.add(new ConcreteKeyValue(info.getSubAwardAmountInfoId().toString(),
						info.getModificationType().getDescription() + " - " + sdf.format(info.getEffectiveDate())));
			} catch (Exception e) {
				System.out.println(e.getMessage());
			}
		}
	}

	return KeyValues;
}

Can't Grant Exemption

Looks like there was a typo in ProtocolGrantExemptionUnavailableAuthorizer-- the isAuthorized method should be checking if a protocol is not new, otherwise the Grant Exemption action shows up as both available and unavailable, which prevents both sub-tabs from being expanded. Line 31 should be:

return (!task.getProtocol().isNew() ||

This seemed like such a tiny fix that it wasn't worth a full Jira or PR, but just let me know if you'd prefer that small changes like this still follow the official process.

KRAD Budget Versions Questions

Is it possible to add an extra row into a table that doesn't exist in the collection? Similar to the mock screenshot shown below?

budget_versions

BTW, just trying this out as a way to ask questions, particularly related to KRAD due to the easy ability to insert screenshots. Not as a replacement for Jira.

Spring framework java 1.8 issue

The Springframework version is probably out of date, as it produces 'wrong class format' exception while creating the beans...

Dynamic Tab Group

In trying to build a dynamic tab group I've run into a problem with setting contextual information for rendering each tab. Currently I have the following as the component group

public class DynamicTabGroup extends TabGroup {

    private String tabCollectionPropertyName;
    private Group groupPrototype;
    private Map<String, String> expressionProperties;
    private String idSuffixPropertyName;

    /**
     * {@inheritDoc}
     */
    @Override
    public void performInitialization(Object model) {
        List<Component> items = new ArrayList<Component>();
        List<Object> modelCollection = ObjectPropertyUtils.getPropertyValue(model,
                tabCollectionPropertyName);
        for (Object tabObj : modelCollection) {
            Group newGroup = ComponentUtils.copy(groupPrototype, "_" + ObjectPropertyUtils.getPropertyValueAsText(tabObj, idSuffixPropertyName));
            for (Map.Entry<String, String> entry : expressionProperties.entrySet()) {
                newGroup.getContext().put(entry.getKey(), ObjectPropertyUtils.getPropertyValueAsText(tabObj, entry.getValue()));
            }
            items.add(newGroup);
        }
        setItems(items);
        super.performInitialization(model);
    }
}

In this I am copying the prototype and setting ID suffixes and adding configured items into the group's context so the group can be dynamically rendered based on the part of the collection it is in. The associated XML for this is

    <bean id="PropBudget-RatesPage-TabGroup-parentBean" abstract="true" parent="Uif-TabSection" class="org.kuali.coeus.org.kuali.rice.krad.uif.container.DynamicTabGroup"
        p:tabCollectionPropertyName="budget.rateClassTypes" p:expressionProperties="rateClassType:code,rateClassDescription:description"
        p:idSuffixPropertyName="code" p:header.headerText="Rates">
        <property name="groupPrototype"><bean parent="PropBudget-RatesPage-RateTab"/></property>

So the DynamicTabGroup should create a new PropBudget-RatesPage-RateTab with a custom context containing rateClassType and rateClassDescription that matches the rate class it was rendered for.

Part of this seems to work. In the XML shown below you can see it using it to create the header text and the filter, which both work. But then it tries to use it in the table(demo purposes only) and for the header button additionalSubmitData but now it is now incorrect. All tabs render the last tabs description in the table, while each somehow have the correct header. Same with the button's submitData and the filtered rates.

    <bean id="PropBudget-RatesPage-RateTab-parentBean"
        abstract="true" parent="Uif-TableCollectionSection" p:headerText="@{#rateClassDescription}"
        p:collectionObjectClass="org.kuali.coeus.common.budget.framework.rate.BudgetRate"
        p:propertyName="budget.budgetRates">
        <property name="filters">
            <list>
                <bean parent="Uif-ConditionalCollectionFilter" p:expression="@{#line.rateClassType == #rateClassType}"/>
            </list>
        </property>
        <property name="header.rightGroup">
            <bean parent="Uif-HeaderRightGroup">
                <property name="items">
                    <list>
    <bean parent="Uif-SecondaryActionButton-Mini" 
        p:actionLabel="Reset to Default Rates" p:methodToCall="resetRates"
        p:additionalSubmitData="rateClassTypeCode:@{#rateClassType}"/>
                                      </list>
        </property>
        <property name="items">
            <list>
                <bean parent="Uif-MessageField" p:messageText="@{#rateClassDescription}" p:order="5"/>
                <bean parent="Uif-DataField" p:propertyName="rateClass.description" p:order="10"/>
                <bean parent="Uif-DataField" p:propertyName="onOffCampusFlag" p:order="20"/>
                <bean parent="Uif-DataField" p:propertyName="fiscalYear" p:order="30"/>
                <bean parent="Uif-DataField" p:propertyName="startDate" p:order="40"/>
                <bean parent="Uif-DataField" p:propertyName="instituteRate" p:order="50"/>
                <bean parent="Uif-InputField" p:propertyName="applicableRate" p:order="60" p:readOnly="@{!#ViewHelper.isBudgetLineItemEditable(#collectionGroup.bindingInfo.bindingPath,#index,editableBudgetLineItems)}"/>
            </list>
        </property>

wrong_desc

Any ideas?

FFATA is completely broken

FFAta functionality is half baked.
when you edit subaward the fffata entries are gone from the display only to come back once finalize

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.